[PHP] login problem

2006-06-23 Thread suresh kumar
Hi, I am facing one problem.i previously mailed ,but there is no response,its running out of time.i want to implement that logic as soon as possible.This is my problem We are developing an online software for displaying ads in big mall.I want to restrict only one user

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford <[EMAIL PROTECTED]> wrote: Honestly, I've never seen anything so ridiculous. How is one to know that in order to get one program to work you have to install 28 others. I'm not trying to be a smart ass here, but seriously - No where in any documentation I've read does it say I

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Honestly, I've never seen anything so ridiculous. How is one to know that in order to get one program to work you have to install 28 others. I'm not trying to be a smart ass here, but seriously - No where in any documentation I've read does it say I need to install all these other packages. Would i

Re: [PHP] Extracting XMP tags from pictures

2006-06-23 Thread chris smith
On 6/24/06, Dotan Cohen <[EMAIL PROTECTED]> wrote: I have successfully extracted IPTC tags from jpegs, but now that I've switched to F-spot I need to extract XMP data. I have found this: http://www.ozhiker.com/electronics/pjmt/library/documentation/ But I have been so far unable to extract the t

[PHP] Extracting XMP tags from pictures

2006-06-23 Thread Dotan Cohen
I have successfully extracted IPTC tags from jpegs, but now that I've switched to F-spot I need to extract XMP data. I have found this: http://www.ozhiker.com/electronics/pjmt/library/documentation/ But I have been so far unable to extract the tags. I have an example image here: http://dotancohen

Re: [PHP] detect user click "stop" button in browser

2006-06-23 Thread Ahmed Saad
On 23/06/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, June 22, 2006 4:16 am, weetat wrote: An javascript thingie for "onStop" if it exists might help. window.onunload /ahmed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookie Question

2006-06-23 Thread Tom Ray [Lists]
I've run into something rather odd with cookies today. I'm working with this admin section on a site and I'm setting a cookie that is supposed to be good for one hour. So in the cookie I have time()+3600 and all was well or that was until someone fired up IE. It seems that IE refused to set the

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread Ahmed Saad
On 23/06/06, cajbecu <[EMAIL PROTECTED]> wrote: $data .= "&#".ord(substr($string,$i,1)).";"; and I think there's no need for substr.. just $data .= "&#".$string[$i].";"; /ahmed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xmldoc

2006-06-23 Thread Ahmed Saad
On 23/06/06, weetat <[EMAIL PROTECTED]> wrote: Anybody have any ideas what happening here ? Try this as the first line You can remove it later, of course, but it would enable displaying php errors as it's commonly disabled in production systems, AFAIK.. /ahmed -- PHP General Mailing Lis

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford <[EMAIL PROTECTED]> wrote: Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 David told you about this

Re: [PHP] templating

2006-06-23 Thread Ryan A
Hey Tedd, > > > >> > He just needs maybe 5 template > >> > pages, same pages, different color. > >> > >> For something THIS simple, I truly believe you > are > >> Better Off (tm) > >> with a simple head() and foot() function in a > >> globals.inc file: > > > >Sorry, dont know where my brain was t

Re: [PHP] xmldoc

2006-06-23 Thread Michael Rasmussen
On Fri, 23 Jun 2006 16:12:56 -0300, Mariano Guadagnini wrote: xmldoc, which is found in the extension DOM XML is no longer part of PHP as of PHP >= 5.0. It has been replaced by DOM. See http://dk2.php.net/manual/en/ref.dom.php http://dk2.php.net/manual/en/ref.domxml.php > Maybe when parsing the x

RE: [PHP] GD problems

2006-06-23 Thread Beauford
OK, so that works. So is gd (or one of the required programs) wonky then - I mean 4 out of 5 scripts I downloaded didn't work. I can't see all of these people being bad programmers.., but the funny thing is they all work on Windows. So that can't be it - is there still something I'm missing in Linu

Re: [PHP] Problem displaying a mysql database field

2006-06-23 Thread Jochem Maas
Don wrote: > Hi, > > I have a varchar field in a MySQL database that contains a line of text like > so: > > "This is a line if text" > > The double quotes are included in the database field. > > I cannot seem to display it on my HTML page, it always shows as blank. I > have tried using bot

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 This is line 62: $pos_x = bcmod($code,$size_x-60) +3; Linux is running PHP

[PHP] Re: comparing a string

2006-06-23 Thread Bill Guion
At 9:28 PM -0500 6/21/06, Rafael wrote: snip The only possible values of strcmp() are: 1, 0 & -1. Hmmm. My manual says: "Compares two strings; returns a number less than 0 if the first string is less than the second, 0 if the two strings are equal, and a number greater than 0 if the

Re: [PHP] GET, POST, REQUEST

2006-06-23 Thread Manuel Lemos
Hello, on 06/23/2006 09:46 AM John Nichel said the following: >>> I come from languages >>> where >>> you not only have to initialize a variable but have to declare it as >>> well so >>> initializing comes natural, I feel wrong if I don't do it, even if the >>> interpreter does not care. >> >> Jus

Re: [PHP] xmldoc

2006-06-23 Thread Mariano Guadagnini
Brad Bonkoski wrote: weetat wrote: Hi all, I have simple code below : It run ok in one of my test server (Red Hat Enterprise) , PHP 4.3.2. However in the one of production server which have same OS and PHP version , the code did not display "done parsing xml" in log file. It just d

Re: [PHP] Equivelant to mysql_fetch_row for normal array

2006-06-23 Thread Jochem Maas
Dave M G wrote: > Nicolas, Jochem, Tul, > > I have been going mental, reading the online manual and trying different > things. I can not get this loop to work. > > Please understand that I have endeavored to read up on list(), each(), > foreach(), while(). key(), and everything else I can. I've e

Re: [PHP] xmldoc

2006-06-23 Thread Brad Bonkoski
weetat wrote: Hi all, I have simple code below : It run ok in one of my test server (Red Hat Enterprise) , PHP 4.3.2. However in the one of production server which have same OS and PHP version , the code did not display "done parsing xml" in log file. It just display "starting pars

[PHP] xmldoc

2006-06-23 Thread weetat
Hi all, I have simple code below : It run ok in one of my test server (Red Hat Enterprise) , PHP 4.3.2. However in the one of production server which have same OS and PHP version , the code did not display "done parsing xml" in log file. It just display "starting parsing xml" only. I

Re: [PHP] Equivelant to mysql_fetch_row for normal array

2006-06-23 Thread Dave M G
Nicolas, Jochem, Tul, I have been going mental, reading the online manual and trying different things. I can not get this loop to work. Please understand that I have endeavored to read up on list(), each(), foreach(), while(). key(), and everything else I can. I've even looked at online tuto

Re: [PHP] templating

2006-06-23 Thread tedd
At 3:37 AM -0700 6/23/06, Ryan A wrote: >Hi Rich, >Thanks for replying. > > >> > He just needs maybe 5 template >> > pages, same pages, different color. >> >> For something THIS simple, I truly believe you are >> Better Off (tm) >> with a simple head() and foot() function in a >> globals.inc file:

Re: [PHP] templating

2006-06-23 Thread tedd
At 9:57 PM -0500 6/22/06, Richard Lynch wrote: >On Thu, June 22, 2006 7:23 pm, tedd wrote: >-snip- > >> > >> Well... I prefer to separate the header and footer into two files and >> load them as needed in my web page. In addition, I would most >> certainly remove ALL attribute stuff that could/sh

Re: [PHP] GET, POST, REQUEST

2006-06-23 Thread John Nichel
Richard Lynch wrote: On Tue, June 20, 2006 2:38 am, Satyam wrote: I come from languages where you not only have to initialize a variable but have to declare it as well so initializing comes natural, I feel wrong if I don't do it, even if the interpreter does not care. Just to be pedantic... T

Re: [PHP] templating

2006-06-23 Thread Ryan A
Hi Rich, Thanks for replying. > > He just needs maybe 5 template > > pages, same pages, different color. > > For something THIS simple, I truly believe you are > Better Off (tm) > with a simple head() and foot() function in a > globals.inc file: Sorry, dont know where my brain was that day, wha

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread cajbecu
That`s true, my mistake.. (length is in pascal) cheers, Juanjo Pascual wrote: > Ok. Thanks. > > You only have to change the function *length() *by the function *strlen()* > > > cajbecu escribió: >> function stransform($string) { >> for ($i=0;$i> $data .= "&#".ord(substr($string,$i,1)

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread Juanjo Pascual
Ok. Thanks. You only have to change the function *length() *by the function *strlen()* cajbecu escribió: function stransform($string) { for ($i=0;$i Do you know any way to convert any string to ascii characters?? I mean: *"abcdefgh"* to *"abcdefgh"* Juanjo.

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread cajbecu
function stransform($string) { for ($i=0;$i Do you know any way to convert any string to ascii characters?? > > I mean: > > > *"abcdefgh"* > > to > > *"abcdefgh"* > > > Juanjo. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread Juanjo Pascual
Do you know any way to convert any string to ascii characters?? I mean: *"abcdefgh"* to *"abcdefgh"* Juanjo.

Re: [PHP] Finding out the upload date of the file

2006-06-23 Thread Aaron Koning
http://ca.php.net/stat Might do it for you. Maybe check access time, although if you access the file at after its uploaded, the access time is changed. Maybe mtime? Aaron On 6/23/06, Ko Ko <[EMAIL PROTECTED]> wrote: Hi, How can I find out the upload date of the file to the server using PHP

[PHP] Finding out the upload date of the file

2006-06-23 Thread Ko Ko
Hi, How can I find out the upload date of the file to the server using PHP function? Regards, Ko Ko Reality starts with Dream - How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.