Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP read method hangs
11-01-2009, 05:42 PM
Post: #1
PHP read method hangs
We have our mysimpleads working on our host (Windows) and am setting up a test version of the same website on a LAMP Server (Ubuntu with ISPConfig 3) to an eventual switchover. (V1.70)

Here are the PHP info's
Windows: http://www.popupportal.com/mysimpleads/pinfo.php
Ubuntu/Apache2: http://www.popupportalcom/mysimpleads/pinfo.php

The read method will not work on the test (linux) server, but works in the window server. The include method works on both. I have confirmed that Magic quotes is off and allow_url_open is on. I can confirmed I have full rights (777) to the entire mysimpleads directory.

Even stranger, if I make a page on the Linux server that uses the READ code from the Windows server that doesn't work either.

What am I missing?
Find all posts by this user
Quote this message in a reply
11-01-2009, 08:36 PM
Post: #2
RE: PHP read method hangs
Your links are the same pinfo file, could you send me or PM me the ubuntu pinfo link.

Thanks.
matt
http://www.clippersoft.net

ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-01-2009, 09:15 PM (This post was last modified: 11-01-2009 09:17 PM by pgordemer.)
Post: #3
RE: PHP read method hangs
(11-01-2009 08:36 PM)ClipperSoft Wrote:  Your links are the same pinfo file, could you send me or PM me the ubuntu pinfo link.

Thanks.
matt
http://www.clippersoft.net

Sorry about that:

Windows: http://www.popupportal.com/mysimpleads/pinfo.php
Ubuntu/Apache2: http://test.popupportal.com/mysimpleads/pinfo.php
Find all posts by this user
Quote this message in a reply
11-01-2009, 10:09 PM (This post was last modified: 11-01-2009 10:17 PM by ClipperSoft.)
Post: #4
RE: PHP read method hangs
Don't see anything immediately wrong on your test server setup. Is there anything being recorded in your apache error log?

You may need to remove the '@' before '@readfile' in your ad code to show the error.

Thanks.
matt
http://www.clippersoft.net

ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-02-2009, 09:28 AM
Post: #5
RE: PHP read method hangs
(11-01-2009 10:09 PM)ClipperSoft Wrote:  Don't see anything immediately wrong on your test server setup. Is there anything being recorded in your apache error log?

You may need to remove the '@' before '@readfile' in your ad code to show the error.

Thanks.
matt
http://www.clippersoft.net

Nothing shows in the error log, but if I remove the @, here is what I got:
Warning: readfile(http://test.popupportal.com/mysimpleads/...d_group=2) [function.readfile]: failed to open stream: HTTP request failed! in /var/www/clients/client3/web4/web/testads.php on line 1

function.readfile - but phpinfo shows that open url is on.
Find all posts by this user
Quote this message in a reply
11-02-2009, 09:35 AM
Post: #6
RE: PHP read method hangs
Does any readfile through URL test work - ie, what happens if you create a test.popupportal.com/test.php file with something like '<?php echo 'hello'; ?> in it, and then attempt to point to that?

ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-02-2009, 09:44 AM
Post: #7
RE: PHP read method hangs
(11-02-2009 09:35 AM)ClipperSoft Wrote:  Does any readfile through URL test work - ie, what happens if you create a test.popupportal.com/test.php file with something like '<?php echo 'hello'; ?> in it, and then attempt to point to that?

The website is SMF forum and all the pages work fine in the apache2, so PHP is working fine, its just when it hits that line of code on a page are we hung until it times out.

here is the contents of the test file at:
http://test.arh-us.com/testads.php

<?php /* Leaderboard 728 X 90 */ @readfile('http://test.popupportal.com/mysimpleads/mysa_output.php?r='.$_SERVER['REMOTE_ADDR'].'&h='.urlencode($_SERVER['HTTP_HOST']).'&rf='.urlencode($_SERVER['HTTP_REFERER']).'&ua='.urlencode($_SERVER['HTTP_USER_AGENT']).'&show_ad_group=2'); ?>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: