Re: [PHP] PHP CURL JSON POST Firebug

2012-09-09 Thread ioan...@btinternet.com
On 04/09/2012 19:14, ioan...@btinternet.com wrote: On 04/09/2012 18:41, Matijn Woudt wrote: On Tue, Sep 4, 2012 at 7:35 PM, ioan...@btinternet.com ioan...@btinternet.com wrote: I am hoping someone can spot what is missing here. I am getting null result from curl-ing a page with json post

[PHP] PHP CURL JSON POST Firebug

2012-09-04 Thread ioan...@btinternet.com
I am hoping someone can spot what is missing here. I am getting null result from curl-ing a page with json post variables. I try this url in my Firefox browser - http://www.targetsite.com/search.php#somevar.someothervar (#somevar.someothervar are irrelevant, I think, as I get the curl

Re: [PHP] PHP CURL JSON POST Firebug

2012-09-04 Thread ioan...@btinternet.com
On 04/09/2012 18:41, Matijn Woudt wrote: On Tue, Sep 4, 2012 at 7:35 PM, ioan...@btinternet.com ioan...@btinternet.com wrote: I am hoping someone can spot what is missing here. I am getting null result from curl-ing a page with json post variables. I try this url in my Firefox browser

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-08 Thread ioan...@btinternet.com
There are essentially 2 ways: 1. All POSTed data is present in the $_POST superglobal array. So you could just loop over that, ignore the fields you already knew were there, and the data remaining is then essentially the data you seek. The keys in the $_POST array are the fieldnames you are

Re: [PHP] Re: Google spreadsheet curl

2010-08-10 Thread ioan...@btinternet.com
On 2010/08/10 6:24, ioan...@btinternet.com wrote: I have uploaded Zend to my site but the files within the package do not seem to find each other: I solved this by correcting the include path (should be to the library folder (with no trailing slash)). I get as far as a menu offering

Re: [PHP] Re: Google spreadsheet curl

2010-08-09 Thread ioan...@btinternet.com
This is a new message, not an existing thread. I don't know where the Re: got into the subject. Perhaps I sent it to myself first. Anyway, answer may have something to do with getting Zend installed. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Google spreadsheet curl

2010-08-09 Thread ioan...@btinternet.com
I have uploaded Zend to my site but the files within the package do not seem to find each other: Warning: include_once(Zend/Gdata.php) [function.include-once]: failed to open stream: No such file or directory in /home/mysite/Zend/library/Zend/Loader.php on line 146 The line 146 is;

[PHP] Re: Google spreadsheet curl

2010-08-08 Thread ioan...@btinternet.com
Using this code I get error message: The spreadsheet at this URL could not be found. Make sure that you have the right URL and that the owner of the spreadsheet hasn't deleted it. I have set up a test spreadsheet and it exists. Any ideas on why this might be? ?php $key=[key from

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread ioan...@btinternet.com
On 2010/04/29 19:46, Gary . wrote: On 4/25/10, ioan...@btinternet.com wrote: I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. Failed to connect to host is a pretty strange error

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-28 Thread ioan...@btinternet.com
I think the answer is: ISPs have a different range of addresses from host providers, so it is possible to block requests from host servers, so from scripts. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread ioan...@btinternet.com
Just to eliminate all possibilities, are you to open the same URL/URI in the web pages repeatedly? Also, what happens when you fake the user agent in the web browser? The target site may have some anti bot mechanism in place to reduce stress/load on the server(s). Regards, Tommy One

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread ioan...@btinternet.com
On 2010/04/26 20:01, Ashley Sheridan wrote: How frequently do you request the page? Maybe playing about with that would resolve it? Is it possible to randomise the request frequency a bit? Thanks, Ash http://www.ashleysheridan.co.uk Just manually for testing, and it would be used for

[PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread ioan...@btinternet.com
I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. The target URL is an ip address, not a named url, so maybe it has something to do with DNS. I am on a shared server. Any ideas on why

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread ioan...@btinternet.com
This is all I see in the error log: SUEXEC error_log: [2010-04-25 16:45:42]: uid: (1116/myname) gid: (1118/myname) cmd: fcgiwrapper John -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-27 Thread ioan...@btinternet.com
-source .phps John ioan...@btinternet.com wrote: I still have the strange thing of saving a file in htdocs within the Apache folders (on Vista, you need to right click on Notepad from Start and Run as Administrator), but then not seeing it in Windows Explorer - must be something to do with UAC

Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-27 Thread ioan...@btinternet.com
...though phpinfo seems to work fine without this handler. ioan...@btinternet.com wrote: php now also works with Apache, I think I was missing from httpd.conf within IfModule mime_module /IfModule: AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php-source .phps

[PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-26 Thread ioan...@btinternet.com
I have a working apache 2.2.11 server and php 5.2.9 installed. APACHE CONFIGURATION Files are in: C:/Program Files/Apache Software Foundation/Apache2.2/ Apache https.conf is amended to add at the end of the LoadModule lines (not between any tags): LoadModule php5_module

Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-26 Thread ioan...@btinternet.com
/ loads as the index.html file which is in the same folder? Pathetic notes on installation of Apache. J. ioan...@btinternet.com wrote: I have a working apache 2.2.11 server and php 5.2.9 installed. APACHE CONFIGURATION Files are in: C:/Program Files/Apache Software Foundation/Apache2.2/ Apache

[PHP] Convert \x3d \x3b \x3c to ASCII

2009-06-23 Thread ioan...@btinternet.com
Is there a function which will convert characters like \x3d \x3b \x3c to ASCII. Or is there a full list of conversions, eg \x3c= \x3e=, \x27=' etc. What are these, hex? I tried hexdec() but am not sure that is right. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] CURL intermittant problem

2009-06-11 Thread ioan...@btinternet.com
I have been having problems with a curl script which works normally with many different URLs but had a particular intermittant problem with a url in the following format: http://10.20.30.40/0001/032/023112/filename.phtml?param1=paramvalue1param2=paramvalue2 etc etc. The unusual thing