Jump to content

lanmonkey

Members
  • Posts

    63
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lanmonkey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. PHP session arnt working. a new PHP session is created every time the perl script is run. Any way around this?
  2. Thanks flyhoney, but I dont want to take the contents of the php file and execute it as perl code, I simply want to execute a php file, as PHP, at a certain point within a perl script.
  3. I didn't know where to post this so I hope its OK in this forum. Is it possible to include a PHP file in a pearl script? Obviously there will be no interaction between the php and perl scripts but I want a php file to run at a certain point in a perl script. Possible?
  4. thats the name of a variable to be stored in the session. $username = "bill gates" $_SESSION['username'] = $username; read this: http://www.w3schools.com/PHP/php_sessions.asp
  5. you could probably do this using reflection http://uk.php.net/oop5.reflection
  6. $qW = "SELECT * FROM `fcp_wwham` ORDER BY `DATE_ADDED` LIMIT $num, $max"; those are backticks in the query string, I think they should be single quotes. in PHP a backtick is for executing shell commands try this: $qW = "SELECT * FROM 'fcp_wwham' ORDER BY 'DATE_ADDED' LIMIT $num, $max"; I also think you will get away with removing the single quotes altogether. Failing all this try echoing out the quesry tring and pasting it into phpmyadmin and seing what it does.
  7. I use this: $ip = sprintf('%u', ip2long($_SERVER['REMOTE_ADDR'])) which converts the ip to an unsigned integer making it very easy to store and do operations on, like find out if the ip is in a blocked range this method is listed on the ip2long() page in the php manual http://uk.php.net/ip2long
  8. Assuming the database class you have connects to only one database then no, I can't see a situation where you would want to create multiple instances of the database class. Once the class is instantiated (once) any part of your script should be able to use it to access the database. $class->property = 'some value';
  9. http://www.google.co.uk/search?hl=en&q=This+application+has+requested+the+Runtime+to+terminate+it+in+an+unusual+way.&btnG=Google+Search&meta=
  10. use fileowner() to get the user ID you can then use posix_getpwuid() to get the user, but I think you have to install it.
  11. thanks for your reply but all that will do is change the array from enumrated array to associative array. no, mysql_fetch_assoc() will do that
  12. So you have an array called $routes with everything nicley ordered in it. all you need to do is a foreach loop in each html box foreach($routes[MON] as $mon) { //output stuff here echo $mon; } foreach($routes[TUE] as $tue) { //output stuff here echo $tue; } somthing like that
  13. according to the php documentation mkdir creates folders using 777 permissions by default Therefore if you have permissions to create the folder, and mkdir DOES create the folder you chould be able to write to it. have you got safe mode on?
×
×
  • 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.