[PHP] Re: Question about php forwarding to javascript
I'm not sure i completely understand what you need but you could write dynamic Javascript using PHP e.g; $myString = 'hey dude, help me'; script language = ... ?php if( strstr('help me') ) include('jsfunction.inc'); ? /script The code i wrote is really dumb, but trying to give you an example. hope this helps, Ammar Peter Andersson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! I am using a web page that uses the following php code to display the contents of a dynamically update webpage: ?php include(http://.../source.xls); ? Is it possible to forward the contents of the code to a javascript? eg if the file source.xls contains the text help me is it possible to send that text to a javascript? I am quite stuck here so any help would be greatly appreciated. regards Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Question about PHP
Hi, I am not sure if it is a right email address to ask question, if it is not plz disregard this email :) if it is this is my Q: I am reading a book about php, in its security section, it says it is more secure, as well as more efficient when installing PHP, to install PHP as a SAPI module for your Web server that to run it via the CGI interface do you know how can I do that? what is SAPI? Thank you for your time It's definitely more efficient. A case could be made for times when using PHP as a CGI (via suExec) could be more secure for doing certain kinds of things, though. I'm not at all there there's any real security difference from Module/CGI even without the caveats. Anyway, a SAPI allows PHP to live like a wart on the back of the web server. So, like, it becomes a part *OF* the web-server which is *already* running, and waiting to serve up web pages, and if PHP is already there, it just calls the main PHP function to start doing PHP. There is ISAPI for IIS, and ASAPI for Apache and so on. API is A-something Programming Interface or some such, and it's just a fancy acronym for saying we designed a logical reasonable set of functions that you can use to interact with our software without going crazy trying to figure out all the gory details inside I think the S part is for Server. Anyway, for Apache, you just configure it --with-apxs (or --with-apache, but that's less fun) instead of the php binary in /usr/local/bin. You also configure httpd.conf with the LoadModule and AddHandler instead of the Action. (Action is for CGI) For IIS, you use the php4nts.dll or something like that and make it a filter (MicrosoftIsm for Module) instead of the php.exe For other web-servers, it's pretty much the same idea, though I got no clue how to configure them... If you're stuck with one of them, and no PHP examples are coming up, find a Perl example, and do everything the same, only plug in PHP where it says Perl. -- Like Music? http://l-i-e.com/artists.htm Off-Topic: What is the moral equivalent of 'cat' in Windows? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Question about PHP and images
Let's i.e. a Bannerexchange, the users just put an img-tag on there site and the image appears. I wnat to know how this is possible. I tried already something like this: $im = imagecreatefromgif(news.jpg); imagegif = (); Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wanted to call a PHP-Skript through a img-Tag and PHP sends a image back. How can I do that? Schrotty.* I'm German, so please be patient with my English. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Question about PHP and images
My problem is solved!!! Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wanted to call a PHP-Skript through a img-Tag and PHP sends a image back. How can I do that? Schrotty.* I'm German, so please be patient with my English. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Question about PHP and images
How did you solve it? Kunal - Original Message - From: Schrotty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 11:18 PM Subject: [PHP] Re: Question about PHP and images My problem is solved!!! Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wanted to call a PHP-Skript through a img-Tag and PHP sends a image back. How can I do that? Schrotty.* I'm German, so please be patient with my English. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]