Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 08-15-2006, 04:51 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

thank you, i ive done what you suggested with the table creation.

regarding the login: on my home test server it worked fine, but on my other server i to am getting the same problem, but mine displays an error

Code:
Warning: Cannot modify header information - headers already sent by (output started at 
/home/extreme/public_html/stats/toplist/config.php:2)
 in /home/extreme/public_html/stats/toplist/admin/index.php on line 42
which is probabley due to me echoing something before the session starts or something.

Lastly, when i enter the PID on my web server it takes a real long time also. When i was building the script i tested it on my webserver and it didnt work, but i figured that was because my ip may have been banned from novaworld.com because i may have caused a large load on the server. If you could, try this and tell me the result:

PHP Code:
<?php
$url 
"http://www.novaworld.com";
$content file_get_contents($url); 
echo 
$content;
?>
it works on my home server, but not my other webhosting server.

Last edited by John; 10-01-2006 at 02:00 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 08-15-2006, 05:25 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

After a little research i found out 'they may filter the user-agent in requests.'

ill try curl, maybe that will work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 08-15-2006, 05:47 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,203
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

ahh, that would be it then. There should be a way to fake the user-agent from PHP. Search around for it.

Yes, if you print anything or have headers before a session_start() it will not work. Let me know if you want me to try anything else.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 08-16-2006, 01:00 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

eh after figuring out how to set my own headers that didnt work either, however using a proxy worked, perhaps my host blocks outgoing secure connections? i dunno

PHP Code:
<?php
$ch 
curl_init();
curl_setopt($chCURLOPT_URL"https://www.novaworld.com/Players/Stats.aspx?id=33680801261&p=616065");
curl_setopt($chCURLOPT_HEADER0);
curl_setopt($chCURLOPT_PROXY'193.194.69.66:8080');
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
curl_exec($ch);
curl_close($ch);
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 09-30-2006, 06:55 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

Jordan, could you do me a favor and test these 2 scripts on one of your servers please and let know if either or one of them works.

PHP Code:
<?php
$url
"https://www.novaworld.com/Players/Stats.aspx?id=33680801261&p=616065";
$content file_get_contents($url);
echo 
$content;
?>
PHP Code:
<?php
   $url 
"https://www.novaworld.com/Players/Stats.aspx?id=33680801261&p=616065";

   
$ch curl_init();
   
curl_setopt($chCURLOPT_URL,$url);
   
curl_setopt($chCURLOPT_VERBOSE1);
   
curl_setopt($chCURLOPT_POST0);
   
curl_setopt($chCURLOPT_USERAGENT,  "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); 
   
curl_setopt($chCURLOPT_SSL_VERIFYPEER0);
   
curl_setopt($chCURLOPT_SSL_VERIFYHOST0);
   
curl_setopt($chCURLOPT_RETURNTRANSFER,1);
   
$returned curl_exec($ch);
   
curl_error($ch);
   
curl_close($ch);

   echo 
$returned;
?>
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 09-30-2006, 09:57 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,203
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Neither seem to work

http://www.codecall.net/test1.php
http://www.codecall.net/test2.php
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 10-01-2006, 01:51 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

Quote:
Originally Posted by Jordan View Post
as i suspected, and to just text my hypothsis, if you dont mind try this one

PHP Code:
<?php
   $url 
"https://adwords.google.com/select/Login";

   
$ch curl_init();
   
curl_setopt($chCURLOPT_URL,$url);
   
curl_setopt($chCURLOPT_VERBOSE1);
   
curl_setopt($chCURLOPT_POST0);
   
curl_setopt($chCURLOPT_USERAGENT,  "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
   
curl_setopt($chCURLOPT_SSL_VERIFYPEER0);
   
curl_setopt($chCURLOPT_SSL_VERIFYHOST0);
   
curl_setopt($chCURLOPT_RETURNTRANSFER,1);
   
$returned curl_exec($ch);
   
curl_error($ch);
   
curl_close($ch);

   echo 
$returned;
?>
i suspect it will work, but have no idea why it dosnt work for the other url
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 10-01-2006, 01:23 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,203
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Interesting, it does work fine.

http://www.codecall.net/test3.php

I wonder what is different in the settings for SSL in the two sites.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 10-01-2006, 02:09 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

Quote:
Originally Posted by Jordan View Post
I wonder what is different in the settings for SSL in the two sites.
Hell if i know lol... all i know is it works from my local test server and no where else ive seen. I've also got two other forums stumped
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 10-01-2006, 05:45 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

Maybe it is the settings of the server - something in the php.ini or curl configuration?
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump