Jump to content

mbabli

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mbabli's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The upgrade went smooth. Anyway, in case anyone wants the info for similar situation here are the steps I took: 1- in the new directory - configure (with all the options that I need for the server) - make 2- stop apache (check the location of the server root from httpd.conf) - make install - copy the libphpX.so to the modules location found in step-2 3- restart apache.
  2. Hello, My first upgrade ever....and, it is a central production box:-( Currently, am running 4.3.2, and would like to upgrade to php5. Could someone give me a very precise *step by step* instruction on: How I could accomplish that (this is a live production box with a 1000+ users). I really would love to keep downtime to a minimum. Here is a list of specs that might help you help me: - slackware 9.0.0 - kernel 2.4.21 - php 4.3.2 - apache 1.3 - mysql - modssl - Zend platform (will this break after the upgrade?) Any help would be greatly appreciated.
  3. The JS file is user dependent, so, maybe just that or maybe a few thousand lines. + ~10 more variable arrays. My workaround was to simply use str_replace twice, once to filter the first entry and the 2nd to filter the rest of the array entries.   Here is what I have so far. <pre>             $fp = @file('visitedPages.js'); for($i=0; $i < count($fp); $i++) {   if(strstr($fp[$i], "visitedPages"))   { while($fp[$i++] != strpos($fp[$i],");")) {   $result = str_replace('"',' ',$fp[$i]);   echo "<tr><td><a class=\"linkList\"                                    href=\"#\">".str_replace(',',' ',                                   $result)."</a></td></tr>"; }   } }     It does the job for now. But, if there is a better way to do this, I will be in your debt. Thanks for the followup. </pre>
  4. Hello,   Thanks for the reply. Unfortunately, the regular expression didn't cut it for me. It only displayes elements starting from the 2nd, 3rd..etc.
  5. got it,   $fp = @file(myfile.js);   for($i=0; $i < count($fp); $i++)   {     if(strstr($fp[$i], "visitedPages"))     {       while($fp[$i++] != strpos($fp[$i],");"))       echo "<tr><td>".$fp[$i]."</td></tr>";     } } I still need to strip the " " from around the string, I tried using preg_match("/\"(\w+)\";/", $fp[$i]) with no success. Is there a better way to do this?
  6. Hello,   If I have a javascript file with the following:     var username="test";     var pagesVisisted=new Array(       "http://www.yahoo.com",       "http://www.msn.com",       "http://www.php.net"   );   var lastHit="0608301502"; And I want ONLY the stuff in the pagesVisited Array, how can I do that? Any help would be appreciated.  
  7. Thanks Guys,   Helpful and efficient ideas. Thanks again.
  8. Thanks for the fast reply. Appreciate that very much, but, could you help me further by telling me how can I extract the specified strings? should the script simply scan for a start and a finish string and create a secondary array? Thanks for your help.
  9. Hello everyone,     I am parsing an ini file for some data about the user, and I want to extract every line (and place it in an array as an array element). These lines are located in a javascript array. Here is what the text looks like var NeededText =new Array( "Needed-A", "Needed-B", "Needed-C" ); So how can I get Needed-A, Needed-B & Needed-C in an array using php? Any help would be appreciated.
  10. Found it,   \"([^\"])\"
  11. Hello,   If I have the following string      ="string";    extracted from an INI file and I want the    string portion without the =""; chars, how can I do that? I do not know much about regular expressions.
  12. Thanks for the fast reply (Both):   For solution 1: Unfortunately, the source page is HTML (Static), however, what I need is the source url (the info I need is in it). and   altering Apache to hanle html as php is not the most feasible at the moment.   For Solution 2: HTTP_REFERRER is an empty string if redirected because the referrer would be the browser itself.   Any more suggestions? Thanks in advance
  13. Hello everyone,   If I redirect HTML page using the <META EQUIV-HTTP="Refresh"...etc> What are my options of retreiving the source URL before the redirection. Any help would be appreciated. PS:  $_SERVER['REFERRER'; Is an empty string after redirecting.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.