[PHP] Problem in mysql connection

2002-01-25 Thread Uma Shankari T.
Hello, I have installed php4 rpm in my machine.while connecting php with mysql it is giving fatal error.I have given like this mysql_connect("$servername","$username","$password"); Why it is so .. Is there any other files i have to install to access the database?? Regards, Uma

[PHP] Re: Encryption

2002-01-25 Thread Alan McFarlane
As far as I'm aware, as long as you use the same seed or salt value, encrypting material will always yield the same results. However, remember that not all servers have support for mcrypt... You may find it better to use something simpler like md5($seed . $data), where $seed is a unique (and hirea

[PHP] regex

2002-01-25 Thread Yamin Prabudy
Hi I like to ask something say i got this line b = bla.net a = blabla.com (a and b NOT a variable) i want to use php to take the second line and want to grep the blabla.com how can i do that Yamin Prabudy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] I'm not sure how to do some simple code...

2002-01-25 Thread Mike Maltese
Whoops, that should be: $mystring = "This is a string with the word script in it"; if(eregi("script",$mystring)){ //do something here } - Original Message - From: "Mike Maltese" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 8:41 PM Subject: Re: [PHP] I

Re: [PHP] I'm not sure how to do some simple code...

2002-01-25 Thread Mike Maltese
$mystring = "This is a string with the word script in it"; if(eregi("script",$mystring){ //do something here } - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 8:12 PM Subject: [PHP] I'm not sure how to do some si

Re: [PHP] Passing objects

2002-01-25 Thread Jeff Sheltren
Well, PHP has 'sessions' which allow you to do just what you are asking, pass variables between multiple pages. Sessions are somewhat like cookies, but all data is stored on the server instead of the client, so you don't have to rely on the user to accept your cookie. Here's a short intro/tutori

Re: [PHP] Passing objects

2002-01-25 Thread Dean Householder
I'm pretty new to PHP. If anyone can elaborate a little on this I would appreciate it greatly. Thanks -- 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: [EMA

Re: [PHP] strings and \n

2002-01-25 Thread Jason Wong
On Saturday 26 January 2002 04:48, Greg Sidelinger wrote: > 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\

Re: [PHP] move_uploaded_file() query

2002-01-25 Thread Jason Wong
On Saturday 26 January 2002 05:45, will hives wrote: > No I don't have a procedure to retrieve the new file name that's what I am > looking to do. I don't know how to write that new name into the database. You really need to learn to read the fine manual - chapter on "Handling file uploads".

[PHP] I'm not sure how to do some simple code...

2002-01-25 Thread Leif K-Brooks
I know this is probably a stupid question, but how do I make it so that if a string contains the word "script" (I'm banning javascript) it does something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] Passing objects

2002-01-25 Thread Jason Wong
On Saturday 26 January 2002 11:51, Dean Householder wrote: > How can you pass an object from one page to another? Is there any > convenient way to do it with PHP? Yes, use sessions. See chapter on "Session handling functions". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Mu

[PHP] Passing objects

2002-01-25 Thread Dean Householder
How can you pass an object from one page to another? Is there any convenient way to do it with PHP? Dean

Re: [PHP] Problem in mysql connection

2002-01-25 Thread Jeff Sheltren
What was the error message given? Are you sure that mysql is running and working properly? Jeff > Hello, > > I have installed php4 rpm in my machine.while connecting php with > mysql it is giving fatal error.I have given like this > > mysql_connect("$servername","$username","$password"); >

[PHP] Problem in mysql connection

2002-01-25 Thread Uma Shankari T.
Hello, I have installed php4 rpm in my machine.while connecting php with mysql it is giving fatal error.I have given like this mysql_connect("$servername","$username","$password"); Why it is so .. Is there any other files i have to install to access the database?? Regards, Uma

[PHP] Encryption

2002-01-25 Thread Anas Mughal
I am totally new to encryption. My question is very simple. If I use the mcrypt module to encrypt and decrypt some data, would it guarantee to work consistently with future versions of the mcryp module (or PHP versions). (i.e. Would decription always give me the same result?) Thanks. = Ana

Re: [PHP] PHP IDE

2002-01-25 Thread Zeev Suraski
I'm probably not objective, but the upcoming (Feb 4) Zend Studio is pretty darned good, and it works perfectly under Linux. You can try the beta (even though final release will have much more impressive/intelligent code completion) at zend.com/store/beta.php Zeev On Fri, 25 Jan 2002, Rafael Per

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

2002-01-25 Thread David_Bourne
>To: [EMAIL PROTECTED] >Message-ID: <[EMAIL PROTECTED]> >Date: Fri, 25 Jan 2002 16:20:57 +0100 >From: Martin Thoma <[EMAIL PROTECTED]> >MIME-Version: 1.0 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit >Subject: Re: Printing JPEG images generated with ImageJPEG with IE

[PHP] Re: HELP! with PHP extension <

2002-01-25 Thread Alan McFarlane
Make sure you've copied the contents of the c:\php\dlls folder to your system directory (\windows\system, \winnt\system32, not sure 'bout 2K). Your extension_dir setting in php.ini should be extension_dir = c:/php/extensions/ And make sure you've copied your php.ini to your windows directory (\

[PHP] Re: upgrade problem

2002-01-25 Thread Alan McFarlane
It sounds like an inconsisteny in the library versions. Try and get the latetst version of the GD library, (source if necessary), or if you have a tool that is capable of analyzing .so/.dll dependancies, use that. Chuck Barnett <[EMAIL PROTECTED]> wrote in message 002301c1a607$c3dff1e0$[EMAIL PRO

[PHP] upgrade problem

2002-01-25 Thread Chuck Barnett
Hi, I have been running 4.0.3 or so and I was upgrading to 4.1.1. I also upgraded gdlib to 1.8.4. I compiled php with jpeg support and gd support everything made and compiled ok. when I restart apache I get this: Setting up Web Service: Syntax error on line 58 of /etc/httpd/conf/httpd.conf: C

[PHP] HELP! with PHP extension <

2002-01-25 Thread Andre Amaral
Hi all, Here is the situation. I have Windows 2000 SP2, IIS5 running PHP 4.1.1 using CGI. My PHP folder is C:\php Extension Folder is: C:\php\extension PHP.INI file: extention_dir = "C:\php\extension\" First problem that I have is loading extensions. Every time I try to uncomment an extension

Re: [PHP] Classes for PUP & MySQL in Southern California

2002-01-25 Thread Erik Price
There's a whole section on training in MySQL at their web site. MySQL AB, a company which provides a great deal of support to the MySQL community, offers training and other support for MySQL (it is their only form of revenue, except for commercial Microsoft-based MySQL licensing). The trainin

Re: [PHP] Classes for PUP & MySQL in Southern California

2002-01-25 Thread Michael Kimsal
Ben Clumeck wrote: > Is there any classes that anyone knows of for PHP & MySQL? I am just > learning PHP and have bought a couple of books that have helped. However, I > need to become proficient quickly. Thanks for your help. > > Ben > > Hi Ben - Although we're not in Southern Cal yet, w

[PHP] Classes for PUP & MySQL in Southern California

2002-01-25 Thread Ben Clumeck
Is there any classes that anyone knows of for PHP & MySQL? I am just learning PHP and have bought a couple of books that have helped. However, I need to become proficient quickly. Thanks for your help. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] break statement usage

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Erik Price blurted > On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote: > > > >Try to keep your posts a little shorter > >if only for the sake of the dial-up users ;) > > > > Do you suggest this tip whenever someone

Re: [PHP] break statement usage

2002-01-25 Thread Erik Price
On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote: > > Try to keep your posts a little shorter > if only for the sake of the dialup users ;) > > Thanks for the tip, but I find that a more verbose message makes explicit what I am asking. How many times have you seen "I bre

[PHP] Re: [PHP-DEV] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-25 Thread Christian Dickmann
"Andi Gutmans" <[EMAIL PROTECTED]> wrote > PHP 5 per-class constants can already except static arrays such as > array(1, 2, 3) as their value. I'll put the issue of global constants on > my TODO and believe PHP 5 will also support these for global constants. > However, you won't be able to create

Re: [PHP] move_uploaded_file() query

2002-01-25 Thread will hives
in article [EMAIL PROTECTED], Jason Wong at [EMAIL PROTECTED] wrote on 25/1/02 3:14 pm: > 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

Re: [PHP] WinNT extensions

2002-01-25 Thread Mike Maltese
Give me a break, all they have to do is edit the php.ini file. I'd find another provider. - Original Message - From: "Paul Roberts" <[EMAIL PROTECTED]> To: "Malcolm" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 1:33 PM Subject: Re: [PHP] WinNT extensions > Don

Re: [PHP] WinNT extensions

2002-01-25 Thread Paul Roberts
Don't you pay them for the very difficult stuff! Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Malcolm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 11:04 AM Subject: [PHP] WinNT extensions > Hi all >

RE: [PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
\r\n or \n\r is not helping. The thing that confuses me is that some of the \n lines work just fine while others do not. So if anyone give give me a hint y it is not working all the time please send me email. Greg -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Fr

Re: [PHP] Outreaching (announcement)

2002-01-25 Thread Bogdan Stancescu
That has been reported by someone else earlier today and I really don't know what the problem is - could you please provide some more info? What's your MySQL version? Does it happen on all pages or only on some? What does the error message say (please copy ALL of the data on the page). Thanks! B

Re: [PHP] break statement usage

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Erik Price blurted > So what I'm wondering is, > > Is it bad coding practice to make heavy use of "break" statements in > switch() flow control? That's exactly the point of the break statement, it was designed to be used in a switch

RE: [PHP] break statement usage

2002-01-25 Thread Darren Gamble
Good day, Actually, using the "break" statement is the accepted, proper way to break out of a switch statement, just as it is in other programming languages. And yes, the "break" statement can be used to terminate other loops, such as "while" and "for", just like in other languages. Using it th

[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

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] 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

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

2002-01-25 Thread Manuel Lemos
Hello, Björn Schotte wrote: > > * 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. I understand your concern of this PEAR-DB x Metabase merger may open a precedent that will motivate others

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

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

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

2002-01-25 Thread Alex Black
> I'm currently writing "The PEAR Manifest", a document that clearly > defines PEAR once and for all. I'll post the first draft on pear-dev > here when it's done, but to answer your question, there has been talk > about a "core" set of packages for a while. In the manifest these are > called PFC

[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] 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

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] 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] 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] 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

[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

[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] 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

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] 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] 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'

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] 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
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] 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

[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] 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

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 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'

[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] 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

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] 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

[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
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

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.

[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] 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

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] 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

[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

[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

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

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

[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] 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]

[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] 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.

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

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] 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] 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] 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

[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 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

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 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

[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

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

[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 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] 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

[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] 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

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] 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: 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: 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

  1   2   >