Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Is There a Way to Tatally Trace a Process

Discussion in 'General Discussion' started by lloyd_tennison, Feb 28, 2005.

  1. lloyd_tennison

    lloyd_tennison Well-Known Member

    Mar 12, 2004
    Likes Received:
    Trophy Points:
    Is There a Way to Totally Trace a Process - or how to agetr upcp

    I have had a simple php script on my server for nine months and all of a sudden last Thursday the script ceases to function. It was very simple, take three variables, make sure they are filled out, write to a text file on the server and send an email back to the signer and display the confirmation page. After upcp on Wednesday pm, now it never leaves the primary screen.

    Since everyone points at each other, and I cannot see why a java funtion to validate would stop working (esp. since it works on other Cpanel boxes) I would like to see if the processes could be stepped through - more than the standard phpsuexec and apache access logs provide.

    Like I mentioned, worked for months. I was also wondering if any of the addon modules in WHM could have broken this - as another op was looking at them and may have installed and removed one or more.

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <body bgcolor="#000033" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="61%" border="1" align="center" bordercolor="#999999" bgcolor="#000000"> 
    <tr valign="top"> <td height="709"> <table width="78%" border="0" align="center" cellspacing="0" cellpadding="0"> 
    <span class="style4"><font color="#FFFFFF" face="Beau, Century Gothic, Arial">Welcome 
    To The Guest List</font></span></div></td><td width="37%"height="12" valign="bottom"><span class="style4"><font color="#FFFFFF" face="Beau, Century Gothic, Arial"> 
    </font></span></td><td height="12" width="29%" valign="top"> <div align="right"><width="49" height="29"></div></td></tr><tr><td colspan="3" height="437" valign="top"> 
    <div align="center"> </div><hr width="95%" align="left" size="2" color="#000099"> 
    <table width="724" cellspacing="0" cellpadding="0" border="0" align="center"><tr><td></td></tr><tr><td align="left" valign="top" width="33%"> 
    <? if (!$user_emailaddress) {?> <script>
    function frmvalidate()
        if(document.form1.user_firstname.value == "")
            alert("Please enter your first name");
            return false;
        if(document.form1.user_lastname.value == "")
            alert("Please enter your last name");
            return false;
        re = /^\w+\@\w+\w+/;
          if(document.form1.user_emailaddress.value.indexOf ('@',0) == -1 || document.form1.user_emailaddress.value.indexOf ('.',0) == -1 && document.form1.user_emailaddress.value != "") {
        alert("Please enter a valid E-mail Address");
        return false;
        if (document.form1.user_phone_home_areacode.value.length < 3) {
        alert("Please provide your home area code");
        return false;
        if ((document.form1.user_gender[0].checked || document.form1.user_gender[1].checked) == false) {
        alert("Please select your gender");
        return false;

    </script> <br> <form name="form1" method="post" action="guestlist.php" onSubmit="return frmvalidate()"> 
    <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td></td><td valign="top"> 
    <table cellspacing="0" cellpadding="2" border="0" width="100%" align="center"> 
    <tr> <td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif">First&nbsp;Name</font>:</td><td valign="top"> 
    <input name="user_firstname" type="text" class="forms"  size="20"> </td></tr> 
    <tr> <td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif">Last&nbsp;Name:</font></td><td valign="top"> 
    <input name="user_lastname" type="text" class="forms" size="20"> </td></tr> <tr> 
    <td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif">Email:</font></td><td valign="top"> 
    <input name="user_emailaddress" type="text" id="email" class="forms" size="20"> 
    </td></tr> <tr> <td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif">Area&nbsp;Code:</font></td><td valign="top"> 
    <input type="text" name="user_phone_home_areacode" class="forms" size="3" maxlength="3" onFocus="if(this.value=='###')this.value='';"> 
    </td></tr> <tr> <td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif">Gender:</font></td><td valign="top"> 
    <input type=radio name="user_gender" value="male"> <font face="Verdana, Arial, Helvetica, sans-serif">Male 
    <input type=radio name="user_gender" value="female"> Female </font></td></tr> 
    <tr> <td colspan="2"> <div align="center"> <input name="submitmail" type="image" id="submitmail" src="images_buttons/submit.gif" alt=SUBMIT! border=0 width="143" height="23"> 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> <span class="footer"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">(NOTE: 
    You must supply a valid email address to receive your guestlist email confirmation. 
    Duplicate submissions or emails will be deleted.)</font></span> </div></td></tr> 
    </table></td><td>&nbsp;</td><td valign="top">&nbsp; </td></tr> </table><p align="center"><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><B>Guestlist is free from 10:00PM - 11:00PM<BR> $10 until 12:00AM </B></FONT></p><p align="center"><font face="Verdana, Arial, Helvetica, sans-serif">If 
    you wish to ad more names please use your back button after you submit.</font></p></form>
    <? } else { ?> 
    //$todayDate = date("l [F j, Y, g:i a (T)]"); //Thursday [June 5, 2003, 3:12 pm (EDT)]
    $event = "02/19/04";
    $emailsubscribe = "mailman-request@domainname";
    $subscribesubject = "";
    $subscribemessage = "subscribe address=".$user_emailaddress."";
    $email = "return address";
    $emailfrom = "Vip";
    $subject = "VIP $event";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "From: ".$emailfrom." <".$email.">\r\n";
    $headers .= "X-Priority: 1\r\n";
    $headers .= "X-MSMail-Priority: High\r\n";

    $message="Guestlist confirmation for $event

    Name: $user_firstname $user_lastname
    Email: $user_emailaddress

    We would like to thank you personally for your support at all our events. 
    Please dress to impress people of a higher standard. See you there!

    You MUST bring the email confirmation with you to the club.
    You will NOT be on any list at the door.

    address, etc

    DRESS CODE ENFORCED! No jeans or sportswear.  Dress slacks for men.";

    mail($user_emailaddress, $subject, $message, $headers);
    mail($emailsubscribe, $subscribesubject, $subscribemessage, $headers);
    $filename ="/path/file.txt";
    $handle= fopen($filename,'a+');
    $handle2= fopen($filename,'r');
    $big= count($size);
    $go = 0;
    $i = 0;
    while($i < $big)
    $contents = fgets($handle2, 4096);
    $c = explode("|", $contents);

    if (in_array($email, $c)) {
    $go = 1;
    if ($go != 1) {
    $datestamp = date('m/d/Y');
    $gl = "$datestamp|$user_firstname|$user_lastname|$user_emailaddress|$user_phone_home_areacode|$user_gender\r\n";
    fputs($handle, $gl);
     <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif">Please 
    check your email for your guestlist confirmation. <br>You MUST bring the confirmation 
    email with you to the event. There is NO guestlist at door.<br> <br> PARTY LOCATION: 
    somewhere<br> Location, directions, and more information: 
    <A HREF="blah blah " TARGET="_blank">blah </A>. 
    We look forward to seeing you at the party! <br> <br> Being on the guestlist does 
    not guarantee admission. The venue door staff always has final say and space is 
    limited. Please be sure to bring this printed copy of this with you as you will 
    NOT be on any list at the door. Come with a good attitude to the event and please 
    come dressed to impress.<br> <br><strong>DRESS CODE ENFORCED! No jeans or sportswear 
    allowed. Dress slacks for me.</strong></font><font face="Verdana, Arial, Helvetica, sans-serif"><br> 
    <font face="Verdana, Arial, Helvetica, sans-serif"><br> <br> You have 
    also been subscribed to our newsletter if you were not receiving it.<br> </font><br> 
    <?}?> </p></td></tr> <tr> <td class="bgcolor5"></td></tr> </table><p align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
    </font></strong></p><p align="center" class="style6">&nbsp;</p><div align="center"> 
    </div></td></tr> </table></td></tr> </table></td></tr></table><p align="center">&nbsp;</p>
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 lloyd_tennison, Feb 28, 2005
    Last edited: Feb 28, 2005

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice