php-windows Digest 28 Sep 2001 00:47:59 -0000 Issue 777
Topics (messages 9572 through 9584):
Code did not work on Explorer but worked on PHP coder.
9572 by: Burak Delice
PHP-> JavaScript
9573 by: Sichta Daniel
9575 by: Chen Wei, Lian
gif not working in php
9574 by: legal.HEROCYCLES.COM
9576 by: Martin Lindhe
Re: Cannot using session variables with fopen()
9577 by: Martin Lindhe
Re: php4 and interbase
9578 by: Martin Lindhe
current page
9579 by: Stanley Cheung
9580 by: Asendorf, John
Re: Well, I've got it running
9581 by: Asendorf, John
php developer program
9582 by: raj
9583 by: Omar Ortiz
Lines of txt
9584 by: Devon
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
hi
I tried a php code below:
<!doctype html public "-//W3C//DTD HTML 4.0 file://EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<?
// Full sys path to count.txt
$counter_file = "c:\count.txt";
// Puts the file lines into $counter_file_line array
$counter_file_line = file($counter_file);
// adds one to the number in the [0] array or the very first line
$counter_file_line[0]++;
// opends the file and then writes the new number and then closes it
$cf = fopen($counter_file, "w");
fputs($cf, "$counter_file_line[0]");
fclose($cf);
// prints out the full count
echo "$counter_file_line[0]";
?>
</body>
</html>
whe I run this sample in "php coder" it worked. But when I run on Internet
exoplorer it did not work. empty screen appeared.
why?
not: I have using windows 2000, IIS5 and PHP4.
--- End Message ---
--- Begin Message ---
Hi !!
Is there any way to parse variable from JavaScript to PHP ? Something like:
function xxx (id) {
<? $id = ?> id;
}
DAN
--- End Message ---
--- Begin Message ---
Hi Sichta,
it's impossible to do this, alternatively, u can put id as a hidden value
of a form and submit to specified page.
--
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================
Thursday, September 27, 2001, 7:06:00 PM, you wrote:
SD> Hi !!
SD> Is there any way to parse variable from JavaScript to PHP ? Something like:
SD> function xxx (id) {
SD> <? $id = ?> id;
SD> }
SD> DAN
--- End Message ---
--- Begin Message ---
Dear List Members,
Please consider my problem:
There is one animation (m1.gif) which when called in any html page works
fine.
But when the same image is called in any php file the same is not displayed
instead a cross mark (indicating as image not found) is displayed in
browser. Any suggestion?.
Thanks in advance.
AKR
--- End Message ---
--- Begin Message ---
> Dear List Members,
>
> Please consider my problem:
>
> There is one animation (m1.gif) which when called in any html
> page works
> fine.
> But when the same image is called in any php file the same is
> not displayed
> instead a cross mark (indicating as image not found) is displayed in
> browser. Any suggestion?.
>
> Thanks in advance.
Yes, the path to the image is incorrect.
I'm using IE, so im gonna tell you how to check out the path
with IE.
First, load the HTML-only page and rightclick on the image,
select Properties.
Here check the Address field. Copy it and put in a textfile or
something.
Do the same with the php-version and compare these URL's.
Fix the php script so it points to correct direction :-)
Good luck
/Martin
--- End Message ---
--- Begin Message ---
> Hi,
> if i use fopen or similars commands to open a file i've see
> that the session
> variables included in it are not valorized.
> Using fopen i've defined the absolute http path to the file,
> and the file is
> correctly parsed by the PHP interpreter, the only
> problem is that the session variables remain set to null.
>
> Can someone help me?
>
> Thanks a lot,
>
> Alessio.
Are you trying to execute php code that you read in with fopen() ?
You should use include() or require() for this.
Please read the manual on these functions at
http://www.php.net/manual/en/function.include.php
http://www.php.net/manual/en/function.require.php
Hope this helps
/Martin
--- End Message ---
--- Begin Message ---
> When I edit php.ini file and try to use the Interbase
> extension, everytime I
> try to open a php on my Browser it display the following warning
>
> "Unable to load dynamic library
> 'c:\php\extensions/php_interbase.dll' - in
> Unknown on line 0"
>
>
> Help me please !!!!
>
Look in your php.ini on extension_dir, try set it to:
extension_dir = c:\php\extensions\
And try again. the / in your path there is the problem i think
/Martin
--- End Message ---
--- Begin Message ---
Hi all,
anyone can tell me the parameter for name of current page?
e.g:
www.abc.com/hello.php
how can retrieve the value (hello.php)?
pls advise. thx!
Stanley
--- End Message ---
--- Begin Message ---
I believe you can call:
$thisepage = $PHP_SELF;
you'll need to look it up though
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Stanley Cheung [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 27, 2001 10:32 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] current page
>
>
> Hi all,
>
> anyone can tell me the parameter for name of current page?
> e.g:
> www.abc.com/hello.php
>
> how can retrieve the value (hello.php)?
>
> pls advise. thx!
>
> Stanley
>
>
>
> --
> PHP Windows 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]
>
--- End Message ---
--- Begin Message ---
Hi Alain... thanks, I've seen it, but the app is written and the last thing
I need now is to 1) learn ADODB and then re-write the app to reflect ADODB
and 2) add another potential wrench into the works...
And I'm not sure how ADODB will fix the SAPI modules problems I'm having
anyway...
But thank you for the suggestion.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Alain Samoun [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 7:16 PM
> To: Phil Driscoll
> Cc: Asendorf, John; Php-Windows (E-mail)
> Subject: Re: [PHP-WIN] Well, I've got it running
>
>
> Phil, John:
> Did you ever try ADODB?
> http://php.weblogs.com/ADODB
>
> Alain
> On Wed, Sep 26, 2001 at 09:51:55PM +0100, Phil Driscoll wrote:
> > I know < 0 about ODBC, but it would be interesting to see
> if the same code
> > caused an error when running with PHP as a CGI (or at least
> it may yeild more
> > clues).
> >
> > Is there anyone on the list into ODBC who can help out here?
> > --
> > Phil Driscoll
> >
> > --
> > PHP Windows 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]
>
--- End Message ---
--- Begin Message ---
hi all
I've just learned asp, and now have been told that php is the language to
learn. Further Mysql does not support asp.
Is there a web publishing program that can output to php ? so I don't have
to learn php in depth. (As frontpage and ultadev can output to asp)
If not is it because php is a programmers language ?
kind regards
--- End Message ---
--- Begin Message ---
Check http://www.codecharge.com/
Raj wrote:
> hi all
>
> I've just learned asp, and now have been told that php is the language to
> learn. Further Mysql does not support asp.
>
> Is there a web publishing program that can output to php ? so I don't have
> to learn php in depth. (As frontpage and ultadev can output to asp)
> If not is it because php is a programmers language ?
>
> kind regards
--- End Message ---
--- Begin Message ---
Below is my source that sipply opens a file
<?php
$fp = fopen ("http://localhost/Install.txt", "r");
if ($fp)
{ print"The file exists!"; }
else
{ print"The file does not exist"; }
?>
I Need to be able to a. print the file out b. The file must be printed out
line by line c. Write each seperate line to a mysql data base in different
tables.
Any help would be awsome
Cheers
--- End Message ---