Re: [PHP] Sorry, what is PWS

2001-05-06 Thread Thomas Edison Jr.
PWS is Personal Web Server. It's a web server by Microsoft. Practically it's pretty easy to use. You can install it into any home PC using win98 and configure PHP on it to use. It supports ASP by default so you can do you ASP scripting using it. Latest version of PWS is 4.0! If u're looking for

php-general Digest 6 May 2001 06:39:25 -0000 Issue 669

2001-05-06 Thread php-general-digest-help
php-general Digest 6 May 2001 06:39:25 - Issue 669 Topics (messages 51550 through 51586): Re: Session problem 51550 by: Gyozo Papp 51551 by: Gyozo Papp Re: Vanishing files. 51552 by: Andrzej Swedrzynski 51555 by: Yasuo Ohgaki 51556 by: Yasuo Ohgaki

[PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Thomas Edison Jr.
i think i'm almost at the verge of giving up...somehow the PWS in my system is ruined forever...i'd done everything..and i mean *EVERYTHING*...but PHP just doesn't seem to be working with my PWS. In fact, even my ASP scripts are not working anymore on PWS. I've uninstalled reinstalled PWS twice

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Zak Greant
You may want to try Xitami (www.imatix.com) as a fast/free/open source alternative to the Microsoft products. --zak - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 06, 2001 12:52 AM Subject: [PHP] IIS instead of PWS!!! what else

Re: [PHP] PHP on PWS not working!

2001-05-06 Thread Thomas Edison Jr.
1. Rename php.ini-dist to php.ini (if you haven't) 2. Simplify your script 3. Try changing your directory properties in PWS: Read/Execute/Scripts - try different combinations been there, done that, you could say. i think i've tried every possible humanly available option. my

Re: [PHP] PHP on PWS not working!

2001-05-06 Thread Thomas Edison Jr.
me again...i hope MTS is not required for running PHP4.0.5 on PWS. Cause i'm not having the MTS (Microsoft Transaction Server) installed on my PWS. T. Edison jr. --- Donald Goodwill [EMAIL PROTECTED] wrote: I couldn't find your original message, but here are some ideas: 1. Rename

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Thomas Edison Jr.
The only reason why i'm opting for pws or IIS is because i need to run ASP scripts on my PC too. I'm an ASP engineer as well and it's my Second major. So i need to work with ASP too. Does Xitami support ASP? and if it doesn't, can u tell me any other web server for the PC which will run ASP PHP

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Thomas Edison Jr.
Why not install all three servers (IIS/Apache/Jrun) yeah, well i'm already doing that sir. only problem is, since few days my PWS is not working. Fortunately, just minutes ago i was able to fix it so that ASP is running perfectly on PWS now. Only PHP is not. So anyway, i guess i've dropped the

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Zak Greant
IIRC, it can with some caveats - check the library at xitami.com --zak - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: Zak Greant [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, May 06, 2001 1:05 AM Subject: Re: [PHP] IIS instead of PWS!!! what else can i do..

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Alexander Skwar
So sprach Thomas Edison Jr. am Sun, May 06, 2001 at 12:41:24AM -0700: that you do mention it, can u tell me if it's better to use IIS or PWS? and where can i get IIS? IIS is *NOT* free! Actually it's rather expensive - check your local dealers, they most certainly will be happy to sell IIS to

Re: [PHP] Sorry, what is PWS

2001-05-06 Thread Alexander Skwar
So sprach Thomas Edison Jr. am Sat, May 05, 2001 at 11:41:17PM -0700: Stable don't go in the same line. But anyways, it works ok at home for any kind of work. Yeah, I suppose for a HOME server PWS is just fine. If you don't want to do any fancy, than PWS might be good. Alexander Skwar --

Re: [PHP] Free Database Design Program

2001-05-06 Thread Andrzej Swedrzynski
On Sun, 6 May 2001, Alexander Skwar wrote: [dia] Compared to ERWin, this is indeed *VERY* limited - but maybe I was just unsuccessful, but eg. how can you define keys in an entity in dia? Just open attribute's properties window (double click on attribu te) and you have checkbox there. Is

[PHP] Novedades en Gordos.com

2001-05-06 Thread Gordos.com

[PHP] PHP as apache module and security.

2001-05-06 Thread Andrzej Swedrzynski
Hello! Recently someone asked how to ensure that no one will read pas sword from php file. The only response I noticed was to create group and add apache user (often nobody) to that group. I consi dered this and I can not see what would stop other users from writing php script (run

Re: [PHP] nslookup function ?

2001-05-06 Thread Tom Carter
A built in function in PHP (avoids running command line stuff) that does a reverse DNS lookup on an IP address... $host = gethostbyaddr($REMOTE_ADDR); (took me quite a while to find this one) HTH, Tom On Sat, 5 May 2001, Kurth Bemis wrote: At 04:11 PM 5/4/2001, Matthew Luchak wrote: goto

Re: [PHP] PHP on PWS not working!

2001-05-06 Thread Phil Driscoll
What is going wrong is that you are using the ISAPI version of PHP and it is quite unstable on anything lower than W2K. It manifests itself in the server 500 errors you describe and, because it kills bits of the server, ASP dies as well. Just change to the cgi installation and all should become

[PHP] Complete Newbie

2001-05-06 Thread biscut
Hi, I have not done anything with PHP before and have downloaded and isntalled the source code without any errors, however after following the install instructions on php.net I now cannot start my web server, in the error logs I get unable to get local address but the server was working fine

[PHP] What is msvcr70.dll??

2001-05-06 Thread Ermanno Iannacci
Same problem on 2 different systems NT4+APACHE and WIN98+PWS. Php look for msvcr70.dll, and never found it. I upgraded from 4.0.4pl1, that never request this dll. I can see the request from filemon by sysinternals. I searched on google, altavista, etc. but I didn't find any info. -- PHP

Re: [PHP] PEAR where should I start?

2001-05-06 Thread Gyozo Papp
Thank you very much for these links! I'm to see all of them right now... - Original Message - From: Philip Olson [EMAIL PROTECTED] To: Gyozo Papp [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 2001. május 5. 22:29 Subject: Re: [PHP] PEAR where should I start? Old list archive (last

[PHP] Image displaying problem

2001-05-06 Thread Estelle Martin
Hi all, I am using PHP 4.02 on a Solaris 8 box. We have a very strange problem : we have a program that choses banners to display on our sites. The code is a javascript, because it can be put on simple html pages. The images is chosen through a php code, that with header function sends the image.

Re: [PHP] class (not class instance) variables

2001-05-06 Thread Gyozo Papp
Hello, I don't know the way to declare static properties explicitly, maybe this is even not supported yet. But, ... when I recently develop some classes in PHP I've found that static variables declared inside methods behave like static properties in C++. This means you should write a

Re: [PHP] quicker query?

2001-05-06 Thread Gyozo Papp
hello, maybe there is another solution that should be quicker, because it uses fewer DB query. I don't have a clear view what you want from this query, so if you can give me a short description about it it would be appriciated. I think this one does the same job: INSERT INTO galaxy SELECT

Re: [PHP] PHP as apache module and security.

2001-05-06 Thread Estelle Martin
Hi, What do you think about the following configuration: 1) safe-mode on : this ensures that a php script can read only files that are owned by the same Unix user on the machine; then just check that people having a right to use php and mysql on your box have all a different corresponding Unix

[PHP] searching a MySQL database

2001-05-06 Thread Jamie Saunders
Hi, I've set up a MySQL database and an HTML search form. I'd like to know how to search the database with whatever it entered into the form. It only needs to be a simple search, returning anything that matches the word(s) entered into the input box in the form. Thanks. Jamie Saunders

Re: [PHP] PHP as apache module and security.

2001-05-06 Thread Andrzej Swedrzynski
On Sun, 6 May 2001, Estelle Martin wrote: What do you think about the following configuration: 1) safe-mode on : this ensures that a php script can read only files that are owned by the same Unix user on the machine; then just check that people having a right to use php and mysql on your

[PHP] Insert data into mysql table

2001-05-06 Thread Mohamedou
Hello all, I have created a dabase with table news. I need to add some news into the table via a form. I created two files, the form and the action php file: But I am still unable to add data into the table. Look at my code: ###addnewsform.php###

Re: [PHP] wordwrap

2001-05-06 Thread Yasuo Ohgaki
There no tag, but a function wordwrap(). http://www.php.net/manual/en/function.wordwrap.php You need to separate vars into message and comments also. Programming in any language w/o reading manual/reference is just a waste of time. IMO. Regards, -- Yasuo Ohgaki shawn [EMAIL PROTECTED] wrote

[PHP] php4apachi.dll

2001-05-06 Thread Darren
Hi. I just installed a fresh copy a windows 95. I installed winsock 2, apache 1.3.19 and php4. I followed the instructions with the php installation and I booted apache, I got a missing dll error message from apache. I got the impression that it wasn't php4apache.dll that was missing as it was

[PHP] best ide for windows

2001-05-06 Thread Alexander Bierbrauer
Hi people, does anyone know a good PHP developer IDE for Windows?? I'm using PHP Coder but it's a little bit to buggy. Alexander Bierbrauer Coordinator Chief-Programmer of Not'A'Tric Web: http://www.notatric.de ICQ: 38412604 -- PHP General Mailing List (http://www.php.net/) To

[PHP] php.exe [filename .php] vs. run [filename.php] via webserver

2001-05-06 Thread Art
Does it's neccessary that if PHP file (*.php) can be parse and execute by php.exe such as c:\php\php [filename .php], then it will output the same while run it by webserver such as Apache or the like? I have some problem with odbc_connect It's output the correct when I do the former, but always

Re: [PHP] best ide for windows

2001-05-06 Thread Gyozo Papp
hello, here is a list php editors: http://www.itworks.demon.co.uk/phpeditors.htm I 'm using Edit Plus 2 or PHPEd (depending on the weather :), by the way. - Original Message - From: Alexander Bierbrauer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 6. 14:57 Subject: [PHP]

[PHP] Install problems with PHP and GD

2001-05-06 Thread John Vanderbeck
Hello all, Normally I have a sysadmin that takes care of all these things, but recently I joined onto another project and we are all clueless :) We need to install the GD extras, mainly JPEG and PNG for creating images with PHP. We are using the latest PHP and RedHat Linux. We understand that

Re: [PHP] best ide for windows

2001-05-06 Thread Geir Eivind Mork
On Sunday 06 May 2001 14:57, Alexander Bierbrauer wrote: does anyone know a good PHP developer IDE for Windows?? I'm using PHP Coder but it's a little bit to buggy. slickedit is what I preffer to use, you got syntax highlighting, api help, function tagging so that you get info about your own

RE: [PHP] best ide for windows

2001-05-06 Thread John Vanderbeck
I am a fan of UltraEdit. It has syntax highlighting and is a good all purpose powerful editor. What I really like though is the ability to Open From and Save To FTP sites. This speeds up my work considerably. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) -

[PHP] if string contains...

2001-05-06 Thread Jamie Saunders
Hi, I want to check whether a string contains a certain word e.g. $varOne = this is a string; if ($varOne contains is) { return true; } else { return false; } Is there an operator for 'contains', if not how do you do this? Thanks. Jamie Saunders Mail:

Re: [PHP] searching a MySQL database

2001-05-06 Thread bill
On Sun, 6 May 2001, Jamie Saunders wrote: Hi, I've set up a MySQL database and an HTML search form. I'd like to know how to search the database with whatever it entered into the form. It only needs to be a simple search, returning anything that matches the word(s) entered into the input

Re: [PHP] if string contains...

2001-05-06 Thread Alvin Tan
http://php.net/manual/en/function.strstr.php $varOne = is; $varTwo = this is a string; if(strstr($varTwo,$varOne)) { echo true.; } else { echo false.; } Regards, @lvin At 03:58 PM 5/6/01 +0100, Jamie Saunders wrote: Hi, I want to check whether a string contains a certain word e.g. $varOne =

Re: [PHP] if string contains...

2001-05-06 Thread Gyozo Papp
$pos = strpos($varone, 'is') if ($pos === false) { /*not found */ } - Original Message - From: Jamie Saunders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 6. 16:58 Subject: [PHP] if string contains... Hi, I want to check whether a string contains a certain word e.g.

RE: [PHP] searching a MySQL database

2001-05-06 Thread John Vanderbeck
Well, my site currently does not search based on multiple keywords, but rather just ONE keyword. This makes it easiers, as I offload all the work to mySQL. However, theoreticly, you could do the same things with a complex SQL query. [CODE] case 'searchform': { echo Search for ArticleBRBR\n;

[PHP] Slightly OT - Backing up mySQL...

2001-05-06 Thread Nick Terzich
Does anyone have any experience backing up mySQL from a shared web hosting account? I don't have root access to the database... will this keep me from running a shell script to do the back up? Is there a php script that will work better for me? I don't need the database emailed to me... just

Re: [PHP] Slightly OT - Backing up mySQL...

2001-05-06 Thread Felix Kronlage
On Sun, May 06, 2001 at 08:38:23AM -0700, Nick Terzich wrote: Does anyone have any experience backing up mySQL from a shared web hosting account? I don't have root access to the database... will this keep me from running a shell script to do the back up? If you have shell-access you can

Re: [PHP] best ide for windows

2001-05-06 Thread Henrik Hansen
Alexander Bierbrauer [EMAIL PROTECTED] wrote: Hi people, does anyone know a good PHP developer IDE for Windows?? I'm using PHP Coder but it's a little bit to buggy. phpEd - phped.com -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Slightly OT - Backing up mySQL...

2001-05-06 Thread Henrik Hansen
Nick Terzich [EMAIL PROTECTED] wrote: Does anyone have any experience backing up mySQL from a shared web hosting account? I don't have root access to the database... will this keep me from running a shell script to do the back up? Is there a php script that will work better for me? I

RE: [PHP] best ide for windows

2001-05-06 Thread Andrzej Swedrzynski
On Sun, 6 May 2001, John Vanderbeck wrote: I am a fan of UltraEdit. It has syntax highlighting and is a good all purpose powerful editor. What I really like though is the ability to Open From and Save To FTP sites. This speeds up my work considerably. And sends plain password over the

Re: [PHP] best ide for windows

2001-05-06 Thread Gyozo Papp
Yeah, VIM is cool, really, and is default part of most linux distributions. - Original Message - From: Andrzej Swedrzynski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: John Vanderbeck [EMAIL PROTECTED] Sent: 2001. május 6. 18:20 Subject: RE: [PHP] best ide for windows On Sun, 6 May

Re: [PHP] best ide for windows

2001-05-06 Thread Alex Piaz
Hi Folks! I've tested a lot of ide's for windows, but never found anything better than the Allaire Homesite. (www.allaire.com) On linux, Quanta is a good choice, since homesite does not run on linux (I couldn't run it through WINE). That's it. Alex -- PHP General Mailing List

Re: [PHP] simple database extraction problem :(

2001-05-06 Thread Manuel Lemos
Hello Sandeep, On 03-May-01 20:07:51, you wrote: just a quick thing. i've got loads of info in mysql, which i extract and then use a while ($r = mysql_fetch_array($result)) { to output the result. the only thing is, because its a loop, all results look the same, whereas i want the first row to

[PHP] Can php give me row number?

2001-05-06 Thread Jan Grafström
Hi! First I wan´t to thank those kind guys who helped me with the search for words in a string. It works fine and here goes my file: --- $fd = fopen($filename1, r); $string = fread($fd, filesize($filename1)); fclose($fd); if (eregi($word, $string)) { print found the word; } - Now I also

Re: [PHP] best ide for windows

2001-05-06 Thread Alexander Skwar
So sprach Alex Piaz am Sun, May 06, 2001 at 02:09:51PM -0300: On linux, Quanta is a good choice, since homesite does not run on linux (I A lot of people also like bluefish. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

RE: [PHP] best ide for windows

2001-05-06 Thread Bjorn Sodergren
I am a fan of UltraEdit. It has syntax highlighting and is a good all purpose powerful editor. What I really like though is the ability to Open From and Save To FTP sites. This speeds up my work considerably. And sends plain password over the network. Thanks. And how does this

RE: [PHP] best ide for windows

2001-05-06 Thread Andrzej Swedrzynski
On Sun, 6 May 2001, Bjorn Sodergren wrote: [UltraEdit] And sends plain password over the network. Thanks. And how does this differ from any other ftp client ? Does not differ. But I use ssh/scp for everything and with vim I can send my file to its destination with a single keystroke. In

Re: [PHP] Can php give me row number?

2001-05-06 Thread Gyozo Papp
use fgets or fscanf (= PHP 4.0.1)instead of fread. Fgets(fp, length) ends reading when length - 1 bytes have been read, on a newline (which is included in the return value), or on EOF (whichever comes first). - Original Message - From: Jan Grafström [EMAIL PROTECTED] To: [EMAIL

RE: [PHP] best ide for windows

2001-05-06 Thread John Vanderbeck
But isn't VIM a *nix only tool? The thread was about Windows IDE's. I'm always open to new editors though, so if VIM is available for Windows, can you give an URL? - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and

[PHP] Flash/PHP/MySQL

2001-05-06 Thread FredrikAT
Can Flash import some text from a database (e.g MySQL) and print it on the fly? - Fredrik A. Takle [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] best ide for windows

2001-05-06 Thread Andrzej Swedrzynski
On Sun, 6 May 2001, John Vanderbeck wrote: But isn't VIM a *nix only tool? No. Quote from vim's web page: VIM runs on many operating systems: AmigaOS, AtariMiNT, BeOS, DOS, MacOS, MachTen, OS/2, RiscOS, VMS, and Windows (95/98/NT4/NT5/2000) and, of course, on UNIX in a lot of flavours:

Re: [PHP] PHP on PWS not working!

2001-05-06 Thread Thomas Edison Jr.
right, i can change to the CGI version immideately, as it is i have the module ver installed on my Apache. Tell me something, to make it back to the CGI ver, the only thing i have to do is to give the path in my regedit as C:\php4\php.exe %s %s instead of what i was giving C:\php4\sapi\(the php

Re: [PHP] Flash/PHP/MySQL

2001-05-06 Thread Eduardo Pérez Jover
you can find an example in flashkit.com go to examples databases -- 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 PROTECTED]

Re: [PHP] Can php give me row number?

2001-05-06 Thread Stephan Ahonen
Now I also wan´t to know to in which row the word was found. Is there a simple way to add some code? You could explode the file into an array with \r\n as the delimiter before you do the search, then iterate through the resulting array to look for the word, then the array index you find the

[PHP] Passing variables to another page - newbie

2001-05-06 Thread Dean Martin
I have an order form that is validating input, mailing me the results of the form, then I want to pass the user off to either Paypal or Revecom (depending on their choice) for processing. Everything works except trying to pass the variables to the payment processor. I thought that

Re: [PHP] PHP on PWS not working!

2001-05-06 Thread Phil Driscoll
I dont' have PWS so I#m guessing, but you probably have to remove the PHP ISAPI module from the list of installed ISAPI filters (you do have to do this on IIS so I assume PWS is the same). No idea where the user interface to this might be found though. Failing all else, deleting php4isapi.dll and

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Jack Dempsey
header(Location: http://something.foo.bar.com/page.extension?var1=etc;); -Original Message- From: Dean Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 1:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing variables to another page - newbie I have an order form that is

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread John Vanderbeck
Your location header should be a fully qualified URL, just like you had typed it into your browser. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues -Original Message- From: Dean Martin

Re: [PHP] Passing variables to another page - newbie

2001-05-06 Thread tcuhost
also is you want to add more than one variable in the example given you use the '' Sign ex with one var: header(Location: http://something.foo.bar.com/page.extension?var1=etc;); ex with 3 vars: header(Location: http://something.foo.bar.com/page.extension?var1=etcvar2=123var3=abc;); -

[PHP] [OT?] permission denied[OT?]

2001-05-06 Thread Alexander Bierbrauer
Hi again, I'm trying to write a few strings to a file on my Win2K home server(IIS 5). But The only thing I get is: Warning: fopen(score.txt,w) - Permission denied in c:\inetpub\wwwroot\nat\g2score\newscore.php on line 30 I've set the properties of score.txt to writeable and readable! I've got

[PHP] file() shooting blanks

2001-05-06 Thread Jay Lepore
Hello, I have an ASCII fixed width text file I'm trying to convert to an array of fields. When I use file() to place each line (record) in it's own array element, it strips out any blanks it finds except one. This results in in ABC MOTORS becoming ABC MOTORS. That creates a problem if ABC is

php-general Digest 6 May 2001 19:11:22 -0000 Issue 670

2001-05-06 Thread php-general-digest-help
php-general Digest 6 May 2001 19:11:22 - Issue 670 Topics (messages 51587 through 51649): IIS instead of PWS!!! what else can i do.. 51587 by: Thomas Edison Jr. 51588 by: Zak Greant 51591 by: Thomas Edison Jr. 51592 by: Thomas Edison Jr. 51593 by:

[PHP] Really easy question

2001-05-06 Thread biscut
How can i check to see if PHP has been enabled, I enabled the modules etc after they were compiled and i have managed to get Apache working properly again but now even when i do the basic tutorial stuff then I get a blank page rather than what I am supposed to get, the tutorial page is no help as

Re: [PHP] Flash/PHP/MySQL

2001-05-06 Thread Chris Adams
On 6 May 2001 10:25:19 -0700, FredrikAT [EMAIL PROTECTED] wrote: Can Flash import some text from a database (e.g MySQL) and print it on the fly? Yes. It's actually pretty easy - you can tell flash to load a bunch of variables from a URL. Your URL can return the encoded data (basically a

Re: [PHP] php4apachi.dll

2001-05-06 Thread Chris Adams
On 6 May 2001 05:53:54 -0700, Darren [EMAIL PROTECTED] wrote: Hi. I just installed a fresh copy a windows 95. I installed winsock 2, apache 1.3.19 and php4. I followed the instructions with the php installation and I booted apache, I got a missing dll error message from apache. I got the

Re: [PHP] Really easy question

2001-05-06 Thread Tom Carter
The easiest way is to create a simple page (called say test.php) with the following ?php phpinfo(); ? This should display a page with all sorts of information about your PHP, and serves as a good test as to whether or not PHP is working Good luck! Tom Carter Web Architect roundcorners ltd.

[PHP] newbie setting up searches

2001-05-06 Thread Greg Kelly
I am setting up a dating site and I would like to know the best way to do searchs on things like city , state, male , or female, age and so on. Any help would be appreciated. On my forms I will have drop down menus.. Thanks

[PHP] while($fbuffer=fread($fp,4096)) and xml_parse($xml_parser,$fbuffer,feof($fp))

2001-05-06 Thread Dominique Hermsdorff
Hi, Using PHP 4.0.4pl1 (I did not try with PHP 4.0.5). While parsing a large file (100MB) and using the following (simplified) piece of code: while(($fbuffer=fread($fp,4096)) $continue){ // // ... // if(xml_parse($xml_parser,$fbuffer,feof($fp))){ } else { // report error

Re: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Philip Olson
index.php?fruit=applecolor=greenlang=php If register_globals setting in php.ini configurations is 'on' then the following should all work : echo $fruit; // apple echo $color; // green echo $lang;// php echo

[PHP] Trim a string

2001-05-06 Thread Kyle Mathews
Hello: I have a signup form that asks for a website address. I don't need them to put in the http://, but I'm thinking that some will try anyway. Is there a way to check for this and remove it when the user submits the form? Thanks, Kyle [EMAIL PROTECTED] http://www.thedip.net -- PHP

[PHP] Image Upload

2001-05-06 Thread Kyle Mathews
Hello: I'm looking for some code that will upload images to my server from a form submission. I'd also like it to check for a max file size of the images. Any help would be appreciated. Thanks, Kyle [EMAIL PROTECTED] http://www.thedip.net -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Trim a string

2001-05-06 Thread Jack Dempsey
if you're string is a variabe $address, then eregi(http://,$address) will tell you if they've put in the http part, and $address = substr($address,7); will slice off and store the text after the http:// you'll find lots of different ways to do this...whatever suits you, go for it... -jack

Re: [PHP] quicker query?

2001-05-06 Thread Michael Roark
Its a different problem to explain Let me show you part o the contents from universe. +-++++---+-- +++ | cluster | galaxy | planet | planet_name| ruler | size | score | rank |

RE: [PHP] Trim a string

2001-05-06 Thread Jason Lotito
-Original Message- From: Kyle Mathews [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Trim a string Hello: I have a signup form that asks for a website address. I don't need them to put in the http://, but I'm thinking that

Re: [PHP] Trim a string

2001-05-06 Thread Kyle Mathews
Thanks, that worked great. - Kyle Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if you're string is a variabe $address, then eregi(http://,$address) will tell you if they've put in the http part, and $address = substr($address,7); will slice

RE: [PHP] Really easy question

2001-05-06 Thread biscut
Thanks very much for your help on this, turns out there wasnt anything wrong with it, I was trying to view the page with Netscape 4.7 on hte Linux machine and getting blank pages, if I viewed it with IE 5.5 on a windows machine then everything works fine...I have no idea why this is happening but

RE: [PHP] Really easy question

2001-05-06 Thread Jack Dempsey
check your html whenver you see blank pages in netscape, but they work in IE... -jack -Original Message- From: biscut [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 5:03 PM To: Tom Carter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Really easy question Thanks very much for your

Re: [PHP] Image Upload

2001-05-06 Thread Henrik Hansen
Kyle Mathews [EMAIL PROTECTED] wrote: Hello: I'm looking for some code that will upload images to my server from a form submission. I'd also like it to check for a max file size of the images. look at the getimagesize() function -- Henrik Hansen -- PHP General Mailing List

RE: [PHP] Really easy question

2001-05-06 Thread heinisch
At 06.05.01 22:03, you wrote: Thanks very much for your help on this, turns out there wasnt anything wrong with it, I was trying to view the page with Netscape 4.7 on hte Linux machine and getting blank pages, if I viewed it with IE 5.5 on a windows machine then everything works fine...I have

RE: [PHP] Really easy question

2001-05-06 Thread biscut
I did, even to the extent of copying and pasting the text straight off of the tutorial into the file that I created using vi. Very strange biscut -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: 06 May 2001 22:10 To: biscut; Tom Carter Cc: [EMAIL PROTECTED]

RE: [PHP] Really easy question

2001-05-06 Thread biscut
Believe it or not then the code is right...exactly right (I know you dont believe it *grin* even the code that Tom kindly wrote in didnt work and I only had html and /html on either side of what he wrote...I don't understand why but at least it partially works...better than what I thought I had

Re: [PHP] quicker query?

2001-05-06 Thread Gyozo Papp
Hello Michael, I'm bit confused now. In your first letter, you wrote this simple code : --- if ($result) { for ($cluster=1;$cluster200;$cluster++) { for($galaxy=1;$galaxy26;$galaxy++) { $sql=insert into galaxy select avg(cluster) as gcluster,sum(size) as gsize,sum(score) as gscore,avg(galaxy)

Re: [PHP] Really easy question

2001-05-06 Thread Steve Maroney
create a new php file. If you call the function phpinfo(), you should get a bunch of useful information. If you're getting an error message complianing about PHP not being enabled, then check out your configuration file. I think there is an line something like enable engine. That might be

RE: [PHP] Really easy question

2001-05-06 Thread Chris Mason
Check for output compression in output buffering in your php script, I don't think it always works. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of biscut Sent: Sunday, May 06, 2001 5:21 PM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Really

[PHP] URL redirection

2001-05-06 Thread Jamie Saunders
Hi, Is there a PHP function that will redirect the current page to another url? e.g. if ($varTwo == $varOne) { URL redirection code } else { echo You stay right where you are!; } Thanks. Jamie Saunders Mail: [EMAIL

Re: [PHP] URL redirection

2001-05-06 Thread Markus Fischer
header( 'Location: rediret_me_here.php'); - Markus - Original Message - From: Jamie Saunders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 07, 2001 12:20 AM Subject: [PHP] URL redirection Hi, Is there a PHP function that will redirect the current page to another url?

RE: [PHP] URL redirection

2001-05-06 Thread Tyler Longren
if ($varTwo == $varOne) { header('Location: http://www.location.com/page.html'); } else { echo You stay right where you are!; } Tyler -Original Message- From: Jamie Saunders [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 5:21 PM To: [EMAIL PROTECTED]

RE: [PHP] Really easy question

2001-05-06 Thread biscut
I know this is probably going to sound really silly but can you explain that to me in plain simple english ?? :-) I only started looking at PHP yesterday *grin* Thanks for your help biscut -Original Message- From: Chris Mason [mailto:[EMAIL PROTECTED]] Sent: 06 May 2001 23:04 To:

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread MaD dUCK
also sprach Thomas Edison Jr. (on Sat, 05 May 2001 11:52:34PM -0700): i think i'm almost at the verge of giving up...somehow the PWS in my system is ruined forever...i'd done everything..and i mean *EVERYTHING*...but PHP just doesn't seem to be working with my PWS. In fact, even my ASP

[PHP] FILE () STRIPS BLANKS FROM THE ARRAY - HOW CAN I STOP IT

2001-05-06 Thread Jay Lepore
I have an ASCII fixed width text file I'm trying to convert to an array of fields. But I need to keep the spaces in tact so I know exactly where one field ends and another begins. Do you know of any way to modify the default behavior of file() which strips the blanks spaces out when returning

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Dean Martin
Thanks to everyone for the help - unfortunately my problem seems to be the function I'm using to do the redirecting. header() is supposed to be the first item passed. What I'm trying to do is use a line of code well down into the logic of my script to redirect the user to another page along

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Jason Murray
Thanks to everyone for the help - unfortunately my problem seems to be the function I'm using to do the redirecting. header() is supposed to be the first item passed. What I'm trying to do is use a line of code well down into the logic of my script to redirect the user to another page

[PHP] PHP based Reminder System

2001-05-06 Thread Chris Aitken
Hey all, Im just wondering if anyone has come across a PHP based system which allows people to log in, and set reminders for themselves, and at the time specified, emails them the reminder ? I know a system could be written utilising cron/php/sendmail etc but I was thinking that maybe a

Re: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Jason Brooke
Thanks to everyone for the help - unfortunately my problem seems to be the function I'm using to do the redirecting. header() is supposed to be the first item passed. What I'm trying to do is use a line of code well down into the logic of my script to redirect the user to another page along

[PHP] Offshore merchant account

2001-05-06 Thread Offshore Merchant Centre
Dear Webmaster, We have looked at your website and noticed that you might be interested in an offshore merchant account for your credit card processing. OMC is ready to provide you with the best offshore merchant solution. Our latest technology gateway and direct relations with large

Re: [PHP] Databases and HTML forms

2001-05-06 Thread Manuel Lemos
Hello Michael, On 20-Apr-01 14:38:48, you wrote: I'm needing to have a form that pulls a bunch of database fields into it and then allows you to modify the fields and does the subsequent update in the database. This seems like something that has to be done all the time. Is there a right way

  1   2   >