Jump to content

Jezza

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

Everything posted by Jezza

  1. Is there any possible, known, way to execute a PHP page like a process, so it doesn't display it but it runs it and does all the commands? I'm making a register page and when the person registers it will send him an email and say "your email has been sent" but i don't want to wait for it to send the email so i was going to create another page which does that and execute that one, whilst displaying the "email sent" message.
  2. well it is mounted, are you fimilliar with ubuntu? (i'm not)
  3. $d = dir("smb://gc1/srcds/orangebox/garrysmod/addons"); i'm hosting my appache php thingo on ubuntu linux, i'm trying to grab a directory over a network, i used smb:// but i'm not sure if that's right, GC1 is the computer name i'm connecting to. it sais Warning: dir() [function.dir]: Unable to find the wrapper "smb" - did you forget to enable it when you configured PHP? in /home/jeremy/Desktop/site/ECG/garrysmod/index.php on line 4 how can i grab a file over a network with ubuntu linux?
  4. but when i do that, sure the application would start, but so long as the application is running the pages won't load, i don't want that
  5. That made absolutely no sense to me and just looking at it makes my head hurt, and it also looks like it outputs the result i don't want that, i pretty much want to simulate double clicking on a program, it opens up like that and doesn't wait for the program to finish up before it continues.
  6. Well usually i set variables so like for instance, if someone is logging into a general website and i only needed to remember the persons logged in username as he went around the website my coding would look like <? //if login is correct blablabla $_SESSION['user'] = $_POST['username']; ?> so then i would be identified as Jezza. On other pages there would be something to check to see if i'm logged in it could simply be <? if($_SESSION['user'] <> "') { echo "You're logged in! Welcome ".$_SESSION['user']; } else { echo "Go away..."; } ?> For your thing you need the persons type of account to be registered too so it could be on login setting 2 session variables $_SESSION['user'] = $_POST['username'];(for example) $_SESSION['type'] = whatever (whereever you get his type from); then pages that check it can look like this <? if($_SESSION['type'] == "writer") { echo "You are a writer flhalfhaofhflkashdaskl;hdaslkh"; } else { echo "You are not a writer"; } ?>
  7. Well if you were to exec something with php, the page would only finish loading AFTER the thing it executed stopped... I want to exec something with php, the page would load even if the thing hasn't stopped yet...
  8. Is this using PHP or do you just want to know how to post an email wth HTML in it?
  9. I don't really get what you mean by this, more info please. Also, how knew are you to PHP?
  10. Hey i'd like to execute a program, such as a server using PHP, BUT i need it to execute the program and not wait for it to exit? How would i do that? Running ubuntu (linux) lampp (xampp)
×
×
  • 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.