PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.

learn more… | top users | synonyms (7) | php jobs

0
votes
0answers
3 views

How do you set a applications default bucket name?

Google's documentation on php file uploads says the gs_bucket_name option is "The name of a Google Cloud Storage bucket that the blobs should be uploaded to. If you don't specify a value, the blob is ...
0
votes
0answers
11 views

MySQL query shows no results, until I copy and paste, then it gets 1

Using WordPress with WordPress MultiLanguage. I noticed a page was 404ing, so I dumped the query that was being output, and got the following (formatted exactly like below): SELECT newsite_posts.* ...
0
votes
0answers
15 views

Foreach within a while loop

I'm having an issue with a foreach loop iterating its entire array contents in each instance of the while loop. I've tried moving the loop, adding break & continue points and using alternate ...
1
vote
0answers
11 views

Hash passwords with bcrypt in the database or in php code?

I use bcrypt for password hashing everywhere in my php apps. However, there is still a choice between using bcrypt in the database or using bcrypt in php code. While I believe that using bcrypt is ...
1
vote
0answers
6 views

Sphinx Geodist search acting strange

I've been having some issues with my Sphinx geodist search recently, and I'm lost as to what the problem might be. Sphinx conf: index vacancy { source = vacancies path = ...
0
votes
1answer
25 views

PHP class method arguments without dollar symbol ($)

On the PHP: Object Interface Manual page the following is an excerpt from one of the examples: class c implements b { public function foo() { } public function baz(Baz $baz) { ...
0
votes
1answer
11 views

Comparing local and ftp files

I'm trying to build a PHP script to sync ftp folder in a remote ftp server to a local folder in my server, through my searches and looking here and there i couldn't find any way to get md5 checksum ...
0
votes
0answers
7 views

Multiple Submit Buttons/Actions in a Form on Wordpress

I currently have two donation forms on the same page in Wordpress. Both work fine independently. I'd like to make them into one form with two submit buttons. One button needs to submit to PayPal if ...
0
votes
1answer
25 views

Get dynamically created Div child text

I have one big problem. I have this code generated by PHP: <div id="parent"> <div id="child">Example text1</div> <a class="get_child_text">Get text</a> </div> ...
0
votes
0answers
5 views

Zend DB and splitting MySQL reads/writes

We have a master/slave MySQL setup and we were wanting to split some of the reads to the slave. Basically, we want it to be set up as such: All writes will happen using the master Any reads that ...
0
votes
0answers
22 views

PHP: Send form data to php script which then posts data to another script?

I use a 3rd party form processor. The issue is, I need a way to redirect the user after submitting data to the 3rd party form processor. I was thinking of: 1. Client submits form 2. My php ...
0
votes
0answers
11 views

Php form not sending email on diferent server

Im using contact form and it worked since now. After clicking "send" I have confirm message and nothing happens. The webmaster mail "[email protected]" is ofcorse na example. This the code: ...
-1
votes
0answers
13 views

php mysql query string

I need help to query string from database please help. <?php $phone="[email protected]"; $link = mysql_connect('localhost', 'root', 'toor'); if (!$link) { die('Could not connect: ' . ...
2
votes
1answer
11 views

Possible to execute javascript on PHP image rendering script?

I need to create a php script that renders an image... no problem. However, what i'd like to do is have the image rendering script trigger some javascript code whenever the script is started up. Is ...
0
votes
0answers
5 views

Dynamic Google Map by Address

How can I get a dynamic google map by address, without any additional javascript being run on the page? I'm looking for a way to just work the address into the link serverside, but I can't seem to ...

15 30 50 per page