Re: [PHP] Newbie Still Looking for a Mentor

2002-01-25 Thread P. Westover
Pardon Me Sir...I do not blurt. I simple asked a question. It was up to you to be nice or be a total a** and you choose the latter. P. Westover "Nick Wilson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >

[PHP] outbound traffic, sessions & reg expressions

2002-01-25 Thread Justin French
Hi, I want to create a file (out.php???) which measures and keeps stats on the sites we link OUT to, including affiliates... i've got a few ideas how to do this, so that's not the problem... the problem is that a lot of the content on the site is contributed through writers, not programmers, and

Re: [PHP] Newbie Still Looking for a Mentor

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then P. Westover blurted > Pardon Me Sir...I do not blurt. I simple asked a question. It was up to > you to be nice or be a total a** and you choose the latter. Hey, that's just the attribution, no offence was intended, *lots* of people

Re: [PHP] Newbie Still Looking for a Mentor

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Wilson blurted > nobody else seems bothered, I just wanted to agree with you on that > rather silly post you were commenting on not insult you. My mistake, I thought this was a differnt thread :) Same thing applies though I, no i

[PHP] Correct URL's

2002-01-25 Thread Stefan Rusterholz
Hi I have a HTML-Form where user's can enter their website-address. Some of you know the resulting problem for sure: most users enter "www.php.net", some users enter "http://www.php.net"; and some others enter "http://www.php.net/";. The last version is IMHO the most correct form. ("http://www

[PHP] move_uploaded_file() query

2002-01-25 Thread Will Hives
Sorry for my past ignorance using this news site forum I can only out this down to my lack of knowledge. I have been work on me first script for some time now and have been making good progress up until now. I have a script that adds a author to the database, ID, Name, Email, Picture Name. When

[PHP] Re: Help with regular expressions

2002-01-25 Thread liljim
Hi Daniel, "José daniel ramos wey" ... > Hi! I´m new to regular expressions, and it seems to be an art to make it > work as expected. > > I´m trying to remove all "single-line" comments from an string - that´s > everything after "//" to the end of a line. I expected that this would do > the job:

[PHP] date and time triggerring

2002-01-25 Thread Michael P. Carel
Hi there, Is there any one who could give me an idea regarding the date and time triggering PHP script. This date and time script whould gives an output if ever it hit "Jan 1" and print's it's year. Any idea? Thanks in advance, and also to all who keeps on helping a newbie like me. Regards,

Re: [PHP] Correct URL's

2002-01-25 Thread Alexander Weber
Stefan Rusterholz wrote: > >Part 1.1Type: Plain Text (text/plain) >Encoding: quoted-printable > What was the best way to check, if the give address really exists? Just try this function: http://www.php.net/manual/en/function.gethostbyname.php It returns the IP address of the

RE: [PHP] A link

2002-01-25 Thread Jon Haworth
> > > > Don't click the above link. > Don't be so rough - we all tried this at some time - > remember, just before it became an old joke? :-) And > I didn't click on it either... Agreed, what a tit. For anyone vaguely interested, it's a redirect followed by a lame javascript. Have a look at t

Re: [PHP] Correct URL's

2002-01-25 Thread Stefan Rusterholz
- Original Message - From: "Alexander Weber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 10:34 AM Subject: Re: [PHP] Correct URL's > Stefan Rusterholz wrote > > What was the best way to check, if the give address really exists? > Just try this function: > >

Re: [PHP] A link

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Jon Haworth blurted > Agreed, what a tit. > > For anyone vaguely interested, it's a redirect followed by a lame > javascript. Have a look at the source code, quite safely, at: > > http://www.samspade.org/t/safe?u=http://m-net.arborne

Re: [PHP] Correct URL's

2002-01-25 Thread Alexander Weber
Stefan Rusterholz wrote: > > http://www.php.net/manual/en/function.gethostbyname.php > But if I understand this function right, It will only work for URLs like > http://www.php.net/ - what if the user has a free space from his ISP which > is located in a subdir like http://www.php.net/users/myhome

[PHP] getenv() replacement when running as ISAPI ???

2002-01-25 Thread Christian Blichmann
Hi there! Anybody knows a replacement for the built-in getenv()-function since it's not supported when running as an ISAPI-module under Internet Information Server 5.0 on Windows 2000 Professional (well, at least according to the manual). I've created a small counter that looks up the user's IP in

RE: [PHP] A link

2002-01-25 Thread Jon Haworth
> What does that function do? > What was he trying to achieve? >From a quick scroll up and down, it looks like it's similar to the "click this" form submit button with an onhover event that scoots it across the screen - the really sad thing is it then spawns a bunch of windows that open the page

[PHP] WinNT extensions

2002-01-25 Thread Malcolm
Hi all I am building a simple web based mail app. I tried to contact my mail server using imap_open() but all I got was this: Fatal error: Call to undefined function: imap_open() in d:\... on line 15 I got in touch with my provider who replied: IMAP support was not compiled into the

[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE:[PEAR-DEV] New Metabase Aniversary release

2002-01-25 Thread Stig S. Bakken
On Tue, 2002-01-22 at 22:17, Alex Black wrote: > > Template classes are also foundation components of modern > > applications. > > They are certainly important, but they do not prevent interoperability in > the same way that different database abstraction packages do. > > >> application, using A

[PHP] Re: [PEAR-DEV] Re: [binarycloud-dev] Re: [PEAR-DEV] Re:[metabase-dev] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-25 Thread Stig S. Bakken
On Tue, 2002-01-22 at 22:24, Björn Schotte wrote: > * Alex Black wrote: > > > Of course, but no one forces you to do that. I, as a developer, > > > can choose if I want to use PEAR::Metabase in my application > > > or PEAR::DB. > > Yes, which is not a good idea. If you're tying to get people to us

Re: [PHP] getting a LAMP job in this economy

2002-01-25 Thread Jason G.
This has been an interesting thread, so I'll toss in my unique point of view... I have never held a full time job for anyone but myself. I find good opportunity and take advantage of it. I make decent money also. I have not marketed myself as a PHP developer, but rather as a problem finder a

[PHP] PHP 4.0.6 Problem, Cannot load /usr/local/apache/libexec/libphp4.so

2002-01-25 Thread TD - Sales International Holland B.V.
Hey there, I have some problems loading the php module. Apache was compiled from sources with mod_ssl and is located in /usr/local/apache. MySQL 4.23.47 was also compiled from sources and is located in /usr/local/mysql PHP was compiled from source with these options: ./configure --with-mysql

[PHP] PHP 4.0.6 Problem, Cannot load /usr/local/apache/libexec/libphp4.so -SOLVED-

2002-01-25 Thread TD - Sales International Holland B.V.
SOLVED, sorry about this. My mistake. -- Forwarded Message -- Subject: PHP 4.0.6 Problem, Cannot load /usr/local/apache/libexec/libphp4.so Date: Fri, 25 Jan 2002 12:36:09 +0100 From: TD - Sales International Holland B.V. <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Hey there, I

[PHP] cURL documentaion

2002-01-25 Thread Roman Eich
Hello NG, did anyone know an other documentation as the PHP manual or the manpages or locations as http://curl.haxx.se/ , http://www.php.net? Especially the exitcodes and solutions for it! Thanks a lot Roman Eich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

[PHP] Re: [PEAR-DEV] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-25 Thread Björn Schotte
* Stig S. Bakken wrote: > this effort. I don't understand why this is an issue for you, could you > explain? I already explained it several times. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP] php.exe has generated some errors and will be closed by windows

2002-01-25 Thread Balaji Ankem
Hi friends,   I am getting the problem everytime "php.exe has generated some errors and will be closed by windows".   I kept header function after completion of authentication to navigate to the corresponding page.   I am facing this problem every time. If I remove that header function once a

[PHP] Is there anyone who could help me?

2002-01-25 Thread Tobias Schweitzer
Hiyas I'm not sure my last message was received, so I'll send my question once again: Well, I'm working on a webmailer-system (a php3-based pop3-client) that can and will be used by different users from the machine it's running on and I was wondering if there was any way to do something like an '

[PHP] Write to file?

2002-01-25 Thread Mårten Andersson
Hello folks… I want to write to a textfile, but I want a row for each string I write to the file. As it is now when I write to the file it just starts writing where the last string ends.. What should I do? =) Thanks! //M.

Re: [PHP] Write to file?

2002-01-25 Thread Nick Wilson
* and then Mårten Andersson blurted > I want to write to a textfile, but I want a row for each string I write > to the file. > As it is now when I write to the file it just starts writing where the > last string ends.. > > What should I do? =) Have you tried \n at the end of your string? -

Re: [PHP] Uploading a file

2002-01-25 Thread Todd Cary
Jason - Using the recommended HTML, everything works *except* the file does not become part of the data sent back to the server. In fact, the VALUE from the INPUT element is not received (e.g. $filename== $HTTP_POST_VARS[filename];). I am using RH Linux 7.2 with Apache. Is there a parameter in

Re: [PHP] Uploading a file

2002-01-25 Thread Shane Wright
Hi Jason You have set the form's ENCTYPE attribute to 'multipart/form-data' haven't you? -- Shane On Friday 25 Jan 2002 2:08 pm, Todd Cary wrote: > Jason - > > Using the recommended HTML, everything works *except* the file does not > become part of the data sent back to the server. In fact

[PHP] get image from DB problem

2002-01-25 Thread Rodrigo Peres
List, I'm using the following code to retrieve image from Mysql. My problem is how can I output another image if the given ID doesn't have an image on it??? I had already inserted a blank gif in the database in order to use it, but I've tried to check if ($resultado['Imagem_data'] == "") or null

[PHP] PHP IDE

2002-01-25 Thread Rafael Perazzo B Mota
Who knows a good Php IDE for linux, like PHP Code ? Rafael Perazzo _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] PHP IDE

2002-01-25 Thread Alexander Weber
Rafael Perazzo B Mota wrote: > > Who knows a good Php IDE for linux, like PHP Code ? > Just have a look at www.activestate.com. They sell a product called Komodo. Alexander -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

[PHP] php: mpeg / avi / mov

2002-01-25 Thread Edward van Bilderbeek - Bean IT
Hi, I want to know the dimensions (width, height) of an mpeg / avi / mov file... does anyone know how I can arrange that with PHP or possibly via a UNIX command string? Greets, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] regexp to substitute incremental strings

2002-01-25 Thread mweb
Hello, I have a form whith a TEXTAREA FIELD to retrieve the html text of a message, and up to 10 file upload fields for images that may be linked from in that text. Now the text is uploaded fine, and so are all the images. Text is saved in UNIQUE_CODE.txt, and images in files UNIQUE_CODE_01.gif,

Re: [PHP] Uploading a file

2002-01-25 Thread Jason Wong
On Friday 25 January 2002 22:08, Todd Cary wrote: > Jason - > > Using the recommended HTML, everything works *except* the file does not > become part of the data sent back to the server. In fact, the VALUE > from the INPUT element is not received (e.g. $filename== > $HTTP_POST_VARS[filename];).

Re: [PHP] move_uploaded_file() query

2002-01-25 Thread Jason Wong
On Friday 25 January 2002 17:35, Will Hives wrote: > Sorry for my past ignorance using this news site forum I can only out this > down to my lack of knowledge. > > I have been work on me first script for some time now and have been making > good progress up until now. I have a script that adds a

[PHP] Re: PHP IDE

2002-01-25 Thread Christian Blichmann
"Rafael Perazzo B Mota" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Who knows a good Php IDE for linux, like PHP Code ? Try Macromedia ColdFusion Studio 5.0, it has PHP syntax highlighting and is very customizable (Code Snippets, Code Completion, ...), but

Re: [PHP] Re: Resalution Dection

2002-01-25 Thread Christian Blichmann
"Jeff Sheltren" <[EMAIL PROTECTED]> wrote in message 006901c1a552$ad42ebf0$0500a8c0@ellaptop">news:006901c1a552$ad42ebf0$0500a8c0@ellaptop... > Yes, you can use javascript to get the user's resolution: > > screen.width > screen.colorDepth You can also use window.innerWidth window.innerH

[PHP] Re: Printing JPEG images generated with ImageJPEG with IE/WIN

2002-01-25 Thread Martin Thoma
Hm, it could be that IE tries to reload the picture (which isn't there anymore because the form-data has been expired). Perhaps saving the picture temporarly on the server will prevent the problem. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-25 Thread Erik Price
On Thursday, January 24, 2002, at 09:32 PM, Michael Kimsal wrote: > Being able to positively improve an employer's bottom line is always a > plus you can bring to any 'job' - you're there to do work and make them > money too. If you can help by furthering the use of Linux/PHP/etc due > to th

[PHP] Building my site... again

2002-01-25 Thread Torkil Johnsen
I started my HTML career back in the days when the newest MS Word-version came with a "save as html"-function. I saved as HTML, read the code, and learned by myself bit by bit. By the time I got my hands on HTML for dummies, I realized I was no dummy after all :) But now, asking this, I feel kinda

[PHP] What if 1,000 people access the database at one time?

2002-01-25 Thread Phil Schwarzmann
So let's say Bill is accessing a MySQL table and is about to UPDATE some information on a particular row. Meanwhile, Al is doing a sort on that same table. Couldn't Al's sorting possibly screw up Bill's updating?? Or does MySQL have some built in functions that prevent this? Thanks! Phil

[PHP] Connect to Mail-Server

2002-01-25 Thread Martin Thoma
Hello! Somewhere I read something on how to connect to a mail-server with php and to send and receive mails on a very "basic" level (calling "Helo" to the mail-server and so on). Does anybody know, where I can get those information exactly? Martin -- PHP General Mailing List (http://www.php.n

Re: [PHP] Building my site... again

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Torkil Johnsen blurted > Now. I would of course like for my site to be listed in the search engines, > and I wouldn't mind getting search hits on both cars and ferrari. But. Will > the web spiders and web crawlers ever follow a link li

[PHP] PHP and NT hashes

2002-01-25 Thread Anthony Hardy
I'm looking for a way to have php form NT hashes from passwords for storage in mysql for distribution to samba smbpassword files ... this possible? Thanks! Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: [PHP] Building my site... again

2002-01-25 Thread Andrew Hill
Note, This will not work with PHP as a CGI. Best regards, Andrew Hill > * and then Torkil Johnsen blurted > > Now. I would of course like for my site to be listed in the > search engines, > > and I wouldn't mind getting search hits on both cars and > ferrari. But. Will > > the web spiders

Re: [PHP] Building my site... again

2002-01-25 Thread daniel
> Now. I would of course like for my site to be listed in the search engines, > and I wouldn't mind getting search hits on both cars and ferrari. But. Will > the web spiders and web crawlers ever follow a link like > index.php?page=cars&subpage=ferrari and will they ever index what they find > the

Re: [PHP] What if 1,000 people access the database at one time?

2002-01-25 Thread Miles Thompson
Phil, To start with MySQL tables aren't sorted unless some type of maintenance is taking place, and many of those operations can be done on copies of the tables. Check http://www.mysql.com/doc/T/a/Table_maintenance.html for more information. Given that, I would expect the person maintaining t

Re: [PHP] Building my site... again

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Andrew Hill blurted > Note, > > This will not work with PHP as a CGI. How come? - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU

[PHP] Question: $_* etc or $HTTP_*_VARS etc

2002-01-25 Thread Gonzalez, Zara E
I am going through some code that I wrote recently and trying to change it so that I can turn register globals off in my php.ini. However, before I do that I want to make sure I am using the right variables. I read in the manual that $HTTP_*_VARS has been 'replaced' by $_* is this correct? Should

Re: [PHP] Building my site... again

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then daniel blurted > To ensure that the search engines like you and your pages, you can > make your URLs appear more normal by doing something like this: > > URL= http://you.com/index.php/cars/ferrari That will still cause a problem thou

RE: [PHP] Building my site... again

2002-01-25 Thread Andrew Hill
Nick, Dunno, but in my experience (and that of a few people who also opened bugs on it) any path info that is not "real" causes the CGI to bomb out with an "Internal Server Error". So while this will work: index.php?foo=bar This will not, since there is no physical directory "foo" and no file "b

Re: [PHP] A link

2002-01-25 Thread Erik Price
Stupid. Animates a window that says "You should not have come here!" to dance around the screen, then locks up the browser by having two new windows call each other in a loop... gotta love 'Force Quit' on Mac OS X. Or 'kill' in any other Unix. Or 'turn JS off' in your browser. Erik On

Re: [PHP] PHP is a Bloated Kludge, discuss!

2002-01-25 Thread Emile Bosch
Don't feed the troll.. "Php" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On a conceptual level, I for one am a great fan of the kludge. > > Every piece of software is a trade off between performance and speed of > development. > > You can have the fastest a

Re: [PHP] Building my site... again

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Andrew Hill blurted > Nick, > > Dunno, but in my experience (and that of a few people who also opened bugs > on it) any path info that is not "real" causes the CGI to bomb out with an > "Internal Server Error". Hi Andrew, check out m

[PHP] Re: What if 1,000 people access the database at one time?

2002-01-25 Thread Michael Waples
Phil Schwarzmann wrote: > > So let's say Bill is accessing a MySQL table and is about to UPDATE some > information on a particular row. Meanwhile, Al is doing a sort on that > same table. > > Couldn't Al's sorting possibly screw up Bill's updating?? Or does > MySQL have some built in functions

[PHP] Re: phpwiki save button

2002-01-25 Thread Tim Bogart
On Thursday 24 January 2002 10:07 am, Tim Ward wrote: > I think you just need to add the timestamp to the start of the story before > you save it, > i.e. > $content = date("d/m/Y H:i:s - ") . $content; > Where do I put this? I'm still floundering. Sorry. btw...Thanks for all your help so far.

[PHP] Re: regexp to substitute incremental strings

2002-01-25 Thread liljim
Hi mweb, try this: blah blah blah some text, html markup... blah blah again"; $string = preg_replace("//i", "", $string); echo nl2br($string); ?> ~James "Mweb" <> wrote in message ... Hello, What is the right regexp to handle this, either in a while loop (how?) or all by itself? The clo

[PHP] fopen and sending data to a remote url

2002-01-25 Thread DigitalKoala
hi folks, apart from using fopen, is there another way of just sending data to a remote url on the fly without leaving your current page? thanks dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-25 Thread Michael Kimsal
Erik Price wrote: > > > > This is a good point. I'm using the LAMP scheme right now for my > employer (though I haven't yet explained the advantages). I'm hoping > that, when I'm done, I can provide a report explaining how much was > saved by going with open source solutions -- right now

Re: [PHP] Building my site... again

2002-01-25 Thread daniel
Nick- > That will still cause a problem though won't it (i think I wrote my > example URL this way also!) as the index.php gets in the way. Hence the > use of a .htaccess to force php to treat a file called 'index' as a php > file. Like: > > URL= http://you.com/index/cars/ferrari Nah... the sea

[PHP] RE: Uploading a file

2002-01-25 Thread Mikusch, Rita
Sorry if this is obvious but . . . have you checked whether your server is running in "safe mode"? I had the same problem and finally realized that it would NEVER work cause the webserver was running in safe mode. (Disclaimer here -- I'm no sysadmin and don't know if Linux even has a safemode!) I

[PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
I am trying to code a regular expression that will match at the beginning of the string the contents of $password, followed by 0 or more occurrences of white space, followed by the contents of $int_id. The match should be case insensitive. Here are some examples of the strings: This one has a 6

Re: [PHP] Building my site... again

2002-01-25 Thread daniel
Andrew- > Note, > > This will not work with PHP as a CGI. I honestly don't know, as I don't run PHP as a CGI. However... if there is a problem with this, I would be inclined to think that it was Apaches fault, and not PHPs. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Help with regular expressions

2002-01-25 Thread DL Neil
Daniel, > Hi! I´m new to regular expressions, and it seems to be an art to make it > work as expected. > > I´m trying to remove all "single-line" comments from an string - that´s > everything after "//" to the end of a line. I expected that this would do > the job: ereg_replace("//[[:alnum:]]*\n"

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
The password and int_id begin and end in fixed positions. password begins in position 13 and can occupy up to 8 characters int_id begins in position 21 and can occupy up to 4 characters Sometimes a password (or int_id) may occupy all of those fixed position or only some of the fixed positions, i

[PHP] Re: What if 1,000 people access the database at one time?

2002-01-25 Thread Michael Waples
Michael Waples wrote: > > Phil Schwarzmann wrote: > > > > So let's say Bill is accessing a MySQL table and is about to UPDATE some > > information on a particular row. Meanwhile, Al is doing a sort on that > > same table. > > > > Couldn't Al's sorting possibly screw up Bill's updating?? Or does

[PHP] How to echo the "/n", "/r", etc... to the HTML display?

2002-01-25 Thread Scott Fletcher
Hi! I have been working on this part for a few days now! It had become appareant that HTML is not able to do this, so I'm trying to get it to work in PHP but no luck! The string I see like this is when I run the UNIX command "od -av |more". --clip here-- del cr lf cr lf cr lf cr 00

RE: [PHP] WinNT extensions

2002-01-25 Thread Florian Clever
> IMAP support was not compiled into the > Windows version of PHP. Unfortunately, > compiling it by hand is very difficult. > It requires having Microsoft Visual C++, along > with a bunch of other tools. So...it looks like > you'll need to use another method to view mail.

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
Hmmm. I am searching thru a flat file that has been loaded into an array ($file_array[$i]). As each iteration of the array is loaded (each row of the flat file) , I was trying to search for this unique combination. The $password is not unique. And $int_id is not unique enough (e.g., "a", "b", "c

[PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread René Fournier
This is sort of a "is there an easier/better way" kind of question. No error or problem, but I'd like to know how others handle it. I'm fetching single elements of data from several tables, then piecing it together. Here's an example of one element I need to fetch: $series = mysql_fetch_array(

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
Here is part of my actual code, if that makes any difference. $password // this var was retrieved from db $int_id // this var was retrieved from db $file_array = file("$DOCUMENT_ROOT/dir/file.dat"); $count = count($file_array); if ($count == 0) echo "No records found in .dat file."; for

Re: [PHP] How to echo the "/n", "/r", etc... to the HTML display?

2002-01-25 Thread Stefan Rusterholz
I suppose "sp" is space? Two suggestions: Why don't you do (print here the string as-is. newlines and spaces will be kept as they are by the browser) Another Possibility: $string = preg_replace("/\\s/", " ", $string); I hope I addressed your problem and didn't miss the point best regards Stef

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread Mark Heintz PHP Mailing Lists
On Fri, 25 Jan 2002, [ISO-8859-1] René Fournier wrote: > $series = mysql_fetch_array(mysql_query("SELECT key2 FROM models WHERE > lang='$lang' AND recordname='$model'",$db)); > > Now I realize that with this function $series will always be an array, > even if it contains just one element (which i

[PHP] dynamic variables in sq?l

2002-01-25 Thread Raymond Lilleodegard
Hi all! I have this form with some choices: Enter how many cars you want: ford bmw mercedes And then I am trying to get the price out of a table in my database with this code: $sql = mysql_query("SELECT '$car' FROM varetabell where carid='$carid' "); $myrow= mysql_fetch_array($sql); $x = $

Re: [PHP] dynamic variables in sq?l

2002-01-25 Thread Jeff Sheltren
Can you show how your mysql table is set up? Otherwise I am not quite sure what you are trying to do with your SQL statement. Jeff > And then I am trying to get the price out of a table in my database with > this code: > > > $sql = mysql_query("SELECT '$car' FROM varetabell where carid='$carid'

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
YES! I was working that out as well. One correction though, this line should read: $temp_int_id = trim(substr($file_array[$i], 21, 4)); I guess the lesson learned is to use substr() when the length of the $string is fixed. Since I have to use substr() and trim() twice, I wonder if this has more

Re: [PHP] dynamic variables in sq?l

2002-01-25 Thread Raymond Lilleødegård
mysql table is set up like this: -- bmw | ford | mercedes | -- 100 | 50 | 120 | It is just a very simple one. - Original Message - From: "Jeff Sheltren" <[EMAIL PROTECTED]> To: "Raymond Lille

[PHP] Re: Dual Pentium Pro 200 vs. Single Pentium II 450

2002-01-25 Thread LaserJetter
I've set up a PHP server (using Apache, MySQL and PHP module) successfully on the follwoing systems: Win98, Pentium120, 32MB Ram <-- pretty fast Win95, 486-100Mhz, 16MB Ram <-- Was speedy apart from the dodgy hard disk Win95, 486-25Mhz, 8Mb Ram <-- chugs along quite nicely as a personal web serv

RE: [PHP] Outreaching (announcement)

2002-01-25 Thread Matthew Walker
I downloaded the current version to test, and I don't know how you call it stable enough to use. I continually get permission denied errors accessing the DB. Some of them go away if I refresh, others don't. And yes, the user has full permissions to the relevant DB. Matthew Walker Ecommerce Projec

RE: [PHP] Question: $_* etc or $HTTP_*_VARS etc

2002-01-25 Thread Gonzalez, Zara E
To add on to this question, I have an upload script that I use on my site and now that I have registered globals off, I can't seem to find where the auto-generated $*_name $*_type $*_size variables are going... Anyone have any insight? I thought they would be in $_POST['$*_name'] but they aren't

RE: [PHP] Question: $_* etc or $HTTP_*_VARS etc

2002-01-25 Thread Rasmus Lerdorf
http://www.php.net/manual/en/features.file-upload.php $HTTP_POST_FILES or $_FILES -Rasmus On Fri, 25 Jan 2002, Gonzalez, Zara E wrote: > To add on to this question, I have an upload script that I use on my site and > now that I have registered globals off, I can't seem to find where the > auto

RE: [PHP] Question: $_* etc or $HTTP_*_VARS etc

2002-01-25 Thread Gonzalez, Zara E
Hrm. Thanks. Apparently they didn't feel like listing $_FILES here: http://www.php.net/release_4_1_0.php $_GET - contains form variables sent through GET $_POST - contains form variables sent through POST $_COOKIE - contains HTTP cookie variables $_SERVER - contains server variables (e.g., RE

Re: [PHP] dynamic variables in sq?l

2002-01-25 Thread Mehmet Kamil ERISEN
With my respects to your design may I suggest the following: 1- Table: CARS car_id car_name active_flag price 1 BMWY 100 2 FORD Y 50 etc. Then in your form you can hava a dynamic LOV: $sql = "select car_id, car_name from cars where active_flag = 'Y'

[PHP] Install wddx extention for php 4.1.1

2002-01-25 Thread Ziying Sherwin
We tried to install php 4.1.1 with wddx support on our Solaris 2.8 with gcc 3.0. We installed expat library 1.2 (download from http://www.jclark.com/xml/expat.html) and wddx 1.0a. We also installed apache 1.3.22 which comes with expat support). We configure our php with the following options:

Re: [PHP] Install wddx extention for php 4.1.1

2002-01-25 Thread Rasmus Lerdorf
Try leaving off the --with-expat-dir switch completely. PHP comes with its own expat. On Fri, 25 Jan 2002, Ziying Sherwin wrote: > > We tried to install php 4.1.1 with wddx support on our Solaris 2.8 with > gcc 3.0. We installed expat library 1.2 (download from > http://www.jclark.com/xml/expat

[PHP] use linux commands within php

2002-01-25 Thread toni baker
How can I count the number of lines in the uploaded file. ($userfile) What's wrong with the command below. Thanks $fp = popen ("usr/bin/wc -l $userfile", "r"); __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auction

[PHP] Re: dynamic variables in sq?l

2002-01-25 Thread Raymond Lilleodegard
Than you very much for all help! I see that my database design is a little dumb, so I'll just make another one. Best regards Raymond "Raymond Lilleodegard" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all! > > I have this form with some choices: > > > E

[PHP] Check browser-type?

2002-01-25 Thread Mårten Andersson
Hello. I need to check wich browser-type and/or OS an visitor have to a page I’m developing. I need to know if the browser /OS is a handheld computer.. Or at least check if it’s NOT a handheld computer. Is this posible with PHP? I have just started with this programing language and it’s a bit

Re: [PHP] use linux commands within php

2002-01-25 Thread Pablo DallOglio
try this t.txt"); $fd =fopen('t.txt', 'r'); $buffer=fgets($fd,8); echo ($buffer); fclose($fd); ?> On Fri, 25 Jan 2002 11:41:44 -0800 (PST) toni baker <[EMAIL PROTECTED]> wrote: > How can I count the number of lines in the uploaded > file. ($userfile) > > What's wrong with the comm

Re: [PHP] Check browser-type?

2002-01-25 Thread Nick Wilson
* and then Mårten Andersson blurted > Hello. > > I need to check wich browser-type and/or OS an visitor have to a page > > Is this posible with PHP? > I have just started with this programing language and it’s a bit > difficult to search in PHP.net when I don’t know exactly what I am > lo

RE: [PHP] Check browser-type?

2002-01-25 Thread Michael Geier
http://www.php.net/manual/en/function.get-browser.php -Original Message- From: Mårten Andersson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Check browser-type? Hello. I need to check wich browser-type and/or OS an visitor have

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread daniel
> This is sort of a "is there an easier/better way" kind of question. No > error or problem, but I'd like to know how others handle it. > > I'm fetching single elements of data from several tables, then piecing > it together. Here's an example of one element I need to fetch: > > $series = mysq

Re: [PHP] use linux commands within php

2002-01-25 Thread daniel
> try this > > > system ("/usr/bin/wc -l $userfile> t.txt"); > > $fd =fopen('t.txt', 'r'); > $buffer=fgets($fd,8); > > echo ($buffer); > fclose($fd); > > ?> Or... if you really just want to count the number of lines in a file... do this: This offers the advantage of having the fi

[PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
Ok I'm having a problem with the new line char \n in strings. I'm trying to contrast an email that gets sent with the mail() function. Here is what I'm doing. $message = "line1\n"; $message .= "line2\n\n"; $message .= "line3\n"; ... $message = "lne99"; mail ("email", "subject", $message);

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread hugh danaher
try $something=settype(mysql_result($variable,0),"string"); - Original Message - From: "daniel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 12:25 PM Subject: Re: [PHP] Must results from MySQL fetches always be an Array?? > > This is sort of a "is there a

Re: [PHP] strings and \n

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Greg Sidelinger blurted > Ok I'm having a problem with the new line char \n in strings. I'm > trying to contrast an email that gets sent with the mail() function. > Here is what I'm doing. > > $message = "line1\n"; > $message .= "li

[PHP] break statement usage

2002-01-25 Thread Erik Price
Hello, all I have a quick question about using the "break" statement from within a switch() statement. After accepting user input from a form, I want to run this input through some error checking via PHP code (not Javascript error checking). So the first thing is the code puts the input thro

Re: [PHP] Uploading a file

2002-01-25 Thread Todd Cary
Many thanks! I did not read far enough in the docs to note the part about PHP 4.0. That has fixed the problem. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP] adding contents to xml file string ways

2002-01-25 Thread travis
here is my code, i am trying to acheive this "; $Entry= $openingEntry."$numberAtt"."$myNumber".$nameAtt."$myName".$dateAtt."$myDate" .$messageAtt."$myMessage".$linkAtt."$myLink".$closingEntry; $fileName = "news.xml"; if ($fp = fopen ($fileName, "a+")){ $contents = fread ($fp, filesize ($fileNa

  1   2   >