Jump to content


Photo

Attn MODS: There is a posting error on your site


  • This topic is locked This topic is locked
4 replies to this topic

#1 cunoodle2

cunoodle2
  • Members
  • PipPipPip
  • Advanced Member
  • 602 posts

Posted 17 May 2006 - 01:24 AM

Yes, there is an error when you attempt to post certain code. I tried to fill out the "contact us" form but that also errors out on this same code. Please PM me an e-mail address that I can send this info to so that it can be corrected on the site. Thanks again.

-Curly

Here is a screen shot of the error I am getting...

[img src=\"http://70.85.214.2/~onthego/images/PhpFreaksError.JPG\" border=\"0\" alt=\"IPB Image\" /]

If the code was working and now it's not, something changed. Did you change any code?

yeah, just a little bit, I am trying to start from beginning and trace my steps to see what i did wrong unless you see it.


#2 shoz

shoz
  • Staff Alumni
  • Advanced Member
  • 600 posts

Posted 17 May 2006 - 01:44 AM

Moved to the @phpfreaks.com forum. Always try to find the best forum for your topic before posting.

Look at the following thread.
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90469\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90469[/a]

If you're posting code with file functions some have said that changing the function names in some way allows the post to go through. Mention the change to the user you're trying to help of course.

#3 cunoodle2

cunoodle2
  • Members
  • PipPipPip
  • Advanced Member
  • 602 posts

Posted 17 May 2006 - 02:12 AM

[!--quoteo(post=374515:date=May 16 2006, 08:44 PM:name=shoz)--][div class=\'quotetop\']QUOTE(shoz @ May 16 2006, 08:44 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Moved to the @phpfreaks.com forum. Always try to find the best forum for your topic before posting.

Look at the following thread.
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90469\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90469[/a]

If you're posting code with file functions some have said that changing the function names in some way allows the post to go through. Mention the change to the user you're trying to help of course.
[/quote]

There is definetely an error though on this site. It has to do with something to do with Curl.

I am not sure why I did not think of it earlier but here are steps on how to "recreate this error"....

[a href=\"http://70.85.214.2/~onthego/PhpFreaksError.txt\" target=\"_blank\"]http://70.85.214.2/~onthego/PhpFreaksError.txt[/a]

If the code was working and now it's not, something changed. Did you change any code?

yeah, just a little bit, I am trying to start from beginning and trace my steps to see what i did wrong unless you see it.


#4 shoz

shoz
  • Staff Alumni
  • Advanced Member
  • 600 posts

Posted 17 May 2006 - 02:39 AM

There is definetely an error though on this site. It has to do with something to do with Curl.

Did you read the thread I linked to? if not, read through it before replying.

Btw In the following, note the removal of the "e" in the curl_exec.
<?

    ######### Set up field values #########
    $fields = "authmethod=userpassword&";
    $fields .= "locale=en_us&";
    $fields .= "usr_name=username&";
    $fields .= "usr_password=password&";
    $fields .= "hiddenuri=/online/logon/on_successful_logon.jsp?LOB=COLLogon&";
    $fields .= "LOB=COLLogon";

    $agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)";
    $ref = "https://chaseonline.chase.com/colappmgr/colportal/prospect?_nfpb=true&_pageLabel=page_logonform";


    ######### Prepare curl settings and variables #########
    $ch=curl_init(); 
    curl_setopt($ch, CURLOPT_URL, "https://chaseonline.chase.com/siteminderagent/forms/formpost.fcc");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
    curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
    curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); 
    curl_setopt($ch, CURLOPT_POST, 1); 
    curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); 
    curl_setopt($ch, CURLOPT_TIMEOUT, 120); 
    curl_setopt($ch, CURLOPT_USERAGENT, $agent); 
    curl_setopt($ch, CURLOPT_REFERER, $ref);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); 
    $buffer = curl_xec($ch);
    echo $buffer;

?>


#5 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 May 2006 - 09:22 AM

There is a security script on this site which monitors the POSTed data being transmitted to the site and if it sees certain bits of code in the POSTed data then it thinks you are attacking the site and so you get that forbidded error message.

If you want to post your code I would recommend you to post your code on a site called [a href=\"http://www.pastebin.com\" target=\"_blank\"]http://www.pastebin.com[/a].

When you go to that site make sure the syntax highlighting drop down box has PHP selected. Now paste your code into the textbox underneath the drop down list and click the Send button your PHP code with be highlighted and displayed with line numbers. Now copy thge URL from the Address bar and paste that url into your post and just refer to the link when posting about your question/problem with the PHP script.

Again this is not an error but a security script running on the server to help protect phpfreaks from hackers as we did get hacked a whiled back.

Thread closed threre has been plenty of threads posted about this issue please read those before posting a new thread about the same issue.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users