Jump to content

scanreg

Members
  • Posts

    93
  • Joined

  • Last visited

Everything posted by scanreg

  1. I'm trying to understand what the "=&" does in the following PEAR Mail: &mail =& Mail::factory($something) What is the "=&" ? Thanks
  2. I'd like to use a php config file for some javascript Is this possible? Variable values would be in the php config file and the javascript would need to retrieve those values to run the script. If the php config file is called independently, then all that would be displayed is a blank screen. I'm looking for a way to keep some critical values out of the public eye so to speak but still run the script without errors. Thanks
  3. Ah, eagle eye, thanks
  4. Hi I'd like to call an external js file as a php file, something like: <?php <html><head> <script language=”JavaScript” type=”text/javascript” src=”js.php”></script> </head> <body> </body> </html> ?> I've tried making the js.php file like the following but I get a syntax error: <? Header(”content-type: application/x-javascript”); $testvar=”Hat”; echo “document.write(\”Item: <b>” . $testvar . “</b>\”)”; ?> The error I get is: <br /> <b>Parse error</b>: syntax error, unexpected ':' in <b>/path/to/js/js.php</b> on line <b>2</b><br /> Any idea why it might be triggering this error? Thanks
  5. What do you think are excellent intermediate and advanced PHP books? There are lots of beginner books but what about top-notch intermediate and advanced? Thanks
×
×
  • 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.