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

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

0
votes
0answers
6 views

How to run an external PHP script silently within a PHP script?

For example: Content of server-a.com/test.php: echo 'hello world one'; // now I need to call server-b.com/test.php here silently // without interfering with user experience echo 'hello world two'; ...
0
votes
2answers
20 views

downloading a file using php

I am looking to create a link, and by clicking it I am looking forward to download a file. Though I was able to do it by having a separate PHP script which does the download like say "download.php", I ...
1
vote
0answers
6 views

SugarCRM REST API, how to get Contacts related to an Account

I am using SugarCRM Pro 6.5.5. I am trying to do some integration into another application, so I need to do some API calls from that other application. I am using the REST API v2. At this point, I ...
0
votes
0answers
6 views

How can I determine the date a block was added in Concrete5?

$block->getBlockDateAdded() and $block->getBlockDateLastModified() both return the same timestamp, the one of last modification (in all my tests). This might be because on every modification of ...
0
votes
0answers
9 views

Using php imagecopyresampled() to crop from top and bottom

I am trying to do two things at once. For one, I want to scale the width of an image down to 500 and keep the height in proportion. Also, I want to take 100px off the top, and 75px off the bottom -- ...
0
votes
0answers
4 views

Paypal / elendev-checkout-bundle integration

Did anyone use this bundle to integrate Symfony2 with Paypal Express Checkout? As said in its documentation, the main thing consists of this: $command = ...; //instance of ...
0
votes
4answers
22 views

HTTP header, Getting particular value

(string) HTTP/1.1 200 OK Content-Language: en Content-Type: application/json; charset=utf-8 Date: Wed, 24 Oct 2012 21:38:50 GMT Server: nginx Vary: Accept-Language, Cookie, Accept-Encoding ...
1
vote
1answer
14 views

PDO class not working - call to member function prepare

I have a question regarding my PDO class. It's not working and creates this error: "Notice: Undefined variable: db in classes.php on line 21 Fatal error: Call to a member function prepare() on a ...
0
votes
0answers
9 views

PHP xPath grab from skipped

I want to move parent attributes to child's .. <details type="A"> <Child name="B"> <x id="1"/> <x id="2"/> </Child> </details> I'm currently using ...
2
votes
2answers
75 views

Is this PHP code dangerous?

I've just sketched up the main index.php file. It should be the gateway for all the site requests. The reason why I want that is to have clean URLs. I have split my website into modules. (Example: ...
0
votes
1answer
20 views

PHP for a single MySQL multi-row INSERT with LAST_INSERT_ROW for each row?

Skip to "My Code" at the bottom of the question to get straight to the point. $con = mysql_connect('localhost', 'mysql_user', 'mysql_password'); General Examples: Multiple query strings can be ...
0
votes
0answers
18 views

Why is this htaccess rule assigning two matches to one $_GET variable?

Here's the htaccess rule for my site's profile page: RewriteRule ^users/([0-9]+)/?(.+)?/?(.+)? profile.php?id=$1&slug=$2&tab=$3&%{QUERY_STRING} When you click on a tab on a user's ...
2
votes
1answer
22 views

php testing all source code used

Whilst working in some other languages, (primarily Java and C++), I have come across useful tools that enable you to compile your program in a certain way that allows you to examine what source code ...
0
votes
2answers
18 views

How to sort the order of a foreach if array_reverse isn't doing the job?

Here is a var_dump of a multidimensional array. array (size=2) 'ad795f9b369fc967db8fe0611ecc3cb3' => array (size=6) 'rowid' => string 'ad795f9b369fc967db8fe0611ecc3cb3' ...
-7
votes
1answer
35 views

Need to design my theme css similar to other site

Iam using wordpress.. iam thinking to use default theme (twentyeleven)... So with the help of this default theme, I am thinking to achive theme apppearance (I mean CSS) like this: ...

1 2 3 4 5 19500
15 30 50 per page