Re: [PHP] MySql number/string comparing ideas...

2001-07-25 Thread Brad Wright
I would use something like this: Select * from table where value1 500 AND value2 100 hope this helps, brad From: elias [EMAIL PROTECTED] Date: Fri, 13 Jul 2001 07:06:26 -0700 To: [EMAIL PROTECTED] Subject: [PHP] MySql number/string comparing ideas... Hi! How is it possible to do a

Re: [PHP] new lines in text fields

2001-07-25 Thread Brad Wright
use the 'nl2br' fuction‹ Inserts HTML line breaks before all newlines in a string From: Mat Marlow [EMAIL PROTECTED] Date: Fri, 6 Jul 2001 16:06:58 +0100 To: [EMAIL PROTECTED] Subject: [PHP] new lines in text fields Hi all, I am in desperate need for a solution to HTML text fields not

Re: [PHP] Syntax Eyes

2001-07-25 Thread Morten Winkler Jørgensen
CD Hey, I need a set of extra eyes: OK. I'll put on my magic X-ray typ-oh-glasses ;) CD $res_id = mysql_query (update contacts_data set ( CD description='$description', CD data='$data', CD filename='$input_file_name', CD

[PHP] komodo

2001-07-25 Thread Joseph Blythe
Hey, Is anyone on this list using ActiveState's Komodo (http;//activestate.com) on a windows box to remotely debug php scripts running on a linux server? Is this possible? I have read the documents and don't get it at all! Although local debugging under windows works just fine. If you are using

RE: [PHP] WSIWYG Editor using PHP?

2001-07-25 Thread Joseph Blythe
You might want to look at Komodo (http://www.activestate.com) I just downloaded the windblows version (there is also Linux version 25mb though) which is a fairly basic text editor with php syntax highlighting (and a few other neat fetures) with a built in debugger which can apparently debug

[PHP] Re: WSIWYG Editor using PHP?

2001-07-25 Thread Adrian Ciutureanu
EZEdit editor works 99% on client (JavaScript) and it works only in a IE5+ browser. You'll need ColdFusion only for remote file acces (commands like insert picture). Bob Clingan [EMAIL PROTECTED] wrote Does anyone know of any WSIWYG editors that you can plug into a site using PHP. I recently

RE: [PHP] WSIWYG Editor using PHP?

2001-07-25 Thread Joseph Blythe
sorry should be http://activestate.com -Original Message- From: Joseph Blythe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 25 July 2001 4:25 PM To: Chip Cc: [EMAIL PROTECTED] Subject: RE: [PHP] WSIWYG Editor using PHP? You might want to look at Komodo (http://www.activestate.com) I just

[PHP] problem running php

2001-07-25 Thread raj kumar
Hi, Though i am running php on apache server on my win98 machine perfectly, recently i install apache and php on my win2000 server, apache start very well but php is not working, as it seems, though when i run phpinfo out of my server with php.exe it runs but it dosen't show in browser whenever

[PHP] session cookies not destroyed

2001-07-25 Thread Brad Wright
Hi all, I was wondering if anyone has had any problems with sessions and IE 5.0 (mac). As I (limitedly) understand it, the session cookie (kept by IE) should be destroyed when I quit IE. It should, therefor, not be there when I restart IE. HOWEVER.. I seem to get very unpredictable behaviour in

Re: [PHP] MySql number/string comparing ideas...

2001-07-25 Thread elias
well yes, somehow my field has like: field1 -- 1.2 99.123 500x120 561x112 5.5 so as you see this 'field1' have both normal numeric values and sometimes 'YYYxYYY' values... I thought that MySql can somehow compare with another number and compare correctly x with anoter

[PHP] Re: String Comparison

2001-07-25 Thread Adrian Ciutureanu
Note that using strings without quotes generates a warning that is not displayed in the default configuration of PHP. The message looks like Warning: Use of undefined constant anyString - assumed 'anyString' in test.php on line 3 (line 3: echo anyString;) If you want to see these warnings, set

[PHP] Re: Client Machine Name

2001-07-25 Thread Adrian Ciutureanu
http://php.net/manual/en/language.variables.predefined.php $REMOTE_HOST = gethostbyaddr($REMOTE_ADDR); Dominic [EMAIL PROTECTED] wrote It's there anyway to find out the client machine name by using php? Thanks! Dominic -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] MySql number/string comparing ideas...

2001-07-25 Thread Brad Wright
elias, I would have to agree with Lawrence, and recommend re-designing your database, unless there is a specific reason preventing you doing this (ie like months of your life invested in the product ; ) otherwise, only allowing numerical input is a good start tho :) brad From: elias [EMAIL

[PHP] compiling apache with php4

2001-07-25 Thread Niemann, Markus
Hi, I`ve a problem compiling the apache: ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a When I do so, following message occurs: Configuring for Apache , Version 1.3.20 + using installation path layout: Apache (config.layout) configure:Error: invalid

RE: [PHP] php stand alone

2001-07-25 Thread Adrian D'Costa
I need both. Adrian On Tue, 24 Jul 2001, Tyler Longren wrote: when you configure php, don't specify a web server to use. ./configure --with-mysql would do the trick. ./configure --with-apxs=/path/to/apxs --with-mysql would not do the trick Tyler -Original Message-

Re: [PHP] php stand alone

2001-07-25 Thread Adrian D'Costa
Hi, Thanks. I will look at that **manual**. But your suggestion of running lynx is interesting. What I want to do is receive a mail to a account with a preset subject. On arriving at that account the php script will get the contents of the subject and preform other tasks. Will the Lynx

RE: [PHP] php stand alone

2001-07-25 Thread Adrian D'Costa
This is on my intranet and is connected for a few minutes to pick up the mail. Adrian On Tue, 24 Jul 2001, scott [gts] wrote: but remember, if you put your cron/admin scripts into a directory on a publicly accessable webserver, you run the risk of having anonymous websurfers run your

[PHP] newbie seeks template info

2001-07-25 Thread Daniel Goldin \(E-mail\)
Could somebody point me to a good primer--and I mean PRIMER--that explains how templates work in php. I'm thinking--not too clearly, I admit--about apps like Smarty and PhpLib and Pear, which I've heard so much about. I would like to know how to use templates--particularly to separate structure

Re: [PHP] MySql number/string comparing ideas...

2001-07-25 Thread elias
Thank you Brad and Lawrence. I have agreed to only allow numerical input on this specific field. And make a new one that allows X and Y ... Thanks again. Brad Wright [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... elias, I would have to agree with Lawrence,

[PHP] URGENT: function mail()

2001-07-25 Thread Gernot
i've the following problem i know how to set the charset in the header of a mail using the php mail-function. but i also need to set it for the subject (iso-8859-2) i hope someone can help me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] PHP function to extract EXIF data from JPGs?

2001-07-25 Thread Seb Frost
Let me know if you find anything out about this because it's something I too would like to use. - seb -Original Message- From: Richard Kitamura - Media Net Link, Inc. [mailto:[EMAIL PROTECTED]] Sent: 24 July 2001 23:40 To: [EMAIL PROTECTED] Subject: [PHP] PHP function to extract EXIF

RE: [PHP] URGENT: function mail()

2001-07-25 Thread Lawrence . Sheed
Have a look at the internet - google is good for this http://www.imc.org/mail-i18n.html#MIME Internationalized text and names appear in both parts of Internet mail messages: in the headers, and in the body of the message. RFC 2047 covers how to use international characters in some parts of

RE: [PHP] URGENT: function mail()

2001-07-25 Thread Lawrence . Sheed
Feeling a little guilty for not being that helpful (rfc's aren't that easy to use sometimes) From the top of my head Two types of encoding based on the RFC B (Base64) Q (Quoted?) so for funky foreign text, non ascii would be something like $subject= base64_encode ($subject); $subject=

[PHP] phpinfo - mysql - windows

2001-07-25 Thread Gaylen Fraley
I've just installed mysql 3.23.39 binary under windows. However, when I run phpinfo it shows 3.23.32 . When I run mysqladmin version, it shows 3.23.39 . Why the conflict? Thanks. -- Gaylen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: phpinfo - mysql - windows

2001-07-25 Thread Gaylen Fraley
That's what I figured. Problem is I don't use the compiled version in windoz. I compile my own under Linux, but not windows. BUMMER! -- Gaylen Henrik Hansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [EMAIL PROTECTED] (Gaylen Fraley) wrote: I've just

[PHP] include (foo.php) not working

2001-07-25 Thread Jon Hubbard
I have a strange problem which I cannot seem to resolve. I am running PHP 4.0.6 on my Mac OSX using apache and MySQL. Everything works fine except for one problem. Like many developers I make extensive use of the include funtion but it does not seem to work correctly on this installation.

[PHP] php

2001-07-25 Thread Eduardo Kokubo
Hi, Is it possible to compress an entire directory using an external program like pkzip? If it is possible, how can I do it?

RE: [PHP] php

2001-07-25 Thread Jon Haworth
Yes it is - have a look at www.php.net/exec to see how you can run commands from your PHP scripts. HTH Jon -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 12:55 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] php Hi, Is it possible

[PHP] mail()

2001-07-25 Thread Zherdev Anatoly
I want to get name of virtual host that send mail from mail() function for prevention spamming, but when php starting as apache module sendmail executed from mail() function in php script has'nt apache environment, but only shell environment. Can i configure php for getting apache environmet

Re: [PHP] include (foo.php) not working

2001-07-25 Thread Andy Warwick
I am running PHP 4.0.6 on my Mac OSX using apache and MySQL. when I include the statement ? include (foo.php); ? then rather than parsing the file and displaying the results the whole file is just dumped to screen as a text file. Interesting the same problem occurs whatever the file

RE: [PHP] php

2001-07-25 Thread Seb Frost
Install winzip. Create new archice. Drag and drop directory from explorer or whatevr into it. Couldn't be easier. - seb -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 12:55 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] php Hi,

Re: [PHP] include (foo.php) not working

2001-07-25 Thread ilari . kaartinen
when I include the statement ? include (foo.php); ? then rather than parsing the file and displaying the results the whole file is just dumped to screen as a text file. Interesting the same problem occurs whatever the file extension so the same thing happens for foo.htm, foo.html and

[PHP] Re: error using imagecreate function

2001-07-25 Thread venomous
This is the code just a normal imagecreate function ?php file://draw1.php Header(Content-type: image/jpeg); $image = ImageCreate(200,150); $gray = ImageColorAllocate($image,204,204,204); $blue = ImageColorAllocate($image,0,0,255); ImageLine($image,10,10,150,30,$blue); ImageJPEG($image);

Re: [PHP] include (foo.php) not working

2001-07-25 Thread maatt
Errr... feel embaressed asking but I've done the same... You do have ?php ? tags around your code? Easy to leave off when there's no HTML in the page. Matt Ilari Kaartinen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... when I include the statement ? include

[PHP] Security Question

2001-07-25 Thread Shrout, Ryan
In a lot of PHP code that I have seen, there are lines such as this: mysql_connect('localhost', 'mysql_login()', 'mysql_password()'); that is used to hide the login and password from someone should they somehow view the code instead of the output of the PHP file. My question is, how do I set

Re: [PHP] Security Question

2001-07-25 Thread B. van Ouwerkerk
somehow view the code instead of the output of the PHP file. My question is, how do I set up those functions mysql_login and mysql_password? Are they just standard functions defined in a header someplace? Or is this even the best, most secure way of handling it? Include your login and

[PHP] Help with regular expresions! [ASAP]

2001-07-25 Thread PsychoSphere2K
Hi! I have a fairly large PHP based website. Unfortuantely, I didn't make extensive use of stylesheets. I'm hoping for some help with regular expressions matching ( and = replacing ) some tags. I use output buffering, so it would be a simple case of adding some = lines to my output hanlder.

[PHP] Headers

2001-07-25 Thread Richard Baskett
What does the header look like when you submit a form using the POST method? I would like to transfer some php variables to another page using the header() function. The Location part I have down no problem, but I don't want to do something like this:

[PHP] Calling a webpage with POST arguments

2001-07-25 Thread Peter Ostry
Maybe this was already diskussed, but I am rather new to PHP... I have to call a page on a remote webserver and include some variables. Since the whole stuff comes from a database and is too long for an URL ist must be done with POST. Can I call a website with POST arguments from within PHP?

[PHP] Re: Help with regular expresions! [ASAP]

2001-07-25 Thread maatt
$tag_name = input; $new_class = yourclass; eregi_replace(($tag_name), \\1 class=\$yourclass\, $yourstring); will work for simple cases, but isn't going to give you much more power than just applying a style to the tag iself - 'input { border : 1px }' say). If the design is consistent, you can

[PHP] Opening another page in code

2001-07-25 Thread Nelson Goforth
This seems simple, but for some reason I can't find what I'm looking for in books or the archive. Might just be looking for the wrong words. I just want to open another page, sending some parameters, at a point in a script - without the user clicking on anything (I can do this in a form - I

[PHP] Re: Client Machine Name

2001-07-25 Thread Dominic
I think this only can get the machine name of vistors ISP... It's there anyway to get visters OWN machine name? Thanks!!! Dominic http://php.net/manual/en/language.variables.predefined.php $REMOTE_HOST = gethostbyaddr($REMOTE_ADDR); It's there anyway to find out the client machine name by

[PHP] Re: Help with regular expresions! [ASAP]

2001-07-25 Thread James Holloway
Hi Peter, You could try this: ? $string = Blah iitalic/iinput type=\name\ Blah bbold/b; $new_string = preg_replace(/input(.*?)/i, input\\1 class=3D, $string); echo $stringbrbr$new_string; ? preg_replace = regular expression replacement input = first part of tag (.*?) = whatever, but not:

[PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
I'm trying to get a simple piece of code involving gd functions to work just to ensure gd is working properly on my server. I took this straight from my book. All that comes up is a broken image. I talked with my host and they assured me gd is installed and working properly on the server. Any

RE: [PHP] Syntax Eyes

2001-07-25 Thread Mark Roedel
-Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 10:53 PM To: Matthew Loff; 'Php-General' Subject: Re: [PHP] Syntax Eyes Okay, I figured out the @header will actually reset the headers, but it still just prints the raw data to the

Re: [PHP] Propably easy regex question

2001-07-25 Thread Sheridan Saint-Michel
I would just do something like if(substring($text, 0, 1) == ) { $text = . $text; } else { $text = . $text; } Where $text is a line of text from your message. Hope that helps Sheridan - Original Message - From: Nicklas af Ekenstam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Supressing warnings on max file size exceeded

2001-07-25 Thread Bing
How do I suppress the following message when posting a file to a .php-script? Warning: Max file size exceeded - file [uploadedfile] not saved in /home/html/org.begravningar/intradev_html/forum.php on line 0 It's a warning on line 0, and even if I put error_reporting(0) on line 1 it doesn't

[PHP] new problem

2001-07-25 Thread Eduardo Kokubo
Hello, I have to transfer a directory and all it's files and subdirectories from one server to another or from one acount to another, but I guess ftp_put or copy can not do it ( This directory must not be compressed). ANY help woud be very very welcome.

[PHP] Machine name???

2001-07-25 Thread Dominic
I think this only can get the machine name of vistors ISP... It's there anyway to get visters OWN machine name? Thanks!!! Dominic http://php.net/manual/en/language.variables.predefined.php $REMOTE_HOST = gethostbyaddr($REMOTE_ADDR); It's there anyway to find out the client machine name by

[PHP] Getting mail() to work in PHP for Windows

2001-07-25 Thread Boget, Chris
I couldn't find anything in the docs about this... What do you need to have installed to be able to use the mail() function (and have mail get sent out) in PHP for Windows? If you could point me to the proper place in the documentation so I can read up on it, I'd be ever so grateful! Chris

[PHP] Re: Supressing warnings on max file size exceeded

2001-07-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Bing) wrote: How do I suppress the following message when posting a file to a .php-script? Warning: Max file size exceeded - file [uploadedfile] not saved in /home/html/org.begravningar/intradev_html/forum.php on line 0 It's a warning on line 0, and even if I

[PHP] ...No PNG support in this PHP build ....

2001-07-25 Thread Brian C. Doyle
Hello all, I have some code that I have in 2 different directories on my server in the one directory it runs and draws the Image. In another directory it will not? I have both directorys chmod the same the 2 directories are with different owners. What am I doing wrong? The error I am

RE: [PHP] Getting mail() to work in PHP for Windows

2001-07-25 Thread Kraa de Simon
In your php.ini file enter the IP of the SMTP server you want to use. Something like: [mail function] SMTP = 255.255.255.255 sendmail_from = [EMAIL PROTECTED] Search the web for a SMTP server for win32. HTH, Simon. -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]]

RE: [PHP] Zip Code Locator?

2001-07-25 Thread Brian Dunworth
Hey, let me know if you figure out what the extra numbers are for... I might have a use for this at some point. The last two numbers are latitude and longitude of the registered zip code center for the given zip code. --- Brian S. Dunworth Sr.

RE: [PHP] new problem

2001-07-25 Thread Jon Haworth
On which OS? For example, on a Linux box, I imagine you could do something like exec(mv old.directory.name new.directory.name); Cheers Jon -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 15:07 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject:

RE: [PHP] can't get gd working at all

2001-07-25 Thread Warren Vail
If the gd extension is not loaded each time php is loaded you will need to cause it to be loaded from your script. http://www.php.net/manual/en/function.dl.php I keep my extensions in a separate directory, off the php root directory, so to load my gd I use the following;

Re: [PHP] Re: Supressing warnings on max file size exceeded

2001-07-25 Thread Bing
Thanks for your input Henrik, The problem isn't allowing for file-size really, I'd like to limit it to say some 500kb, but it's the inability to stop anyone from violating this rule beforehand that triggers the warning. I can't stop anyone from uploading a 600kb file until it's uploaded - and

Re: [PHP] Opening another page in code

2001-07-25 Thread Gunther E. Biernat
I just want to open another page, sending some parameters, at a point in a script - without the user clicking on anything (I can do this in a form - I want to do it WITHOUT the form). Like:if($test) { GO_TO_PAGE (http://www.site.dom/page.php?id=838383); } Except

[PHP] Troubles with while(!feof($socket_id)) and compiling php-4.0.6 ... help please :(

2001-07-25 Thread Arnauld Dravet - smurfie
Hello, i was using php-4.0.3pl1 until now and never had any problem, except yesterday i had to develop a page on which i have to read on a socket ... problem is that: while(!feof($socket_id)) { echo fgets($socket_id, $len); } does not work: seems that FEOF is never detected so the PHP

RE: [PHP] include (foo.php) not working

2001-07-25 Thread Rudolf Visagie
I've found that when I forget to start and end the include file's code with ? and ? it sometimes does exactly what you're getting. Regards Rudolf -Original Message- From: Jon Hubbard [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 01:42 To: [EMAIL PROTECTED] Subject: [PHP] include

[PHP] ereg_replace

2001-07-25 Thread Clayton Dukes
Can someone tell me why this doesn't work? $home_street = ereg_replace ( , + , $home_street); The input is 123 happy trail I need the output to be 123+happy+trail Thanks, Clayton

[PHP] Re:php modules

2001-07-25 Thread Miguel Loureiro
Sorry for taking your time, but I solve my problem, T.Y. Best RegardsMiguel Joaquim R. Loureiro [EMAIL PROTECTED] NEXTVISION - DEVTEAM www.nextvision.pt

Re: [PHP] Syntax Eyes

2001-07-25 Thread Clayton Dukes
I have a row in sql that is binary data (a jpeg) I need to echo that data to a table on the web page in the form of the original jepg, when I echo it now, I just get the actual data stream. How can I fix this? - Original Message - From: Mark Roedel [EMAIL PROTECTED] To: Clayton Dukes

Re: [PHP] ereg_replace

2001-07-25 Thread Matt Greer
on 7/25/01 10:38 AM, Clayton Dukes at [EMAIL PROTECTED] wrote: Can someone tell me why this doesn't work? $home_street = ereg_replace ( , + , $home_street); The input is 123 happy trail I need the output to be 123+happy+trail Not exactly what you wanted, but you could do

Re: [PHP] ereg_replace

2001-07-25 Thread Jason Stechschulte
On Wed, Jul 25, 2001 at 11:38:41AM -0400, Clayton Dukes wrote: Can someone tell me why this doesn't work? Not really. You should tell us why it isn't working, and we can help you to get it working. What is happening? What is all of the relevant code? $home_street = ereg_replace ( , + ,

[PHP] #!interpreterDirective and Setting cookies

2001-07-25 Thread Kenneth R. Martinek
Hello all, I'm having a problem setting cookies, when running code using the explicit interpreter directive (#!\php\php.exe). The problem is that PHP cant set cookies because bytes are sent back to the client before the setcookie() (presumably \n or \r 's), but only when the interpreter

RE: [PHP] Syntax Eyes

2001-07-25 Thread Mark Roedel
-Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 10:42 AM To: Mark Roedel; Php-General Subject: Re: [PHP] Syntax Eyes I have a row in sql that is binary data (a jpeg) I need to echo that data to a table on the web page in the form

[PHP] Re: Machine name???

2001-07-25 Thread Arcadius A.
Hi ! Have a look at : http://php.net/manual/browse-errata.php?let=g There's a code that gives you the right host name .. ?php if (getenv(HTTP_X_FORWARDED_FOR)){ $ip=getenv(HTTP_X_FORWARDED_FOR); } else { $ip=getenv(REMOTE_ADDR); } $host = gethostbyaddr($ip); ? Arcad. -- PHP General

Re: [PHP] ereg_replace

2001-07-25 Thread Rasmus Lerdorf
Use the urlencode() function. Or at the very least use str_replace. And by the way, the ereg_replace() you have works fine. You must be doing something silly. -Rasmus On Wed, 25 Jul 2001, Clayton Dukes wrote: Can someone tell me why this doesn't work? $home_street = ereg_replace ( , +

[PHP] remote image uploads.

2001-07-25 Thread Tyler Longren
Hello everyone, I've hunted on google, read the list archives. Here's what I've been fooling with to upload the file: $data = addslashes(fread(fopen($picture, r), filesize($picture))); $len = strlen($data); if ($fp =

Re: [PHP] newbie seeks template info

2001-07-25 Thread mike cullerton
devshed has an article using fast template http://devshed.com/Server_Side/PHP/PHPFastTemplate/ on 7/25/01 2:06 AM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote: Could somebody point me to a good primer--and I mean PRIMER--that explains how templates work in php. I'm thinking--not too

Re: [PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
on 7/25/01 9:35 AM, Warren Vail at [EMAIL PROTECTED] wrote: If the gd extension is not loaded each time php is loaded you will need to cause it to be loaded from your script. Ok, I tried this and got gd is not loaded ?php if (extension_loaded(php_gd.so)) echo gd is loaded; else

Re: [PHP] remote image uploads.

2001-07-25 Thread Tyler Longren
I found the problems: 1. I shouldn't have been using stripslashes() when putting the picture on the filesystem. This would have been necessary for adding the image to a database. 2. Put ENCTYPE=multipart/form-data in form. My bad, I didn't include the form part of my code in the email. Tyler

[PHP]Formatting problem...

2001-07-25 Thread Chris Cocuzzo
hey- this is a little bit off topic, but it relates. I'm pulling a field called info from my db. When I entered the info into the db in the first place, I added the '\n' character so that the HTML result wouldn't be all on one line. The problem is that when the page displays...the text in that

[PHP] Learning PHP

2001-07-25 Thread Kyle Smith
Can someone please make a list of the best places to learn PHP as I have 6 weeks of school holidays and I want to put the m to good use (i have the PHP reference guide from www.oreilly.com and i have the big ass document files from www.php.net) -legokiller666-

[PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin
I've read a lot about the is_file and is_dir functions, but something is still missing. If I call is_file to tell me if something is a file or not, and it must traverse a large path, e.g. ./dir1/dir2/file.txt, it will almost always fail. Can anyone tell me why, and what a possible work around is?

RE: [PHP] Learning PHP

2001-07-25 Thread Matthew Loff
O'Reilly book and PHP manual? That's the best you're going to get. (Others will recommend other books, but the O'Reilly one is great to start with) Good luck! -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 9:06 PM To: [EMAIL PROTECTED]

[PHP] Re: Formatting problem...

2001-07-25 Thread Philip Hallstrom
I'm not sure I understand your problem... this is what it looks like on my machine (your url that is) http://www.adhesivemedia.com/~philip/gigs.gif IE 5.5 on w2k On Wed, 25 Jul 2001, Chris Cocuzzo wrote: hey- this is a little bit off topic, but it relates. I'm pulling a field called info

[PHP] Re: Learning PHP

2001-07-25 Thread Philip Hallstrom
I learned from various sites and the manual and just by doing it which usually meant it would fail cause I'd used Perl's syntax so I'd go find the PHP equivalent :) However, I bought Professional PHP Programming for some of our developers who like books. I skimmed it and it's pretty good. I

Re: [PHP] javascript ?

2001-07-25 Thread Angel Behar
Thanks for the answer but I must admitt that my knowldege of javascript it is almost none, and I really don't know how to use the hide(), show() etc, functions, so if somebody can point me to some site or can give an example of how it works I'm sure I can work around the problem. Thanks in

RE: [PHP] Learning PHP

2001-07-25 Thread Jeff Oien
http://www.webdesigns1.com/php Jeff Oien Can someone please make a list of the best places to learn PHP as I have 6 weeks of school holidays and I want to put the m to good use (i have the PHP reference guide from www.oreilly.com and i have the big ass document files from www.php.net)

[PHP] PHP/Cold Fusion questions:

2001-07-25 Thread SalvatoreJD
Hello... Let me say thank you in advance to those who respond... How well does PHP and Cold Fusion code play together? Can PHP code in CF pages be parsed by PHP server or vise versa- Can CF code in PHP pages be parsed by the CF server? Or will this cause major headaches? The reason I ask is

RE: [PHP] can't get gd working at all

2001-07-25 Thread Don Read
On 25-Jul-2001 Matt Greer wrote: I'm trying to get a simple piece of code involving gd functions to work just to ensure gd is working properly on my server. I took this straight from my book. All that comes up is a broken image. I talked with my host and they assured me gd is installed and

[PHP] mysql_pconnect

2001-07-25 Thread Dan Goodliffe
Just a question out of pure curiosity... If an SQL link is opened using, mysql_pconnect when does it actually close? Thanks in advance Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Installing PHP in WinNT and Apache 1.3

2001-07-25 Thread El Gerva
Hi everyone... I'm really a newbie in PHP. I've got Perl running in Apache, and i want to install PHP 4 (binary) too. These are the lines i added to httpd.conf ScriptAlias /php/ C:/servers/server1/php/ AddType application/x-httpd-php .php LoadModule php4_module c:/php/sapi/php4apache.dll And

RE: [PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin
Will somone on this list please help me in this? All the examples I've come across researching this are WAY too complex for getting around this if someone can confirm my suspicions. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED]

[PHP] Perl Splice Equivalent

2001-07-25 Thread Steven Michaels
Hello, I've been wanting to open a file, read its contents, and if one line matches my text, have the program remove that line. The file is in this format (a common text file.): User1 User2 User3 What I want the program to do is to go through each line, and if that line matches User2, then have

RE: [PHP] mysql_pconnect

2001-07-25 Thread Don Read
On 25-Jul-2001 Dan Goodliffe wrote: Just a question out of pure curiosity... If an SQL link is opened using, mysql_pconnect when does it actually close? When its 'sleep' time exceeds 'wait_timeout' defined in the server (or possibly never on a working site). $ mysqladmin var | grep

RE: [PHP] Perl Splice Equivalent

2001-07-25 Thread Don Read
On 25-Jul-2001 Steven Michaels wrote: Hello, I've been wanting to open a file, read its contents, and if one line matches my text, have the program remove that line. The file is in this format (a common text file.): User1 User2 User3 What I want the program to do is to go through each

[PHP] scp via `` or exec() or passthru()

2001-07-25 Thread Dennis Gearon
Anyone had any luck using scp to access files on a different box than a script is running? In particular, using a private key that has a pass phrase? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] uploading files to another server from PHP using SSL

2001-07-25 Thread Dennis Gearon
Is it possible to open a 'https://' connection via any functions in PHP? For example, if I have script that I want to use to edit files on another box which has SSL enabled, I download the file using the SSL, and upload it through a script as well? -- PHP General Mailing List

Re: [PHP] uploading files to another server from PHP using SSL

2001-07-25 Thread Vincent Stoessel
Take a look at the curl functionality in the ph manual Dennis Gearon wrote: Is it possible to open a 'https://' connection via any functions in PHP? For example, if I have script that I want to use to edit files on another box which has SSL enabled, I download the file using the SSL, and

Re: [PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
Ah ha, my host was wrong. gd is not installed on the server I'm on, but they're moving me over to one that has it. Sorry everyone, but I didn't know enough about any of this to be able to verify what they told me. Thanks for all the help. Matt -- PHP General Mailing List

[PHP] Test, please ignore

2001-07-25 Thread Owen Rudge
Sorry about this, but the last time I tried to post (via the newsgroup) I failed. -- Owen Rudge http://www.owenrudge.co.uk/ http://www.gamearchive.uk.tt/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] ISO: Employment Listings at schaffner.net

2001-07-25 Thread Vincent Stoessel
Anyone know what is going on with schaffner.net 's employment listing? I have a resume stored that really need right now as I just got laid from my position as an Internet/LAMP Applications engineer in the Wash,DC area (truly shameless plug). I can not edit or retrieve the resume from his site

RE: [PHP] Programming by PHP

2001-07-25 Thread Sitkei Pál
Here is my salution with session handling: ?php session_start(); function add_row(){ echo tr bgcolor=\#CC\; echo td width=\6%\input type=\text\ name=\textfield\ size=\5\/td; echo td width=\20%\input type=\text\

[PHP] Why doesn't this simple query work?

2001-07-25 Thread Seb Frost
Driving me mad. Works if I put a string in quote marks instead of the variable $location. $result = mysql_query(SELECT shootID FROM shoots WHERE (location=$location)); This should work shouldn't it? If it's a problem with the variable being embedded in the query what's the easiest way to

RE: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Boget, Chris
Driving me mad. Works if I put a string in quote marks instead of the variable $location. $result = mysql_query(SELECT shootID FROM shoots WHERE (location=$location)); This should work shouldn't it? If it's a problem with the variable being embedded in the query what's the easiest way to

[PHP] strlen

2001-07-25 Thread David OBrien
I'm having a heck of a time getting something to work like it should I have a script which reads a list of words one per line I want it to display the length of the word a tab then the word. No matter how I code it it still only shows the word alone on strlen. Any ideas? ? $handle = fopen

Re: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Jon Yaggie
hmmm i think you need to always have quotes around string regardless of if they are variables . . . $result = mysql_query(SELECT shootID FROM shoots WHERE (location='$location')); - Original Message - From: Seb Frost [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Thursday,

  1   2   >