[PHP] mysql_pconnect to remote system

2001-10-22 Thread Nick Richardson
Ok, after all the problems trying to get into the flat file and stuff, i decided it will just be easier to use mysql... Only problem is the database is on the machine that is going to host the site when it's done... (Redhat Linux) and is being developed in my office on a windows box... So i need

Re: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Pavel Jartsev
Nick Richardson wrote: > > ... > > Example: I want to pass a string using the URL (blah.php?car=civic_si) then > search for ##civic_si in the text file, and print everything until it finds > ##end. So the text file will look like this: > > ##civic_si > This is my content, blah blah > ##end > >

Re: [PHP] preg_match_all...grrrr!!!

2001-10-22 Thread Pavel Jartsev
"PHPGalaxy.com" wrote: > > ... > > A link from one such entry looks like this: > >psPhoneEntry.py?firstname=Adam&lastname=Collier&street=3912+Foley+Glen+Cir&city=Fenton&state=MI&zip=48430-3435&phone=8107507456 > > My matching pattern looks like this: > $engreg = > >'/psPhoneEntry.py?firstname

[PHP] PHP Openlink/Progress Problems

2001-10-22 Thread Grant Walters
I'm going nuts trying to work out how to handle errors from data statement with single quotes. PHP 4.0.6 appears to be mangling something somewhere. All statements work with the Openlink odbctest program Any help appreciated SQL: $sql"; $results = odbc_do($conn,$sql); if ($results) { while (o

[PHP] Print statement : Thanx for all who helped ;)

2001-10-22 Thread root
I'd like to thank all those who helped me with the print statement prob, it was simple a matter of adding the appropriate string joiner and it worked flawlessly ;))) Regards, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] Root Certificate

2001-10-22 Thread Adam . Whitehead
Hi All- I recently went to a website which popped up with a dialog in Internet Explorer asking if I wanted to install their root certificate into IE's list of trusted root certificates. I now need to do this with a website I am developing but for the life of me cannot find the code (either serve

Re: [PHP] Re: require & include

2001-10-22 Thread Rasmus Lerdorf
That's outdated. The only difference today is that if a file can't be included/required for some reason it is a fatal error with require and a warning with include. -Rasmus On Tue, 23 Oct 2001, Jason G. wrote: > From the manual: > > Unlike include(), require() will always read in the target f

Re: [PHP] Re: require & include

2001-10-22 Thread Jason G.
From the manual: Unlike include(), require() will always read in the target file, even if the line it's on never executes. If you want to conditionally include a file, use include(). The conditional statement won't affect the require(). However, if the line on which the require() occurs is no

Re: [PHP] won't erase "$"

2001-10-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > Suggestions for improvement anyone? > > > $mystring = ereg_replace (".html", "", $mystring); > > > $mystring = ereg_replace (".htm", "", $mystring); > > > $mystring = ereg_replace (" ", "", $mystring); > > > > > > $mystring

[PHP] NEXT Page and BACK page

2001-10-22 Thread Tshering Norbu
Dear list, I would like to query only the last 50 records/rows (order by ID desc) in the following script file which uses MySQL, and I want to have NEXT page for the 50 rows earlier than last 50 queried and go on. I think I can use JavaScript for BACK page to go back. Could you pl add for me th

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
Jack, thanks for the response: I can use a database if really really needed. The main reason for wanting to use a flat file is for ease of update from the client's side. They are not technical in the least, and this will save me from having to update a database everytime. Although i guess i co

Re: [PHP] won't erase "$"

2001-10-22 Thread jtjohnston
:) Thanks. Just learning. Suggestions for improvement anyone? > Oh man, use str_replace() please and to remove the $ just use '$' > > $filename = stripslashes(strip_punctuation($filename)); > > $filename = $filename.".".randString(5).".htm"; > > echo "here it is: ".$filename."!!"; > > ---

[PHP] RE: Help with Query

2001-10-22 Thread De Necker Henri
> Hi there. > > I have the following question for u. > I want to join two tables but it must be displayed in the a specific > format. > > The data of the tables are as follow : > > Table employee : > > idsurname initialsba > 1 PoepH ER >

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Jack Dempsey
lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this: 1. find the pos of the string you need using strpos 2. find the pos of the ending delimiter 3. substr from the firs

[PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
Hey everyone, Anyone out there know how i could do this: I have a client who is an import car tuner. They would like to feature the cars they work on in their website. Instead of creating a new .html or .php file for every car they add to include the background setup, and the general content (

[PHP] Re: Session control issue

2001-10-22 Thread Grant Boggs
"Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am experiencing a problem of trying to run several variants of the same > code and keep the sessions separate. Here is the scenario. > > I am launching all of this from a CMS. So, the CMS displa

[PHP] Error POP3 Class

2001-10-22 Thread Aku
Hello, I try pop3 class to access pop3 server, why error result like, "Fatal error: Maximum execution time of 30 seconds exceeded in c:\new\sample\oh\pop3.php on line 23" before finish. file: pop3.php /* Private methods - DO NOT CALL */ Function GetLine(){ for($line="";;){ if(feof($t

Re: [PHP] Re: syntax for checking if string contains something

2001-10-22 Thread Peter
Thanks for your reply. But I tried it and it seems to pass right through the if condition without checking if the string is empty or not. Here is another PHP file where I tried using the "empty" function The input form contains the following: QTY: Here is the part that checks whether or not t

Re: [PHP] won't erase "$"

2001-10-22 Thread Rasmus Lerdorf
Oh man, use str_replace() please and to remove the $ just use '$' -Rasmus On Mon, 22 Oct 2001, jtjohnston wrote: > Marc, > I have prepared a function to erase syntax from a > But it won't erase "$" in its output when I echo. What am I doing wrong? > > A post-reply would be real handy, > Thanks

[PHP] won't erase "$"

2001-10-22 Thread jtjohnston
Marc, I have prepared a function to erase syntax from a But it won't erase "$" in its output when I echo. What am I doing wrong? A post-reply would be real handy, Thanks, John $filename = stripslashes(strip_punctuation($filename)); $filename = $filename.".".randString(5).".htm"; echo "here it

[PHP] Apache "Request" Ids?

2001-10-22 Thread Brian White
I am pretty sure I am dreaming here but I once wrote a locking tool for UNIX that kept as part of it's information the process ID. If another process went to grab the lock, one thing it would do was check if the process that had taken it was still running. If it wasn't, it knew it could saf

Re: [PHP] Update onBlur or onChange

2001-10-22 Thread John Monfort
Try this: *** 'varname' is equivalent to *** //adding var total; //html //once the content of varname1 is changed, the value will be added to total //add varname2 to total ...or something to that effect. Double check the syntax... hope that that helped. __John Monfo

[PHP] preg_match_all...grrrr!!!

2001-10-22 Thread PHPGalaxy.com
I've never had good luck with this function. I first learned how to (sorta) use it from looking at other code. It worked fine when I made a meta search engine, but when I tried on expanding on it, well, I've started losing hair. =) Here's the scenario: I'm trying to parse results from Yahoo's Pe

Re: [PHP] format date

2001-10-22 Thread David Robley
On Mon, 22 Oct 2001 22:38, Caleb Carvalho wrote: > Hi all, > > i would like a simple way to get date field formatted from my little > sybase, > > for some reason the output of it is showing the wrong date > example "Jan 1 1900 12:00:00:000AM" > > thanks Perhaps if you could show what you are doin

Re: [PHP] Wicked, Array add problem!

2001-10-22 Thread Mark
you want array_merge() On Tue, 23 Oct 2001 00:27:29 +0200, Emile Bosch wrote: >I was wondering if someone could help me with the following problem >I want to add values to an array, overwriting the existing ones and >keeping >the original intact. > >array 1 looks like: >text > posted = Posted by

[PHP] Re: require & include

2001-10-22 Thread Yasuo Ohgaki
Jtjohnston wrote: > Coverting from perl ... > What's the differencw between require and include? Where, when, why? > I forgot from which version, but current PHP's require/include works the same way except - require() raise fatal error, if it can't find file - include() raise warning, if it

[PHP] Re: What attribute is used ... when a session will expire?

2001-10-22 Thread Yasuo Ohgaki
Jason Caldwell wrote: > Just curious -- > > What system attribute is used to help in determining when a > session file will be "cleaned up (GTC)" or in other words, > deleted? Is it the delete time calculated based on the > file's "CREATED" or "MODIFIED" time? Modified time is used for mo

[PHP] Re: Odd is_int() behaviour

2001-10-22 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: > This is expected behaviour. > > Ashley M. Kirchner wrote: > >> I have the following snippet in my file: >> >> if ($PATH_INFO == "") { $PATH_INFO = "/"; } >> echo "PATH_INFO: $PATH_INFO\n"; >> // All we want is the fist element, call it $section >>

[PHP] Re: Wicked, Array add problem!

2001-10-22 Thread Emile Bosch
I was wondering if someone could help me with the following problem I want to add values to an array, overwriting the existing ones and keeping the original intact. array 1 looks like: text posted = Posted by source = Bron array 1 looks like: text posted = Posted by1 Now i would lik

[PHP] Re: Wicked, Array add problem!

2001-10-22 Thread Emile Bosch
Uhm found a solution for my own problem somewere else on this list.. credits go2 Andrey Hristov "; $array1 = array("text"=>array("posted"=>"Posted by","source"=>"Bron")); $array2 = array("text"=>array("posted"=>"Posted by1")); print_r($array1); print_r($array2); function array_overlay(&$ar

[PHP] HTTP_RAW_POST_DATA / Content-type

2001-10-22 Thread Ryan
Hello, I'm running into a problem accessing $HTTP_RAW_POST_DATA in my scripts. I am interfacing with an external system that is doing a HTTP POST to my php script (I'm running 4.0.6). The variable $HTTP_RAW_POST_DATA is always blank even though the external system is sending me data. The probl

Re: [PHP] PHP on PWS

2001-10-22 Thread juliet
I use PWS on a Win 95; to be able to run php files here, I have to specify that the virtual directory in my machine can, not only read and run scripts, but also *execute* (Advanced | Edit properties | checkbox "execute"). Also, I have to type the http address, not the filename: http://myserver/di

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
> > > following problem appeared on PHP 3.0.16 on LINUX > > > I have a binary file, where I want to replace some letters > > > I do the following: > > > $filename = "xyz.sdc"; > > > $fd = fopen( $filename, "r+b" ); // also tried "r" > > > $x=filesize( $filename ); // this shows the correct filesiz

Re: [PHP] require & include

2001-10-22 Thread Steve Cayford
http://www.php.net/manual/en/function.require.php require() pulls in the target file when the source file is parsed/compiled, include() pulls in the target file when the source file is executed. So an include() nested in an if statement will only be included if the if statement evaluates to tr

[PHP] Wicked, Array add problem!

2001-10-22 Thread Emile Bosch
I was wondering if someone could help me with the following problem I want to add values to an array, overwriting the existing ones and keeping the original intact. array 1 looks like: text posted = Posted by source = Bron array 1 looks like: text posted = Posted by1 Now i would lik

[PHP] require & include

2001-10-22 Thread jtjohnston
Coverting from perl ... What's the differencw between require and include? Where, when, why? John? Email post & reply always appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] Form Question

2001-10-22 Thread Jason G.
Chip, I read all of the posts regarding this topic that I could find, and just *had* to reply. (Take the TIME to look at this. It is about the most Efficient, Powerful way I know of) Do this! __ txtNAME="Required"; if(empty($txtADDRESS))

[PHP] Re: syntax for checking if string contains something

2001-10-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter) wrote: > for example > if ($email =="") > > checks if the $email variable was inputted by the user. Better: if(!empty($email)) > However I was wondering how can I refine it so that it will also check if > the $e

Re: [PHP] str_replace binary safe??

2001-10-22 Thread Oliver Heinisch
At 22.10.01 21:36, you wrote: > > > Hi folks, > > following problem appeared on PHP 3.0.16 on LINUX > > I have a binary file, where I want to replace some letters > > I do the following: > > $filename = "xyz.sdc"; > > $fd = fopen( $filename, "r+b" ); // also tried "r" > > $x=filesize( $filename )

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
> Hi folks, > following problem appeared on PHP 3.0.16 on LINUX > I have a binary file, where I want to replace some letters > I do the following: > $filename = "xyz.sdc"; > $fd = fopen( $filename, "r+b" ); // also tried "r" > $x=filesize( $filename ); // this shows the correct filesize 22528 byte

[PHP] Session control issue

2001-10-22 Thread Gaylen Fraley
I am experiencing a problem of trying to run several variants of the same code and keep the sessions separate. Here is the scenario. I am launching all of this from a CMS. So, the CMS displays a page that has 3 links on it. Link 1 is version A of an application, Link 2 version B, etc. The thr

[PHP] str_replace binary safe??

2001-10-22 Thread heinisch
Hi folks, following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = "xyz.sdc"; $fd = fopen( $filename, "r+b" ); // also tried "r" $x=filesize( $filename ); // this shows the correct filesize 22528 byte $conten

Re: [PHP] Copying to network drive (Win32)

2001-10-22 Thread Mark
On Mon, 22 Oct 2001 20:11:32 +0300, Ville Mattila wrote: >Hi there, > >Referring to one question I sent here over a month ago, I'd like to >get back with subject: >I need to copy a image file from the server box to another computer >in our local network. All computers have WinNT 4.1 on it (also th

[PHP] syntax for checking if string contains something

2001-10-22 Thread Peter
Hi, I was just going through my PHP book and I noticed that there was a way to check whether or not a form was filled out after pressing "submit". Things worked okay when I used the form checking method of just checking if a particular field was filled in. for example if ($email =="") check

[PHP] PHP3 file upload

2001-10-22 Thread rpruitt
This is from the manual -- Possible file upload attack: filename '$userfile_name'."; } ?> This uploads the file into the correct temp directory, it recognizes the filename, etc., but it won't copy it. I only can achieve the error message. I need to use PHP3 for this, I'm obviousl

Re: [PHP] php code to fax

2001-10-22 Thread Chris Carbaugh
Check out phpfax.sourceforge.net This is a project I have pretty much abandoned, and never even posted the code. I have had some people interested in it though, and would like to give the code to the community, I just never found the time. Drop me a line if your interested, and I'll do my best

Re: [PHP] *** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...

2001-10-22 Thread Kurt Lieber
Um...this isn't php related and I already get a ton of emailcould we keep things on-topic? that said, check out www.favicon.com -- it should have the info you need. --kurt On Monday 22 October 2001 11:37, you wrote: > Anyone out there know how to set the icon that is shown in the address b

[PHP] *** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...

2001-10-22 Thread Robin McKenzie
Anyone out there know how to set the icon that is shown in the address bar, to the left of the URL? It's also used in the favourites pane. I know this isn't really the right place to make this post, but I figured that there are so many experienced programmers out there writing websites, that s

RE: [PHP] php code to fax

2001-10-22 Thread Jerry Lake
I could be wrong, but it would seem easiest to have an an email to fax gateway and use your php to send mail Regards, Jerry Lake Interface Engineering Technician -Original Message- From: Glenn Antoine [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 6:39 AM To: [EMAIL PROT

[PHP] Re: Logic/method question...

2001-10-22 Thread Mike Frazer
You could try using a separate file for configuration that uses arrays for each catgeory: $merchandise = new Array( 1, 2, 6, 23, ... ); Then have it run a foreach loop: foreach ($merchandise as $tempVar) { $queryConditions .= "AND code = '$tempvar'"; } You need to obviously work with it a litt

[PHP] Re: Print statements , syntax , usage, etc

2001-10-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ricardo Fitzgerald) wrote: > *print 'Ref:';* > *print '$reference';* > > the problem is with the output, the table is fine but the variable $reference > otputs it's name $reference instead of it's value i.e. 345. I'm getting mad > because I k

[PHP] Print statements , syntax , usage, etc

2001-10-22 Thread Ricardo Fitzgerald
Hi, ¡'m new to php, but not to programming, I'm having problems using a simple print statement : *print 'Ref:';* *print '$reference';* the problem is with the output, the table is fine but the variable $reference otputs it's name $reference instead of it's value i.e. 345. I'm getting mad bec

[PHP] Logic/method question...

2001-10-22 Thread Jeff Lewis
It's not really, but kind of, a PHP question. I mean it is being written in PHP :) I am putting together a search feature for our classified ads and there are about 4000 each day. Now I am bulding a query to search by newspaper, date, and keywords. One last thing is categories. Curious how

[PHP] Copying to network drive (Win32)

2001-10-22 Thread Ville Mattila
Hi there, Referring to one question I sent here over a month ago, I'd like to get back with subject: I need to copy a image file from the server box to another computer in our local network. All computers have WinNT 4.1 on it (also the server box PHP & Apache running) expect that file server w

Re: [PHP] Update onBlur or onChange

2001-10-22 Thread Mark
On Mon, 22 Oct 2001 00:33:39 -0700, KING OGNAJD wrote: >Helo: > >I¹m working on a form that I¹d like to have a feature that adds your >total >as items are selected. Currently, I¹ve got some javascript doing the >job but >it only works in ie, and besides, I¹d rather use php if possible. > >The curr

Re: [PHP] Re: MessageBox in PHP?

2001-10-22 Thread Mike Frazer
Or shorten your code: put the Javascript into a separate file, then use if ($err) { include("/javascript/file/path/here"); } Use it over and over again via this method. "Fatih Ustundag" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > But you can write

[PHP] Re: validating form data...

2001-10-22 Thread Mike Frazer
To verify the existence of both a name and message, try a test similar to the following: if ((email_is_valid($email)) && (strlen($name) > 0) && (strlen($name) > 0)) { ... } I've found that using "" in a conditional block tends to be a bit buggy. strlen() seems to be pretty solid for verifying th

[PHP] What attribute is used ... when a session will expire?

2001-10-22 Thread Jason Caldwell
Just curious -- What system attribute is used to help in determining when a session file will be "cleaned up (GTC)" or in other words, deleted? Is it the delete time calculated based on the file's "CREATED" or "MODIFIED" time? Thanks Jason [EMAIL PROTECTED] -- PHP General Mailing List (htt

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Beeman
That worked. Thanks a lot... You rock -Beeman "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am > > using date("M d, Y g:ia",$myrow["creation_datetime"]) at the end of a pri

[PHP] Html email

2001-10-22 Thread Benny
Please help me. I have problem with html email. I send email to 3 email address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] The email client for yahoo & eudoramail is their web. And for the last destination, the email client is ms outlook. The html email for yahoo & eudoramail a

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Rasmus Lerdorf
> Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am > using date("M d, Y g:ia",$myrow["creation_datetime"]) at the end of a printf > statement but the date comes back as Dec 31 1969 7:00pm for all entries. > When the date was inserted I used now() in the insert statement. Yo

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Beeman
Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am using date("M d, Y g:ia",$myrow["creation_datetime"]) at the end of a printf statement but the date comes back as Dec 31 1969 7:00pm for all entries. When the date was inserted I used now() in the insert statement. "Rasmus Ler

[PHP] RE: Forms and Netscape -- spacing problem -- Help!

2001-10-22 Thread Andrew Chase
It's almost certainly not W3C compliant, but if your form is inside a table (I know, I know - you're not supposed to use tables for layout) you can hide the tags outside the tags of the cell containing the form: E.G.:

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Rasmus Lerdorf
Are you retrieving it using MySQL's UNIX_TIMESTAMP() function? PHP's date() function needs a unix timestamp to work with. -Rasmus On Mon, 22 Oct 2001, Beeman wrote: > No it is definitely a DATETIME and the date and time are correct in the > database, but when I try to format and display them t

RE: [PHP] Getting session to work

2001-10-22 Thread Sean LeBlanc
I wanted to add some more details: Apache on Windows 2000 box is 1.3.20 Database connection to MySQL IS working, so that's not the problem. -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Getting

RE: [PHP] php hosting

2001-10-22 Thread Andrew Chase
They've been mentioned on the list before, but I had a great experience with Cedant.com. Apache, PHP4, MySQL, and shell access via SSH (and the ability to compile your own software in a /home/youraccount/bin directory). I hosted a site with them for a few months earlier this year before taking t

Re: [PHP] PHP on fu!$#@ing PWS

2001-10-22 Thread Sam Masiello
I am going to make the assumption that you did not download the installer from the following URL (only the zip package).. http://www.php.net/downloads.php If you downloaded both the zip package and the installer and are still having a problem, please post the error message(s) that you are recei

[PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Beeman
No it is definitely a DATETIME and the date and time are correct in the database, but when I try to format and display them the date is correct but the time is not "_lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > maybe you have in your database a DATE

[PHP] Getting session to work

2001-10-22 Thread Sean LeBlanc
I'm trying to use my own session handler. I tried several examples before trying it out on my local box. It worked, and I don't know why it didn't work on the other. Here are the setups: My local box (where it works): OS: Windows 2000 PHP 4.0.6 Apache 1.3.x I didn't even have to set the handler

[PHP] PHP on fu!$#@ing PWS

2001-10-22 Thread German Benzano
How do I run *.php on PWS I download php4, edit php.ini & reg and NOTHING! Please someone HELP ME! My OS is Win 98 & PWS 4.0 (Sorry by my poor English, I speak spanish 8o( /G£rmÅn// German Benzano [EMAIL PROTECTED] Montevideo - Uruguay -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] language question

2001-10-22 Thread Christian Reiniger
On Monday 22 October 2001 14:28, David Otton wrote: > why does this work: > > foreach ($table as $row) > list ($a, $b) = $row; > > but this doesn't? > > foreach ($table as list ($a, $b)); because the correct syntax is foreach ($table as $key => $val) {

[PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread _lallous
maybe you have in your database a DATE field instead of DATETIME field? "Beeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have inserted the date into MySQL using now() in the query. However, when > I retrieve the using MySQL_Date_Format in the query th

[PHP] DATE FORMAT ISSUES

2001-10-22 Thread Beeman
I have inserted the date into MySQL using now() in the query. However, when I retrieve the using MySQL_Date_Format in the query the time is always wrong. on the other hand, if I format the date using Date() in PHP it always makes the date DEC 31 1969 at 700PM. Please Help -- PHP General Mailin

[PHP] php code to fax

2001-10-22 Thread Glenn Antoine
I am working on a project that will require the ability to take input from a web interface and then fax the content out to some of the members. If anyone has had any experience with a similar project, I would greatly appreciate any assistance. Thanks in advance, Glenn -- PHP General Mailing L

[PHP] format date

2001-10-22 Thread Caleb Carvalho
Hi all, i would like a simple way to get date field formatted from my little sybase, for some reason the output of it is showing the wrong date example "Jan 1 1900 12:00:00:000AM" thanks Caleb Carvalho Application Engineer LoadRunner/APM

RE: [PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampén
F... read it and got it! ;) I had no idea what to look for.. Niklas P.S. Thanks -Original Message- From: Tomy Wagner [mailto:[EMAIL PROTECTED]] Sent: 22. lokakuuta 2001 15:16 To: Niklas Lampén; Php-General Subject: Re: [PHP] Funny thing with variables rtfm :o http://www.php.net

Re: [PHP] HTTP Authentication

2001-10-22 Thread Stig-Ørjan Smelror
Wilbert Enserink wrote: > Hi all, > > > is it possible to do a HTTP Authentication with my own loginform instead of > using the ugly pop up window? > > > regards, > > Wilbert > With a lot of thought, yes. You need to consider a few factors before you start. Security: Checking the IP addr

[PHP] Re: validating form data...

2001-10-22 Thread Toke Herkild
Very embaressing The error where not in my if-statement... but in what I did later on in the else-clause... so boys and girls... remember you do not set variables like this: $Var = = "Avariable"; // Doesn't work. (slap me!) the correct is : $Var = "Avariable"; Sorry for vasting your time.

RE: [PHP] Error on session_start()

2001-10-22 Thread Dave Watkinson
You've probably got an echo $something_or_other line before calling the header() function. If not, have you included or required a file? If there's a blank line (or more than one blank line) at the bottom of your included or required file that is considered output to the browser. Header() MUST

RE: [PHP] validating form data...

2001-10-22 Thread Simba Pangeti
hi miles , this should work for you! if (!eregi("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $email)) { echo " Please go back and fill in a VALID e-mail address exit; } th

[PHP] HTTP Authentication

2001-10-22 Thread Wilbert Enserink
Hi all, is it possible to do a HTTP Authentication with my own loginform instead of using the ugly pop up window? regards, Wilbert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] validating form data...

2001-10-22 Thread Miles Thompson
Divide and conquer Have you tried it one function at a time -- e.g. if (email_is_valid($Email) { do stuff ... also, what values do these tests return? have you echoed the values? HTH - Miles At 02:07 PM 10/22/01 +0200, Toke Herkild wrote: >I've made a script which ought to val

[PHP] language question

2001-10-22 Thread David Otton
why does this work: foreach ($table as $row) list ($a, $b) = $row; but this doesn't? foreach ($table as list ($a, $b)); it seems to me that the two are equivalent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] validating form data...

2001-10-22 Thread Andrey Hristov
&& and "and" are same except that they stay at different levels in the precedence table. But if the programmer is skilled he will never write code which depends on the precedence table but put brackets here and there, everywhere they are needed. -- Andrey Hristov Web Developer Icygen Corporat

Re: [PHP] Re: unset Cookies

2001-10-22 Thread Andrey Hristov
Depends on that if the cookie is set on your server or not. If it is set on your server and the cookie_domain is set to /, that means -> every script from the server has right to access it, if the path is more restrictive you cannot access it. And of course if the cookie is from another domain

Re: [PHP] validating form data...

2001-10-22 Thread Toke Herkild
Nope, wasn't that... And it should not do any difference using 'and', 'AND' or '&&' as they do the same thing... Nicolas Costes : > hellorghh !!! > > I think that : > > if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ >do stuff ... > } > > ...should be better . (&&, not "

re: [PHP] validating form data...

2001-10-22 Thread nicolas costes
hellorghh !!! I think that : if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ do stuff ... } ...should be better . (&&, not "and") "Toke Herkild" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > I've made a script which ought to validate if there is

Re: [PHP] Funny thing with variables

2001-10-22 Thread Tomy Wagner
rtfm :o http://www.php.net/manual/en/language.operators.bitwise.php Wagner Tomy Web Developer Editus Luxembourg S.A. - Original Message - From: "Niklas Lampén" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 1:59 PM Subject: [PHP] Funny thing

[PHP] Re: unset Cookies

2001-10-22 Thread Christian Kuhtz
Michael Thanry wrote: > > Hello everyone! > > Is there a way to unset or expire a cookie which was not set by my pages? Overriding an existing cookie with setcookie()and 1 sec expiry should do the trick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] validating form data...

2001-10-22 Thread Toke Herkild
I've made a script which ought to validate if there is data in the fields or not... but it doesn't seem to work... the validation is following: if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){ do stuff ... } But even if I submit an empty form it executes "do stuf..." I hav

[PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampén
What causes this: I have a page getting variable $BackLink with string "http://www.domain.com/my_page.php4";. I accidentaly wrote and what I got out was "—‹‹ÅÐЈˆˆÑ™–‘“ž‘›š‡‹ŒÑœ’А™™š šŽŠšŒ‹ ™‘‹Ñ—Ë". What causes this? What does that ~ sign do before a variable? Niklas L

[PHP] Re: Thick arc with PHP

2001-10-22 Thread _lallous
try this: ImageSetThickness() "Ville Mattila" <[EMAIL PROTECTED]> wrote in message 009801c15a31$e7f56140$0100a8c0@ville">news:009801c15a31$e7f56140$0100a8c0@ville... Hi there, How it would be possible to draw a "thich" arc with PHP & GD? You can see a picture here about thing I mean: http://ww

RE: [PHP] Re: MessageBox in PHP?

2001-10-22 Thread Fatih Ustundag
But you can write javascript code with php like this: if ($err) { echo "" echo "\n"; echo "alert('ERRORR');\n"; echo "\n"; echo "\n"; exit(); } -Original Message- From: _lallous [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 3:20

[PHP] Re: MessageBox in PHP?

2001-10-22 Thread _lallous
you can use JavaScript to do that... alert('your message goes here'); embed this in your HTML source code. it is not possible to do so in PHP since it is server side. "Silvia Mahiques" <[EMAIL PROTECTED]> wrote in message 005101c15aec$9ccac280$1a9cd29b@tscpc6">news:005101c15aec$9ccac280$1a9c

[PHP] MessageBox in PHP?

2001-10-22 Thread Silvia Mahiques
Hi!, How can I make a messagebox in PHP to print errors or warning (such as in VB or VC++)?. Is it possible? Silvia Mahiques

[PHP] Sv: ezmlm response

2001-10-22 Thread Din Web Udbyder
Will you please stop sending your mail to us immidiately -and we would not accept you can't find our e-mail address in your databse - because how can you send e-mail to us on this e-mail account if you don't have it in your database STOP IT AND DO IT NOW! Regards Frank Mikkelsen - Orig

[PHP] unset Cookies

2001-10-22 Thread Michael . Thanry
Hello everyone! Is there a way to unset or expire a cookie which was not set by my pages? Michael -- 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

Re: [PHP] Update onBlur or onChange

2001-10-22 Thread Stefan Rusterholz
>From: "KING OGNAJD" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, October 22, 2001 9:33 AM >Subject: [PHP] Update onBlur or onChange >Helo: >I¹m working on a form that I¹d like to have a feature that adds your total >as items are selected. Currently, I¹ve got some javascript doin

[PHP] Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-22 Thread Philippe
Hi, You're right Dave But nobody had already used PHP with CGI and with Apache ??? I searched on the net, but I've found no documentation on this problem Bye Philippe Dave Goodrich writes: > Nope it fails when he removes the line. It fails on me as well, I tried > it. Also note I did say

[PHP] Re: AW: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-22 Thread Philippe
Hi, Yes I have used --enable-discard-path, the script work with #!/usr/local/bin/php I'll give the full configuration later Philippe Stefan Siefert writes: > Hi, > > well I do understand your needing. > > First a question. What are your compile options, e.g. your configure call? > Do

  1   2   >