help me please i need a magic word / function

From: wandaring (valzubiri_at_sbcglobal.net)
Date: 05/30/04

  • Next message: Leif Neland: "Re: How should I go about validating a large form that has a "grid" of input fields and check boxes?"
    Date: Sun, 30 May 2004 10:54:14 GMT
    
    

    here's my problem

    If a visitor comes to visit my site and puts in his / her browser www .
    mysite.com/Ceciliasfirstpage.html (excluding the space) I want
    Ceciliasfirstpage.html to be generated on the fly from a common php page
    generator.

    What functions would i need?

    Is there a function that would return the string www .
    mysite.com/Ceciliasfirstpage.html so that I can clear the string and get
    "Ceciliasfirstpage" and use that to generate the temporary file
    Ceciliasfirstpage.html with information from my database? I'm imagining it
    would be a predefined variable?

    I also have the idea that i should use .htaccess to redirect the 404 error
    to another file like pagegenerator.html which would have the script to make
    the temporary Ceciliasfirstpage.html file, but that would mean that the
    requested information http: // www. mysite.com / Ceciliasfirstpage.html
    would pass through the .htaccess first then the pagegenerator.html and then
    Ceciliasfirstpage.html. If this is so, will the string variable be passed?

    Can anyone help me? is there a better way to do this?
    Thanks


  • Next message: Leif Neland: "Re: How should I go about validating a large form that has a "grid" of input fields and check boxes?"

    Relevant Pages

    • Re: temporary filenames
      ... Declare Function GetTempPath Lib "kernel32.dll" _ ... ByVal lpBuffer As String) As Long ... ' Generate a temporary file \api????.TMP, ... MsgBox tempfile ...
      (microsoft.public.vb.general.discussion)
    • Re: Where to write scrap files?
      ... string and then use the PRNG to pick the digits from 0-9 4 times. ... The tmpfile function creates a temporary binary file that is ... removed when it is closed or at program termination. ... whether an open temporary file is removed is ...
      (comp.sys.acorn.programmer)
    • Re: C99 IDE for windows
      ... guessing wrong is that the resulting string is truncated, ... either accept that or try again with a bigger buffer. ... guessing wrong is undefined behavior. ... representation to a temporary file and, at the same time, find out how ...
      (comp.lang.c)
    • Re: FILE * friom C to ruby with swig
      ... This function a FILE * to a temporary file it fill with user data, ... I don't know exactly how to deal with FILE* - there may be a standard SWIG typemap to deal with this, or you might search for examples to convert it to a Ruby File object. ... contain a string value that the function copy to it from an other variable ...
      (comp.lang.ruby)
    • Re: CSV parsing
      ... > Anyone know of a way to call fgetcsv and fputcsv using a string rather than ... //write the CSV string to a temporary file so that fgetcsvcan be ... <?php echo 'Just another PHP saint'; ...
      (comp.lang.php)