Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kapok2002

  1. kapok2002

    Redirecting output of a function...

    I tried that before, except for the eval($contents) part. Thanks for the help, Matt
  2. kapok2002

    Redirecting output of a function...

    Here's my problem... I'm trying to assign the output of the include function to a variable. All I get is the status code if I go like: $var = include("filename"). $var is 1 at this point. I'm thinking there's some operator that will redirect the output like...
  3. kapok2002

    Alpha-numeric only

    It's simple, just add the characters you need to match: eregi("^[a-zA-Z0-9_\-]", $request) Make sure you escape the dash(-) with a backslash(\). You also have to escape the period(.), just for future reference.
  4. kapok2002

    How to update authorisation in cache with PHP?

    I'm not too sure of what you're doing, so I'm assuming you need the user's name and password to be tracked around the site. If so, you're using some session handling. In that case, just make sure that not only are you updating the password in the database, you're updating the password session...
  5. kapok2002

    Alpha-numeric only

    I think the only problem is that you're not looking for the uppercase letters. If so, try this: if (eregi("^[a-zA-Z0-9]", $request)) { //error code }
  6. kapok2002

    How to retrieve the form name after submitting??

    The easiest way would be to use JavaScript to put the form name into a hidden field.<br><FONT FACE=monospace><br>&lt;form name=&quot;t_form&quot; onSubmit=&quot;javascript:document.t_form.formname.value = document.t_form.name&quot;&gt;<br><br>&lt;input type=&quot;hidden&quot...
  7. kapok2002

    Putting a PHP script into Cron

    I need a PHP script put into Cron.&nbsp;&nbsp;How do I make Cron accept PHP?<br>
  8. kapok2002

    PHP as a Cron job.

    I need a PHP script to be fired off on a set interval of time.&nbsp;&nbsp;I would like to put it into Cron, but I don't know how to set it up to accept PHP scripts.<br><br>I also heard that I can use a Perl script to call a PHP script.&nbsp;&nbsp;I don't know how to do this either...

Part and Inventory Search

Back
Top