Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum

Programming / Scripting / Coding Forum Discussion HTML, C++, PHP, CGI, JSP, perl etc

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2006, 06:47 AM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Question What's with my PHP script?

Hello. I was just trying a PHP script that when the variable $maintenance equals greater than one, it redirects to the maintenance page. I'll put the code below:

PHP Code:
<? if ( <= 0) { ?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location=\\\\\\\\\\\'"+args[i+1]+"\\\\\\\\\\\'");
}
//-->
</script>
<body topmargin=0 bottommargin=0 bgcolor="#5275A9" style="text-align: center">
<font style="text-align: center">
<div align="center"> 
  <table width="850" height="90" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td background="../pics/title_back.png">&nbsp;</td>
      <td width="728"><div align="center"><script language=\\\\\\\\\\\'JavaScript\\\\\\\\\\\' type=\\\\\\\\\\\'text/javascript\\\\\\\\\\\' src=\\\\\\\\\\\'http://ads2.psychz.net/adx.js\\\\\\\\\\\'></script>
<script language=\\\\\\\\\\\'JavaScript\\\\\\\\\\\' type=\\\\\\\\\\\'text/javascript\\\\\\\\\\\'>
<!--
if (!document.phpAds_used) document.phpAds_used = \\\\\\\\\\\',\\\\\\\\\\\';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language=\\\\\\\\\\\'JavaScript\\\\\\\\\\\' type=\\\\\\\\\\\'text/javascript\\\\\\\\\\\' src=\\\\\\\\\\\'");
document.write ("http://ads2.psychz.net/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:8");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("\\\\\\\\\\\'><" + "/script>");
//-->
</script><noscript><a href=\\\\\\\\\\\'http://ads2.psychz.net/adclick.php?n=a477094b\\\\\\\\\\\' target=\\\\\\\\\\\'_blank\\\\\\\\\\\'><img src=\\\\\\\\\\\'http://ads2.psychz.net/adview.php?what=zone:8&amp;n=a477094b\\\\\\\\\\\' border=\\\\\\\\\\\'0\\\\\\\\\\\' alt=\\\\\\\\\\\'\\\\\\\\\\\'></a></noscript></div></td>
      <td background="../pics/title_back.png">&nbsp;</td>
    </tr>
  </table>
</div>
</font> 
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td background="pics/title_back.png" style="text-align: center;cursor: default"><div style="font-family: Trebuchet MS;font-size:36px;color: #FFFFFF;text-decoration: underline">The 
        Sequencer\\\\\\\\\\\'s Library</div></td>
  </tr>
</table>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="19" background="pics/buttons_1.png"><div>
        <table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td style="cursor: hand;text-align: center" onMouseOver=\\\\\\\\\\\'this.style.backgroundColor="#7B97BF"\\\\\\\\\\\' onMouseOut=\\\\\\\\\\\'this.style.backgroundColor=""\\\\\\\\\\\' width="43"><font style="font-family: Tahoma;color: #FFFFFF;font-size: 12px;font-weight: bold">HOME</font></td>
            <td style="cursor: hand;text-align: center" onMouseOver=\\\\\\\\\\\'this.style.backgroundColor="#7B97BF"\\\\\\\\\\\' onMouseOut=\\\\\\\\\\\'this.style.backgroundColor=""\\\\\\\\\\\' width="79"><font style="font-family: Tahoma;color: #FFFFFF;font-size: 12px;font-weight: bold">CATALOGUE</font></td>
            <td style="cursor: hand;text-align: center" onMouseOver=\\\\\\\\\\\'this.style.backgroundColor="#7B97BF"\\\\\\\\\\\' onMouseOut=\\\\\\\\\\\'this.style.backgroundColor=""\\\\\\\\\\\' width="85"><font style="font-family: Tahoma;color: #FFFFFF;font-size: 12px;font-weight: bold">CONTACT 
              US </font></td>
            <td style="cursor: hand;text-align: center" onMouseOver=\\\\\\\\\\\'this.style.backgroundColor="#7B97BF"\\\\\\\\\\\' onMouseOut=\\\\\\\\\\\'this.style.backgroundColor=""\\\\\\\\\\\' width="134"><font style="font-family: Tahoma;color: #FFFFFF;font-size: 12px;font-weight: bold">CUSTOM 
              SEQUENCES </font></td>
            <td style="cursor: hand;text-align: center" onMouseOver=\\\\\\\\\\\'this.style.backgroundColor="#7B97BF"\\\\\\\\\\\' onMouseOut=\\\\\\\\\\\'this.style.backgroundColor=""\\\\\\\\\\\' width="40"><font style="font-family: Tahoma;color: #FFFFFF;font-size: 12px;font-weight: bold">FAQs</font></td>
            <td width="479">&nbsp;</td>
          </tr>
        </table>
      </div></td>
  </tr>
</table>
<table width="850" height="134" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="275">&nbsp;</td>
    <td width="648"><div style="font-family: Trebuchet MS;font-size:33px;color: #00B000;text-decoration: underline">
        Welcome!</div>
      <br>
      <font style="font-family: Arial;font-size: 14px">We are one of the very 
      best MIDI sequencing companies around. We do Custom Sequencing, <font style="font-size: 13px;font-weight: bold">TOP 40</font> songs 
      and much, MUCH more! So, why not register and begin downloading extremely 
      low priced songs now?</font> </td>
  </tr>
</table>
<font style="text-align: center;font-family: Arial;color: #FFFFFF;font-size: 13px" class="bottom"> 
<p align="center" style="text-align: center"> 
  <script language=\\\\\\\\\\\'JavaScript\\\\\\\\\\\' type=\\\\\\\\\\\'text/javascript\\\\\\\\\\\' src=\\\\\\\\\\\'http://ads2.psychz.net/adx.js\\\\\\\\\\\'></script>
  <script language=\\\\\\\\\\\'JavaScript\\\\\\\\\\\' type=\\\\\\\\\\\'text/javascript\\\\\\\\\\\'>
<!--
if (!document.phpAds_used) document.phpAds_used = \\\\\\\\\\\',\\\\\\\\\\\';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language=\\\\\\\\\\\'JavaScript\\\\\\\\\\\' type=\\\\\\\\\\\'text/javascript\\\\\\\\\\\' src=\\\\\\\\\\\'");
document.write ("http://ads2.psychz.net/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:24");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("\\\\\\\\\\\'><" + "/script>");
//-->
</script>
  <a style="font-family: Arial" href=\\\\\\\\\\\'http://ads2.psychz.net/adclick.php?n=ac3440ba\\\\\\\\\\\' target=\\\\\\\\\\\'_blank\\\\\\\\\\\'><img style="font-family: Arial" src=\\\\\\\\\\\'http://ads2.psychz.net/adview.php?what=zone:24&amp;n=ac3440ba\\\\\\\\\\\' border=\\\\\\\\\\\'0\\\\\\\\\\\' alt=\\\\\\\\\\\'\\\\\\\\\\\'></a>
<? } else {echo (\\\\\\\\\\\'<body bgcolor="#5275A9" topmargin=0 bottommargin=0 style="text-align: center"  onLoad=\\\\\\\\\\\\'top.location="../maintenance/maintenance.htm"\\\\\\\\\\\\'>
<font style="text-align: center;font-family: Arial;color: #FFFFFF;font-size: 13px" class="bottom"> </p> 
</font><font style="font-family: Arial;font-size: 14px">We are currently transferring 
you. Please Wait...</font> 
</body>\\\\\\\\\\\'
); } ?>
For some reason, it keeps showing the $maintenance=0 page even if I put the variable 'index.php?maintenance=1'. Plz help me out!
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/

Last edited by loco-sequencer : 08-13-2006 at 06:52 AM.
Reply With Quote

  #2 (permalink)  
Old 08-16-2006, 02:51 AM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Default

ok, there is something wrong with PHP itself. I tried it on another server running PHP and it worked! What is going on?

(PS: I think I should tell the admins!)
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/
Reply With Quote

  #3 (permalink)  
Old 08-19-2006, 09:13 PM
Profuse - William
Status: Offline
Member
 
Join Date: Nov 2005
Posts: 21
Profuse - William will become famous soon enough
Default

You try setting your PHP in CGI permission such as 755 or 751?
Reply With Quote

  #4 (permalink)  
Old 08-20-2006, 08:07 PM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Default

Quote:
Originally Posted by Profuse - William View Post
You try setting your PHP in CGI permission such as 755 or 751?
Yes I did. Twice to be precise. Is it just me or the server is acting strangely a me?
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/
Reply With Quote

  #5 (permalink)  
Old 08-20-2006, 09:12 PM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Default

OK. Now this is even freakier! the PHP mail() function is not working! This is the code (Just the sendmail code):

PHP Code:
 Array[\\\\\\\\\\\'name\\\\\\\\\\\'] ;
  
 Array[\\\\\\\\\\\'email\\\\\\\\\\\'] ;
  
 Array[\\\\\\\\\\\'message\\\\\\\\\\\'] ;
  
  
mail("support@the-sequencers-library.profusehost.net""Help/Support Request""<body style="font-size10px;font-familyTahoma;font-weightbold">
  Name: <font style="
font-size10px;font-familyTahoma;font-weightnormal">
  </font><br>
  <br>
  E-mail: <font style="
font-size10px;font-familyTahoma;font-weightnormal"></font><br>
  <br>
  Message: <font style="
font-size10px;font-familyTahoma;font-weightnormal"></font> 
  </body>"
\\\\\\\\\\\'(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:)))) text/html\\\\\\\\\\\'); 
I'm pretty sure this is correct coz it was working last night!

(PS: I did put in the forward slash before the ". vBulletin is just being protective and crap!)
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/
Reply With Quote

  #6 (permalink)  
Old 08-20-2006, 10:57 PM
BOoBOo
Status: Offline
Senior Member
 
Join Date: May 2003
Posts: 486
BOoBOo is on a distinguished road
Default

i think you are having the same problem as - http://www.profusehost.net/forum/sup...l-problem.html
__________________
DR. PAUL FOR PRESIDENT 08
Reply With Quote

  #7 (permalink)  
Old 08-20-2006, 11:29 PM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Default

i dont think so coz this person actually got the email sent out. I dont! I check my account email every time it fails.
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/
Reply With Quote

Reply


Thread Tools
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
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a javascript or asp script that gets all jose1008 Javascript 3 09-11-2007 06:38 AM
Another SCRIPT PROBLEM!!! flickall Javascript 0 07-06-2007 03:22 AM
PHP Script for SMS !!! flickall PHP 5 03-16-2007 06:57 AM
Sorting script flickall PHP 0 02-16-2007 10:44 PM
new ads script? am3n Free Web Hosting Support 3 05-29-2006 10:00 AM


All times are GMT -7. The time now is 05:56 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80