Re: [PHP] ending a session

2002-09-06 Thread Erwin
Raphael Hamzagic wrote: Thanks, But, if the client don't accept cookies? And if the user open a new browser window with the same url, the new window will use the same opened session. If the user opens a new window, without closing the old one first, then it will use the same session. If

Re: [PHP] ending a session

2002-09-06 Thread Erwin
Victor wrote: Why not unregistered the session variables first, destroy the session second and redirect the user with a header location to a plain html page that includes a one line JavaScript in the body tag like onload+thiswindow cloase or something like that, and a message that please

[PHP] Re: Domxml: coping with UTF-16

2002-09-06 Thread Alexandru COSTIN
Hello, You can try Krysalis to solve your problems. We have fully implemented UTF-8 support in both XML generation and XSL transformation, using a CDATA passthrough technique. http://www.interakt.ro/products/Krysalis/ As we have developed the site of the Romanian Ministry of ITC using

[PHP] Undefined index, Undefined variable, Undefined constant....

2002-09-06 Thread Jens Winberg
I'm having trouble with the newest version of PHP (4.2.2). For example in a page I'm using the following code: if ($_GET['action'] == logout) { //do something } But I'm getting an error message that says: ...log_message reports: PHP Notice: Undefined index: action in Ealier (other

[PHP] question

2002-09-06 Thread Meltem Demirkus
Hi, Can you help me? I want to send the button name to the another page when that button is pushed...Is it possible by using type=hidden or I need to use another way ...?? thanks alot meltem demirkus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] question

2002-09-06 Thread Justin French
a form with two buttons: --- form action=script.php method=post input type=submit name=button value=option 1 / input type=submit name=button value=option 2 / /form --- script.php --- if($_POST['button'] == option 1) { echo option 1 was clicked; } elseif($_POST['button'] == option 2)

[PHP] Re: Undefined index, Undefined variable, Undefined constant....

2002-09-06 Thread Erwin
Jens Winberg wrote: I'm having trouble with the newest version of PHP (4.2.2). For example in a page I'm using the following code: if ($_GET['action'] == logout) { //do something } But I'm getting an error message that says: ...log_message reports: PHP Notice: Undefined index: action

[PHP] noooob! = php logging into apache format?

2002-09-06 Thread :B nerdy
im looking for a program which will take what is avaliable in the ENV variables and create a log file in the apache log file format. does anyone know of any existing scripts? what im trying to do is, run a log file analysis program for a website, but i have no logs from the apache server - i

[PHP] fsockopen proxy?

2002-09-06 Thread :B nerdy
im unable to access the web without first authenticating with the proxy. how can i still use fsockopen and authenticate myself with php? cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] register_globals = Off

2002-09-06 Thread Holzner Roland
Hi there In my shop a had this code to add a product to the shoppingcart: session_start(); session_register(cart); if($action == addtocart) { $cart[] = $id,$amount; } To view the cart i had to explode the session_variable $cart and get more data from the database. session_start();

[PHP] cant find the wrong?

2002-09-06 Thread Meltem Demirkus
Hi, I am using this on a page to move 'new_id' to another page: input type=hidden name id value=? echo $new_id ? and onthe other page I qm tring to get the data like this: $id= $_POST['id'] ; even I tried echo $new_id; (directly use the data) but it is not working..WHY?

RE: [PHP] cant find the wrong?

2002-09-06 Thread Dave at Sinewaves.net
you're missing an equals sign. try this: input type=hidden name=id value=? echo $new_id ? dave -Original Message- From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 1:42 AM To: [EMAIL PROTECTED] Subject: [PHP] cant find the wrong? Hi, I am using

Fw: [PHP] cant find the wrong?

2002-09-06 Thread Meltem Demirkus
I am correcting I used echo $id; but did not work thanks. meltem - Original Message - From: Meltem Demirkus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 06, 2002 11:42 AM Subject: [PHP] cant find the wrong? Hi, I am using this on a page to move 'new_id'

[PHP] Re: Array Javascript

2002-09-06 Thread lallous
if you have an array in javascript: array1 = [1,2,3,4,5,6,7,8,'test']; etc... you can join it in JavaScript to make it a one string as: array1 = array1.join('|'); then split in PHP to make it back an array: ? $array1 = explode('|', $array1); ? good luck, Kale [EMAIL PROTECTED] wrote in

[PHP] question about Location

2002-09-06 Thread Meltem Demirkus
Is there anyway to direct my page to another after the php and output process work on the page? thanks meltem demirkus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Including files and functions

2002-09-06 Thread Bård Tommy Nilsen
Hello I have A LOT of files that are already made, but does now Want to make a printerfriendly version of every file, but Ran into some problems How can i solve this without have to change every READILE.HTM files ?? FILE 'DEFAULT.HTM' if (eregi (PRINT.HTM, $PHP_SELF)) { exit; } HERE IT

Re: [PHP] Hardware Address

2002-09-06 Thread Marek Kilimajer
exec(arp $_SERVER[REMOTE_ADDR], $output); $output[0] should be something like ? (192.168.1.37) at 00:E0:4C:00:30:2D [ether] on eth0 Chris Cook wrote: Hello all, I am working on a LAN application and am interested in obtaining the user's network card address to limit usage of the program.

Re: [PHP] precision using pow()

2002-09-06 Thread Marek Kilimajer
Hi, Split the calculation up an use echo to find the problem. David Rice wrote: Hi: I am attempting to calculate a mortgage payment using the following code. ?PHP $P = 10;// principal outstanding $I = 4.5;// annual interest rate percentage $N = 20;// number of

[PHP] Re: How do I keep a page from caching in I.E

2002-09-06 Thread Krzysztof Dziekiewicz
4.09.2002, 17:48, Victor V. Evtushenko wrote: Donpro wrote: Hi, Using I.E. 5.5. I can't seem to keep a page from caching. When I click on Have you read HOWTO: Prevent Caching in Internet Explorer? http://support.microsoft.com/default.aspx?scid=kb;EN-US;q234067 According to the

[PHP] question about Location

2002-09-06 Thread Meltem Demirkus
I mean I made a page with php and other stuff..And there is form .When I click on okbutton php is dpoing what it should . But after want the page to come to another link.I asked that before and they told me that .. there must be no uotput but I am using ?...? which means output.. so I

Re: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer
? ? doesn't mean output unless you use echo or print or whatever to output from there anything. Just use header(Location: yournewpage.php); at the end. Meltem Demirkus wrote: I mean I made a page with php and other stuff..And there is form .When I click on okbutton php is dpoing what it

[PHP] HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Cirstoiu Aurel Sorin
I tried to use $HTTP_SERVER_VARS['HTTP_HOST'] but the result is null. Is there an option so I can turn it on? Please help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Erwin
Cirstoiu Aurel Sorin wrote: I tried to use $HTTP_SERVER_VARS['HTTP_HOST'] but the result is null. Is there an option so I can turn it on? If PHP 4.1.0: try $_SERVER['HTTP_HOST'] instead. You can also set register_globals = On in the php.ini file (not recommended!) HTH Erwin -- PHP

[PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Cirstoiu Aurel Sorin
I also tried $_HTTP['HTTP_HOST']. Not working. The host has php 4.1.2 version -- Cirstoiu Aurel Sorin InterAKT Support http://www.interakt.ro Erwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Fw: [PHP] question about Location

2002-09-06 Thread Meltem Demirkus
I tried , but it is giving this error: Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\debugger\project_module\project_update_.php:2) in C:\FoxServ\www\debugger\project_module\project_update_.php on line 37 the line 2 is ? include

Re: [PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Brad Bonkoski
that's: $_SEVER['HTTP_HOST'] Cirstoiu Aurel Sorin wrote: I also tried $_HTTP['HTTP_HOST']. Not working. The host has php 4.1.2 version -- Cirstoiu Aurel Sorin InterAKT Support http://www.interakt.ro Erwin [EMAIL

Re: [PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Cirstoiu Aurel Sorin
Yes, I ment $_SEVER['HTTP_HOST'] but I wrote wrong. Still nothing. What is the problem?? This should work but is not. -- Cirstoiu Aurel Sorin InterAKT Support http://www.interakt.ro Brad Bonkoski [EMAIL PROTECTED] wrote in

Re: [PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Cirstoiu Aurel Sorin
This is not the problem. I understand what you mean. Now you wrote wrong and I copy pasted. I tried with $_SERVER['HTTP_HOST'] . No effect. -- Cirstoiu Aurel Sorin InterAKT Support http://www.interakt.ro Cirstoiu Aurel Sorin

Re: [PHP] question about Location

2002-09-06 Thread liljim
Are you needing to output anything to your users before the page is sent to this new page? If not, then simple answer, don't send output before redirecting. Brief example (coming from a submitted form) ?php extract($_POST); if ($action) { // something's been submitted. // Process all of

RE: [PHP] question about Location

2002-09-06 Thread Naintara Jain
see, if you output anything for the user, then you cannot use a header if your include files have echo/print statements or errors that are displayed then it is considered output. use JavaScript to redirect the page look up window.location=url in JavaScript reference embed that script in php. or

Re: Fw: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer
Put your code that takes care of the post before the line 2, output the header and exit. Like this ? if($_POST['submit']) { do what needs to be done header(Location: nextpage.php); exit; } include start_html.php Meltem Demirkus wrote: I tried , but it is

Re: Fw: [PHP] question about Location

2002-09-06 Thread adrian murphy
make sure there is no whitespace before first ? - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, September 06, 2002 11:34 AM Subject: Re: Fw: [PHP] question about Location Put your code that takes care of the post before the line 2,

Fw: [PHP] question about Location

2002-09-06 Thread Meltem Demirkus
ok thans , I am trying meltem Meltem Demirkus wrote: I tried , but it is giving this error: Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\debugger\project_module\project_update_.php:2) in

[PHP] Source code

2002-09-06 Thread Roman Duriancik
How I show in IE source code of html page with php ? roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] cant find the wrong?

2002-09-06 Thread Naintara Jain
are u using the exact code (below, as given by u) input type=hidden name id value=? echo $new_id ? if yes, the 1st page has the problem (missing = ), replace with this input type=hidden name=id value=? echo $new_id ? name=id not name id -Naintara -Original Message- From: [EMAIL

[PHP] Re: Source code

2002-09-06 Thread nicos
You can't. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Roman Duriancik [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] How I show in IE source code of html page with php ? roman -- PHP General Mailing List

[PHP] Re: Source code

2002-09-06 Thread lallous
showsource.php: html body span style='border:dashed 2px red' ? $mem = join('', file('THEFILE.HTM')); $mem = htmlspecialchars($mem); echo $mem; ? /span Good luck, Roman Duriancik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How I show in IE source code of

[PHP] unix timestamp

2002-09-06 Thread andy
Hi everybody, I am trying to create a unix timestamp which dates back a certain amount of days. Lets say I would like to have a unix timestamp from 7 days ago. what I tryed is just to subtract values since this are counted s since the start of the unix epoche, but this does not work in cases

RE: [PHP] unix timestamp

2002-09-06 Thread Jon Haworth
Hi Andy, I am trying to create a unix timestamp which dates back a certain amount of days. Lets say I would like to have a unix timestamp from 7 days ago. what I tryed is just to subtract values since this are counted s since the start of the unix epoche, but this does not work in

[PHP] refresh a php page

2002-09-06 Thread Meltem Demirkus
Hi, Is it possible to refresh a php page by a code?Or I should use meta or javascript?. thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: refresh a php page

2002-09-06 Thread Kondwani Spike Mkandawire
Meltem Demirkus [EMAIL PROTECTED] wrote in message 001b01c2559c$11d3af60$5583@hiborya">news:001b01c2559c$11d3af60$5583@hiborya... Hi, Is it possible to refresh a php page by a code?Or I should use meta or javascript?. thanks meltem Most of the responses I get when I ask Qs

Re: [PHP] Source code

2002-09-06 Thread adrian murphy
add nl2br() to make it look pretty e.g span ? $mem = join('', file('index.htm')); $mem = htmlspecialchars($mem); $mem = nl2br($mem); echo $mem; ? /span - Original Message - From: Roman Duriancik [EMAIL PROTECTED] To: PHP-General [EMAIL PROTECTED] Sent: Friday, September 06, 2002 11:53

[PHP] Re: unix timestamp

2002-09-06 Thread nicos
You should use mktime() mktime (PHP 3, PHP 4 ) mktime -- Get UNIX timestamp for a date Description int mktime ( int hour, int minute, int second, int month, int day, int year [, int is_dst]) www.php.net/mktime -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de

[PHP] Re: refresh a php page

2002-09-06 Thread nicos
You can use header() : header(Refresh: time; URL:http://php.net); Or in javascript: A HREF=# onclick=document.location.reload();return(false)BRefresh/B/Abr (on click) Or in meta : META HTTP-EQUIV=REFRESH CONTENT=time -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement

Re: [PHP] defining vars within functions as global

2002-09-06 Thread Michael Sims
On Fri, 06 Sep 2002 13:52:08 +1000, you wrote: Hi, I'd like to be able to define multiple variables within a function, and have it available outside the function from the point the function is called... How about this: ? function foo() { return array ( foo = aaa, bar = bbb );

[PHP] Low Cost PHP Hosting

2002-09-06 Thread Philip Radford
Hi All, I have recently subscribed to the list and would like to thank everyone for their support and guidance in the use of the PHP scripting language. I am trying to find a low cost host for testing out PHP web applications on the Internet. I have a similar account set up with Brinkster for

Re: [PHP] Source code

2002-09-06 Thread lallous
I think it is also good to fetch $mem as: $fp = fopen('index.htm', 'r'); $mem = fread($fp, filesize('index.htm')); fclose($fp); that will keep index.htm formatted as is. Adrian Murphy [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: Hardware Address

2002-09-06 Thread Brent Baisley
To get the hardware address you need to dig down through the network layers. If you look at the OSI 7 network model (used on all systems), you will see that PHP really operates on layers 6 7. The hardware address (MAC Address) is down on layer 2, the data link layer. The layered model is

RE: [PHP] Problem with inserting values into database through php

2002-09-06 Thread Jay Blanchard
[snip] I´m quite a newbie in making php, but I managed to run the test you suggested, but nothin happened. This time it was propably the code I did: first I added the or die(Invalid query: $sql); part and ran the form, but everything happened just like when refreshing a page. Then I did this:

[PHP] about whitespace

2002-09-06 Thread Meltem Demirkus
Hi, is there any function which removes white spaces inse a string? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] gettext issues

2002-09-06 Thread Aaron Gould
I am implementing gettext into a website, but for some reason, the pages keep swapping between the intended translated language (French), and the primary language (English). I'm using RedHat 7.3, with gettext-0.11.1-2 RPM. At the top of every page, I have this code: setlocale(LC_ALL,

[PHP] Re: about whitespace

2002-09-06 Thread lallous
str_replace() Meltem Demirkus [EMAIL PROTECTED] wrote in message 001201c255a4$6253ece0$5583@hiborya">news:001201c255a4$6253ece0$5583@hiborya... Hi, is there any function which removes white spaces inse a string? thanks -- PHP General Mailing List (http://www.php.net/) To

SV: [PHP] about whitespace

2002-09-06 Thread Bård Tommy Nilsen
Take a look at str_replace function ... Bård Tommy -Opprinnelig melding- Fra: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sendt: 6. september 2002 14:53 Til: [EMAIL PROTECTED] Emne: [PHP] about whitespace Hi, is there any function which removes white spaces inse a string?

RE: [PHP] Problem with inserting values into database through php

2002-09-06 Thread bbonkosk
Just and FYI update, in case someone else has this problem... The problem was the example was using $PHP_SELF as the form action variable, of course it has been discussed on this list that in the newer versions of PHP, register_globals is turned off in php.ini, so $PHP_SELF had no real

RE: [PHP] Low Cost PHP Hosting

2002-09-06 Thread Michael Egan
Philip, I've found UK Linux (http://www.uklinux.net) to offer a good service at low cost. They also offer 50% discount for charities. Michael Egan -Original Message- From: Philip Radford [mailto:[EMAIL PROTECTED]] Sent: 06 September 2002 05:47 To: [EMAIL PROTECTED] Subject: [PHP] Low

[PHP] Html in a string

2002-09-06 Thread Bård Tommy Nilsen
Hello I have a string with the html source, but want to fetch only some Of the code ... I want to use alle the codes inside start-end .. Example: !-- start HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE // end -- -- PHP

RE: [PHP] about whitespace

2002-09-06 Thread Jay Blanchard
[snip] is there any function which removes white spaces inse a string? [/snip] eregi_replace(), there are others as well. http://www.php.net/manual/en/function.eregi-replace.php rtfm(); HTH!; Jay I bet I can stop gambling * * Texas PHP

RE: [PHP] Html in a string

2002-09-06 Thread Jay Blanchard
[snip] I have a string with the html source, but want to fetch only some Of the code ... I want to use alle the codes inside start-end .. Example: !-- start HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE // end -- [/snip] Have

RE: [PHP] Including files and functions

2002-09-06 Thread Jay Blanchard
[snip] I have A LOT of files that are already made, but does now Want to make a printerfriendly version of every file, but Ran into some problems How can i solve this without have to change every READILE.HTM files ?? [/snip] If I understand you have a look at CSS on http://www.w3c.org. HTH!

[PHP] gmdate()

2002-09-06 Thread lallous
Isn't the gmdate() supposed to return the same value when run from two different timezones? I run it on GMT+2 system and EDT system, and I get 1 hour difference, please advise. Elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image resizing

2002-09-06 Thread Fifield, Mike
I have been trying to figure out the best way to resize photo quality images to thumbnail size and have them come out looking good. I have read about the function http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor() and it looks like it may do this. However I do

RE: [PHP] Low Cost PHP Hosting

2002-09-06 Thread Jon Haworth
Hi Phil, I am trying to find a low cost host for testing out PHP web applications on the Internet. http://34sp.com/ are pretty good, and at £15 a year (about US$20 I believe), they're certainly low cost :-) I'd stay away from http://zenithtech.com/ though, lots of people I know have had a

Re: [PHP] Low Cost PHP Hosting

2002-09-06 Thread Ryan A
Hey, 321go.biz no problems so far... hope that helped. Cheers. -Ryan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: unix timestamp

2002-09-06 Thread andy
Hi everybody, here is the code which does unfortunatelly not work as I want. The goal is to produce a unix timestamp which is a date 7 days ago and one 14 days ago and so on. code: switch ($ts){ case 1: // today $timestamp = mktime (0,0,0,date(m) ,date(d),date(Y)); break; case 2:

Re: [PHP] Low Cost PHP Hosting

2002-09-06 Thread Chris Hewitt
Michael Egan wrote: Philip, I've found UK Linux (http://www.uklinux.net) to offer a good service at low cost. They also offer 50% discount for charities. Phil, Yes, in the UK, UK Linux is good, I have an account. They do a free account too (just use the phone line for 1hour per month).

Re: [PHP] Source code

2002-09-06 Thread liljim
I might be missing something, but Wouldn't this suffice? : http://www.php.net/manual/en/function.highlight-file.php Maintains formatting *and* colours things up nicely. -James Lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I think it is also good

[PHP] Re: Html in a string

2002-09-06 Thread lallous
$mem = ' !-- start HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE // end -- '; if (preg_match('/!--.+?--/is', $mem, $result)) { var_dump($result); } good luck, Bård tommy nilsen [EMAIL PROTECTED] wrote in message

[PHP] wrong timestamp?

2002-09-06 Thread andy
Hi there, this is a add on a post I did a few hours ago regarding timestamp. I was able to locate the error, but not to fix it. The code : $timestamp = date('YmdGis',(mktime (0,0,0,date(m) ,date(d)-1,date(Y) ) ) ); produces a string like this: 200209050 There is one 0 missing. Because

Re: [PHP] Re: about whitespace

2002-09-06 Thread Meltem Demirkus
str_replace() works .. thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: wrong timestamp?

2002-09-06 Thread Erwin
I was able to locate the error, but not to fix it. The code : $timestamp = date('YmdGis',(mktime (0,0,0,date(m) ,date(d)-1,date(Y) ) ) ); produces a string like this: 200209050 There is one 0 missing. Because of this my querry is not working, How come this timestamp is wrong?

RE: [PHP] unix timestamp

2002-09-06 Thread Morten Skou
Hi, You can just use : $output = strtotime(+1 day); $output = strtotime(-7 day); http://dk.php.net/manual/en/function.strtotime.php -Morten Skou -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: 6. september 2002 13:50 To: [EMAIL PROTECTED] Subject: [PHP] unix

Re: [PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Marek Kilimajer
Contents of the Host: header from the current request, if there is one. Does your browser send Host: ? If you use IP it doesn't Cirstoiu Aurel Sorin wrote: This is not the problem. I understand what you mean. Now you wrote wrong and I copy pasted. I tried with $_SERVER['HTTP_HOST'] . No

Re: [PHP] gmdate()

2002-09-06 Thread Marek Kilimajer
The server needs to be set up correctly - it needs to know what time zone it is in and if the BIOS time is GMT or local. lallous wrote: Isn't the gmdate() supposed to return the same value when run from two different timezones? I run it on GMT+2 system and EDT system, and I get 1 hour

RE: [PHP] Undefined index, Undefined variable, Undefined constant....

2002-09-06 Thread Jay Blanchard
[snip] I'm having trouble with the newest version of PHP (4.2.2). For example in a page I'm using the following code: if ($_GET['action'] == logout) { //do something } [/snip] As a quick troubleshooting method echo or print $_GET['action'] to see what, if anything, is contained there. I would

[PHP] Web based FTP client

2002-09-06 Thread Mark McCulligh
I am trying to build or find a web FTP client. I can create a server side FTP app in PHP no problem, but I would like the user to be able to browse their own file system. I thought about using upload functions with PHP FTP functions on the server but I didn't want just an input box with a

Re: [PHP] Undefined index, Undefined variable, Undefined constant....

2002-09-06 Thread Meltem Demirkus
I had the say problem, try this if($_POST['update'] == Update) { someting to do... } - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Jens Winberg' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 06, 2002 5:12 PM Subject: RE: [PHP] Undefined index, Undefined

Re: [PHP] gmdate()

2002-09-06 Thread lallous
I don't own the server, and the server is probably set up correctly as it is a web hosting server. anyway, how should that RedHat 6 server be set up ? Elias Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The server needs to be set up correctly -

[PHP] which version to use?

2002-09-06 Thread Anil Garg
hi What version combinations of php and mysql should be used? regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] gmdate()

2002-09-06 Thread Naintara Jain
lets say, ServerOne has TimeZone GMT+2 ServerTwo has TimeZone GMT+3 the gmdate() will return diff values for the same timestamp. essentially there will be a diff of 1 hour in the return values from these two servers. -Naintara -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[PHP] Re: which version to use?

2002-09-06 Thread :B nerdy
i used the stable versions avalible at each website. mysql 3.23 and apache 1.3 something never given me a problem and ive been running it for a few weeks.. let alone some ppl running them for months/years cheers Anil Garg [EMAIL PROTECTED] wrote in message 015701c255b3$a2704990$[EMAIL

RE: [PHP] which version to use?

2002-09-06 Thread Jon Haworth
Hi Anil, What version combinations of php and mysql should be used? PHP 4.2.2 is the latest and is highly recommended. For MySQL it depends somewhat on which features you need - if you can live without the stuff in the 4.x versions, you're probably best off with 3.23.52. Cheers Jon --

RE: [PHP] Web based FTP client

2002-09-06 Thread Jon Haworth
Hi Mark, I am trying to build or find a web FTP client. I want it to look like a windows based FTP client a list box on one site for the user's file system and a list box on the other for the ftp server. A couple of iframes side by side should let you do that. The biggest problem I can

[PHP] Re: which version to use?

2002-09-06 Thread nicos
You should use both latest versions. PHP 4.2.2 www.php.net/downloads and MySQL 3.23.52 -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Anil Garg [EMAIL PROTECTED] a écrit dans le message de news: 015701c255b3$a2704990$[EMAIL PROTECTED] hi What

[PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Fifield, Mike
I sent this email out earlier this morning and got no response. It was quite early so I thought I would send it again now that more people are hopefully at work :-) I have been trying to figure out the best way to resize photo quality images to thumbnail size and have them come out looking

Re: [PHP] Image Resizing ... lets try this again.

2002-09-06 Thread bbonkosk
What I found works very well for this is the function: getimagesize(); $image_file = something.jpg; $size = getimagesize($image_file); //$size[0] = height and $size[1] = width (double check on php.net) //Then just divide them... $width = $size[1]/2; $height=$size[0]/2; DISPLAY IMAHE

Re: [PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Marek Kilimajer
If you can use exec you may use convert, or also imlib module provides very good results. Fifield, Mike wrote: I sent this email out earlier this morning and got no response. It was quite early so I thought I would send it again now that more people are hopefully at work :-) I have been

[PHP] sending email with linefeeds

2002-09-06 Thread Kai Hinkelmann
Hi, we are sending plain-text-emails from php not using the mail-command but with port-operations. Everything works fine BUT outlook 2000 eats the linefeeds. We tried several things: copying the header from an original (functional) email from outlook, sending with \n or \r\n to seperate

[PHP] Re: sending email with linefeeds

2002-09-06 Thread Erwin
Kai Hinkelmann wrote: Hi, we are sending plain-text-emails from php not using the mail-command but with port-operations. Everything works fine BUT outlook 2000 eats the linefeeds. We tried several things: copying the header from an original (functional) email from outlook, sending with \n

Re: [PHP] Re: threads in Apache 1.3

2002-09-06 Thread Rick Widmer
At 08:04 PM 9/5/02 -0500, Richard Lynch wrote: I use persistant database connections and I wonder, if one connection is always in use by one page or by more? Each thread will end up having a connection. Actually, it will have a connection for *each* username/password combination used to

[PHP] Link for downloading?

2002-09-06 Thread Alex Shi
Hello, How to create a link that when click it will lauch file downloading at client's end. And another question which might be biased from this topic, but still related with the subject of this message: why some downloading link will lauch a ftp client such as NetAnts or Download Accelerator

[PHP] Re: Link for downloading?

2002-09-06 Thread nicos
First, to create a link thats just a a href=.. that point to the file. ie a href=file.zipfile/a Second, that depend of your windows's default configuration. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Alex Shi [EMAIL PROTECTED] a écrit dans

Re: [PHP] Link for downloading?

2002-09-06 Thread bbonkosk
Question 1: I think this has to do with how you attribute your file extensions in httpd.conf (Apache thing, not PHP), so check out the docs on apache.org Question 2: I woudl tend to believe it depends what kind of link it is... is it and HTTP downlaod site (which would use the windows save file

[PHP] Calculating Totals from table columns without a second query to the DB

2002-09-06 Thread Jay Blanchard
[thinking out loud] For small result sets where I am looking for column totals I generally issue 2 queries to the database, one for the data and one for the totals. This works fine, but for some things the database returns 100's or 1000's of records. To make this easier to use I page the records,

RE: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-06 Thread Richard Black
One thing I would add to Jay's out loud thoughts... Always consider alternative approaches. Using a single query and calculating the totals at the same time is fine if you have a small dataset, or (as in this case) are producing page totals (I'm assuming the dataset is paged to fit all on one

RE: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-06 Thread Jon Haworth
Hi Jay, while($row = mysql_fetch_object($result)){ print(td . $row-value . /td\n); print(td . $row-another_value . /td\n); $value1 = $value1 + $row-value; $value2 = $value2 + $row-another_value; } Challenge; Can this be made as simple for rows too? thinking out loud :-)

RE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
Reading the users hard drive is impossible from php, but it's really easy with Java. -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 7:49 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Web based FTP client Hi Mark, I am trying to

[PHP] PHP and Apache

2002-09-06 Thread Tim Haynes
Is there any easy way of creating,editing and deleting virtual hosts using PHP via a website?? I have already thought of a way but seems a little long winded. Thanks in advance. Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Here is a email

2002-09-06 Thread Kai Hinkelmann
Thanks for your answer. Here is a genereted email: Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 21481 invoked from network); 6 Sep 2002 15:47:03 - Received: from notused.i-dea.de (HELO mail.e-h.de) (62.26.122.219) by ns.i-dea.de with SMTP; 6 Sep 2002

[PHP] Re: sending email with linefeeds

2002-09-06 Thread Kai Hinkelmann
I can't believe that I hit wrong buttons two times... so my answer for the third time... Thanks for your answer. Here is a genereted email: Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 21481 invoked from network); 6 Sep 2002 15:47:03 - Received: from

[PHP] Re: Link for downloading?

2002-09-06 Thread Alex Shi
Thanks...but how to use header() to generate such a download link? Alex [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... First, to create a link thats just a a href=.. that point to the file. ie a href=file.zipfile/a Second, that depend of your windows's

  1   2   >