Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-03-2008, 10:34 PM Proxy Help
GamingFreak's Avatar
Super Talker

Posts: 124
Name: Chris
Location: www.DecayedAds.com
Trades: 0
I am trying to start a new proxy and when I type in a url I get alot of errors. Can anyone help?

Warning: fwrite(): supplied argument is not a valid stream resource in /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php on line 682

Warning: fgets(): supplied argument is not a valid stream resource in /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php on line 690

Warning: fclose(): supplied argument is not a valid stream resource in /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php on line 862

Warning: Cannot modify header information - headers already sent by (output started at /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php:682) in /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php:682) in /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php:682) in /www/vndv.com/h/e/l/hellsproxy/htdocs/index.php on line 1176

site is www.HellsProxy.vndv.com
__________________
FREE LINK DIRECTORY!
Please login or register to view this content. Registration is FREE
GamingFreak is offline
Reply With Quote
View Public Profile Visit GamingFreak's homepage!
 
 
Register now for full access!
Old 11-03-2008, 10:42 PM Re: Proxy Help
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
It could be a problem with the file permissions. Can you post your code?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 11-03-2008, 11:04 PM Re: Proxy Help
GamingFreak's Avatar
Super Talker

Posts: 124
Name: Chris
Location: www.DecayedAds.com
Trades: 0
Which code file do you need? Here are my codings.

index.inc
[php]
PHP Code:
<?php 
if (basename(__FILE__) == basename($_SERVER['PHP_SELF']))
{
    exit(
0);
}
echo 
'<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
  <title>Hells Proxy - Cant Get Caught</title>
  <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Default Theme" media="all" />
</head>
<body onload="document.getElementById('address_box').focus()">
<div id="container">
  <h1 id="title">Hells Proxy - Cant Get Caught</h1>
  <ul id="navigation">
    <li><a href="<?php echo $GLOBALS['_script_base'?>">URL Form</a></li>
  </ul>
<?php
switch ($data['category'])
{
    case 
'auth':
?>
  <div id="auth"><p>
  <b>Enter your username and password for "<?php echo htmlspecialchars($data['realm']) ?>" on <?php echo $GLOBALS['_url_parts']['host'?></b>
  <form method="post" action="">
    <input type="hidden" name="<?php echo $GLOBALS['_config']['basic_auth_var_name'?>" value="<?php echo base64_encode($data['realm']) ?>" />
    <label>Username <input type="text" name="username" value="" /></label> <label>Password <input type="password" name="password" value="" /></label> <input type="submit" value="Login" />
  </form></p></div>
<?php
        
break;
    case 
'error':
        echo 
'<div id="error"><p>';
 
        switch (
$data['group'])
        {
            case 
'url':
                echo 
'<b>URL Error (' $data['error'] . ')</b>: ';
                switch (
$data['type'])
                {
                    case 
'internal':
                        
$message 'Failed to connect to the specified host. '
                                 
'Possible problems are that the server was not found, the connection timed out, or the connection refused by the host. '
                                 
'Try connecting again and check if the address is correct.';
                        break;
                    case 
'external':
                        switch (
$data['error'])
                        {
                            case 
1:
                                
$message 'The URL you\'re attempting to access is blacklisted by this server. Please select another URL.';
                                break;
                            case 
2:
                                
$message 'The URL you entered is malformed. Please check whether you entered the correct URL or not.';
                                break;
                        }
                        break;
                }
                break;
            case 
'resource':
                echo 
'<b>Resource Error:</b> ';
                switch (
$data['type'])
                {
                    case 
'file_size':
                        
$message 'The file your are attempting to download is too large.<br />'
                                 
'Maxiumum permissible file size is <b>' number_format($GLOBALS['_config']['max_file_size']/10485762) . ' MB</b><br />'
                                 
'Requested file size is <b>' number_format($GLOBALS['_content_length']/10485762) . ' MB</b>';
                        break;
                    case 
'hotlinking':
                        
$message 'It appears that you are trying to access a resource through this proxy from a remote Website.<br />'
                                 
'For security reasons, please use the form below to do so.';
                        break;
                }
                break;
        }
 
        echo 
'An error has occured while trying to browse through the proxy. <br />' $message '</p></div>';
        break;
}
?>
   <form method="post" action="<?php echo $_SERVER['PHP_SELF'?>">
    <ul id="form">
      <li id="address_bar"><label>Web Address <input id="address_box" type="text" name="<?php echo $GLOBALS['_config']['url_var_name'?>" value="<?php echo isset($GLOBALS['_url']) ? htmlspecialchars($GLOBALS['_url']) : '' ?>" onfocus="this.select()" /></label> <input id="go" type="submit" value="Go" /></li>
      <?php
 
      
foreach ($GLOBALS['_flags'] as $flag_name => $flag_value)
      {
          if (!
$GLOBALS['_frozen_flags'][$flag_name])
          {
              echo 
'<li class="option"><label><input type="checkbox" name="' $GLOBALS['_config']['flags_var_name'] . '[' $flag_name ']"' . ($flag_value ' checked="checked"' '') . ' />' $GLOBALS['_labels'][$flag_name][1] . '</label></li>' "\n";
          }
      }
      
?>
    </ul>
  </form>
  <!-- The least you could do is leave this link back as it is. This software is provided for free and I ask nothing in return except that you leave this link intact
       You're more likely to recieve support should you require some if I see a link back in your installation than if not -->
  <div id="footer"><a href="http://whitefyre.com/poxy/">PHProxy</a> <?php echo $GLOBALS['_version'?> - Created with <a href="http://www.proxybuilder.com">Proxy Builder</a></div>
</div>
</body>
</html>
*My index.php is too large to post.
__________________
FREE LINK DIRECTORY!
Please login or register to view this content. Registration is FREE

Last edited by GamingFreak; 11-03-2008 at 11:05 PM..
GamingFreak is offline
Reply With Quote
View Public Profile Visit GamingFreak's homepage!
 
Old 11-04-2008, 12:33 AM Re: Proxy Help
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
OMG

We need the code that causes the error, isn't it obvious?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 11-04-2008, 12:05 PM Re: Proxy Help
GamingFreak's Avatar
Super Talker

Posts: 124
Name: Chris
Location: www.DecayedAds.com
Trades: 0
Ok, I said that it will not post because the file is too large. mtishetsky I DO NOT appreciate how you spoke to me and I do not wish for you to EVER help me with ANY of my questions again. You are VERY rude, just because some people are not familiar with php codings DOES NOT mean that you may speak hateful to them. Thats just like someone asking you something like "Answer this in your head in 2 seconds: 1234789234523789468271468917234618+123123564123451 234 x 278667234876 / 2384761237894612

and you will say "I can't do that in 2 seconds." and then someone saying to you "OMG! Why can't you? Are you stupid or something!?"

So I would highly appreciate that you never talk to me.
__________________
FREE LINK DIRECTORY!
Please login or register to view this content. Registration is FREE
GamingFreak is offline
Reply With Quote
View Public Profile Visit GamingFreak's homepage!
 
Old 11-04-2008, 02:42 PM Re: Proxy Help
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
on line 682 < Look at this line, check the file is their and check it's accessible by the server.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to Proxy Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33539 seconds with 12 queries