[PHP] Re: Question about php forwarding to javascript

2004-02-14 Thread Ammar Ibrahim
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: installing PHP with mysql isn't working?

2003-04-02 Thread Ryan Vennell
you can try just straight --with-mysql without the = and it may be in the default 
path...

 Don[EMAIL PROTECTED] 04/02/03 03:18PM 
Hi,

Trying to install PHP with the ability to interact with MySQL.  In my
configuration, I've included the option:

--with-mysql=shared,/usr

There are no compile errors.  Any idea why PHP is not recognizing any MySQL
functions?

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Question on PHP

2003-02-06 Thread Goetz Lohmann
Karthikeyan.Balasubramanian schrieb:
 Hi,
 
   I would like put this question directly to Rasmus creator of this
 wonderful server side scripting language.
 
   Is there a possibility with the future release of PHP to add extension in
 a easier manner.  For every feature client wants there is a recompile
 involved.
 
   Wouldn't this be much easier if we just compile the appropriate library
 and just point the directory through php.ini.
 
   In that way most of the hosting provider would have update to date
 version.
 
   I also like features of gefionsoftware's LiteWebServer wherein they
 provide an admin screen and it allows us to update to the latest version
 without
 pain.
 
   Here I am talking about both upgrading to latest version as well as adding
 extensions.
 
   Have a great day.
 
 Karthikeyan B


that's ain't such easy as it seem cause every little linux box is a bit
different ... SUSE, Red Hat, FreeBSD ... but maybe you could use RPM
package to update your system which also tell you which modul is used
by another ... after all note

never change a running system !

if there are no needs (security bug) to be always near the developement
branch.


-- 
 @  Goetz Lohmann, Germany   |   Web-Developer  Sys-Admin
\/  --
()  He's the fellow that people wonder what he does and
||  why the company needs him, until he goes on vacation.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Question about PHP

2002-07-11 Thread Richard Lynch

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 and PHP DOMXML and Apache

2002-04-23 Thread Christian Stocker

In [EMAIL PROTECTED], Sebastian A. wrote:

 Have the new DOM XML functions been included in the latest version of
 PHP (4.2) when I try to use one of the new functions, such as
 domxml_open_file() I get an error message saying I am calling and
 undefined function. Has anyone successfully used these new functions
 with PHP 4.2? 

domxml_open_file() will be in PHP4.3 (or whatever the version number for
the next major php-release will be). until then use xmldocfile();

 My second question is about apache. How do I do a clean
 shutdown of apache? When I shut I down through the console, the next
 time I start it up I am told something about an unclean shutdown...

apachectl stop?

chregu

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Question about PHP and images

2001-08-15 Thread Schrotty

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

2001-08-15 Thread Schrotty

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

2001-08-15 Thread Kunal Jhunjhunwala

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]