Re: [PHP] is_uploaded_file() emulation?

2002-02-27 Thread Edward van Bilderbeek - Bean IT
What about: ENV["USER"] or ENV["USERNAME"] (see phpinfo())... Greets, Edward - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: "Martin Towell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Stewart Gateley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday,

RE: [PHP] Writing to files

2002-02-27 Thread Chris Kay
I know I can do this with sessions, reason I am asking is webserver should not be able to create file (for security reasons), I would of maybe thought php could create a file as a different user. php is not always used by the box owner. I find it strange that such a option Is only available if

[PHP] GD fonts and ImageLoadFont

2002-02-27 Thread Tom
Hello, I've been trying to figure out how to properly convert a bdf font into a GD font for use with ImageLoadFont. The conversion goes without a problem, and I can load and use the font, but for some reason, all the characters look as though they have a space inserted between them. So, inst

RE: [PHP] Writing to files

2002-02-27 Thread Warren Vail
Not sure I understand how you concluded that web server should not create files, it certainly should not be able to create files on client machines without permission of user (which it cannot do). Users should not be able to upload files to the server without the permission of the web application

[PHP] RE: Sessions and switching between php and htm documents

2002-02-27 Thread Tim Ward
I haven't experienced this myself, but I'd have thought that if you're propagating the session via the URL rather than a cookie then it won't get added if the page isn't parsed. If it's not passed on just once it's lost. Tim Ward Internet chess www.chessish.com

RE: [PHP] mysql php - while loops

2002-02-27 Thread Stewart G.
After the loop has finished executing add another line if ($i % $cols != $cols-1) { print ""; } Otherwise once the loop has finished if not EXACLTY $i % $cols == $cols-1 then there would be no after the last row which could cause display problems in the user agent (other than the fact that it

Re: [PHP] Unable to display images on browser

2002-02-27 Thread Stewart G.
try using gd if you have >= 1.8.3 then you will have to use ImagePng() and Content-type: image/png instead of ImageGif() to export the image. header ("Content-type: image/gif"); $im = ImageCreateFromString ($fileContent); ImageGif ($im); =S. On Tue, 26 Feb 2002, Narvaez, Teresa wrote: > Hello

Re: [PHP] "cool" PHP sites

2002-02-27 Thread Batara Kesuma
On Tue, 26 Feb 2002 10:07:55 -0900 "Chris Lott" <[EMAIL PROTECTED]> wrote: > It strikes me that my students really don't have a good grasp of what > PHP is capable of doing, since they are getting bogged down in learning > the minutiae of the language itself. So (quickly if possible-- I'd like >

Re: [PHP] Help me

2002-02-27 Thread Michele Salerno
- Original Message - From: "hugh danaher" <[EMAIL PROTECTED]> To: "Michele Salerno" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 10:38 PM Subject: Re: [PHP] Help me > Michele, > Please show some lines of code in your next message so we can better > und

RE: [PHP] Crontab

2002-02-27 Thread Stewart G.
This is why I love lists. I was going to have to do something similar this week and was planning on using perl, never thought about running php from the command line. Thanks, =S. On Wed, 27 Feb 2002, Sven Jacobs wrote: > I've use a script that I put in my cron.weekly to execute a php script

[PHP] RE: Help with showing tables in DB

2002-02-27 Thread Tim Ward
Have you tried any diagnostic to find out what fields are being returned by the query, something like: If ($result = mysql_query("show tables")) { while ($row = mysql_fetch_array($result)) { foreach($row as $fieldname=>$value) echo("$fieldname=>$value"); } } I think you'll find the fi

[PHP] FW: C++ compilation ...

2002-02-27 Thread Stephane RAGUIDEAU
Hy ! Is it possible to compile personnal module in C++ ?? When I use the g++ (C++) compiler, the following message appear in my PHP page : Invalid library (maybe not a PHP library) I need to compile my module with a C++ compiler because it use a C++ library (OmniORB). Help me :o) Thanks

Re: [PHP] php on PWS win Me

2002-02-27 Thread Michele Salerno
- Original Message - From: "Sanj" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 8:54 PM Subject: [PHP] php on PWS win Me > Hi, > > Currently running Win Me with pws, want to run php purely for testing. > > Have just installed apace http://127.0.0.1 but need

RE: [PHP] Unable to display images on browser

2002-02-27 Thread joakim . andersson
Well, you probably need to do something like this: file1.php (where you want to display an image) end file1 getimage.php (the ---end getimage.php Good Luck /Joakim > -Original Message- > From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]] > Sent: Wednesd

[PHP] Correct header to force name to store of download file with IE and Netscape

2002-02-27 Thread Krzysztof Kocjan
Hi I have big problem with headers which I send to www browser: IE 5.5 and Netscape 6.2. On my web site I have PHP script to download huge text files to client side. The text file is compressed by gzip program before it will be downloaded to client. My problem is how to send to www browser co

Re: [PHP] "cool" PHP sites

2002-02-27 Thread Michael Egan
Chris, This might be a bit late but a couple of graphioc designers I work with use a forum on Flash at http://www.were-here.com. The forums themselves, judging from the filenames, are done with PHP and are quite attractive in terms of presentation and are clearly well used. Hope this is of use,

[PHP] Test - don't read just delete

2002-02-27 Thread BUDINSCHI Cosmin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Changed localhost?

2002-02-27 Thread Anthony Rodriguez
All of a sudden Apache is nor running correctly under Windows 98. It appears that somehow localhost was changed from 127.0.0.1 to something else. Does the fact that I now have a 24/7cable connection to the Net cause the problem? Thanks! Anthony Rodriguez ([EMAIL PROTECTED]) -- PHP General

Re: [PHP] "cool" PHP sites

2002-02-27 Thread Matt
http://www.superpages.com/ -- the US national telephone directory from Verizon -- appears to use php. The extension is .phtml ... - Original Message - From: "Chris Lott" <[EMAIL PROTECTED]> > minutiae of the language itself. So (quickly if possible-- I'd like to demo > some sites tonight

[PHP] how to get the calender

2002-02-27 Thread Balaji Ankem
Hi, I want to get the calender displayed beside the input box. If user select a particular date from the calender after selection it should display the date in the input box along with the time stamp. Any help will be appreciated. Thanks in advance. -Balaji- **Disclaim

[PHP] maximum string length

2002-02-27 Thread Kancha .
What is the maximum number of characters a variable of type string can hold ?? Is there a restriction ?? $x = "adfafasfadfaf " what is the max number of characters $x can hold ?? __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every oc

[PHP] Sending mail using a password

2002-02-27 Thread Svavar Lúthersson
Greetings, My SMTP server requests I use a password for every time I send(not IP based). How is it possible to let PHP to use password authentication when mail is sent. Thank you, Svavar Luthersson

RE: [PHP] RE: Sessions and switching between php and htm documents

2002-02-27 Thread Dave
Not passing via URL currently... using track_vars Dave >-Original Message- >From: Tim Ward [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 27, 2002 4:16 AM >To: [EMAIL PROTECTED]; Dave >Subject: [PHP] RE: Sessions and switching between php and htm documents > > >I haven't experien

RE: [PHP] Php-gtk

2002-02-27 Thread Hunter, Ray
Try the php-gtk list. [EMAIL PROTECTED] I use this list all the time and they are great at answering questions... Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 7:38 PM To: [EMAIL PRO

RE: [PHP] SQL and PHP (socket vs TCP)

2002-02-27 Thread Hunter, Ray
What exactly are your trying to do. TCP connections use sockets to connect. Sockets are how you connect... Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Uros Gruber [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 1:08 AM To: [EMAIL PROTECTED]

[PHP] compiling with all options

2002-02-27 Thread Henning Sprang
hy all, is there an easy way to compile php with all possible extension and feature options, as far as they don't crash when used together, and, even better as far as the libs are available on the system? tia, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Php-gtk

2002-02-27 Thread Henning Sprang
hy leif Leif K-Brooks wrote: > I read the tutorial for it on the php-gtk site, but I didn't see a thing > about how to run it? > > this is not the list to discuss this, please subscribe to php-gtk-general. btw, afaik in the "introduction" part of the manual installation and tunning are de

RE: [PHP] Sessions and switching between php and htm documents

2002-02-27 Thread Dave
tested the $HTTP_SESSION_VARS prior to sending, set just fine. changed the next page to php and tested for the session var... nothing. [in login.php] [in successlogin.php] if I check session_id() - it is the same in both pages. Variables just aren't getting stored/retrieved. ideas? as an

[PHP] load extern module

2002-02-27 Thread Olga Tonkonog
Hi, all! I try load big extern library. How can I do it : compile with PHP-libraries or at runtime? What I need to do? Olga, olga tonkonog entwicklung / development caatoosee search technology gmbh gropiusstr. 9 d - 31137 hildesheim fon +49 (0) 5121-99866 16 fax +49 (0) 5121-99866 01 mailt

[PHP] Security Patch 4.0.6

2002-02-27 Thread TD - Sales International Holland B . V .
Hey there I installed the diff patch for 4.0.6 on my source and recompiled it. How can I be sure the patch has been installed correctly? Anyone that has an exploit or something I can test against it to see if the hole is closed? Regards -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Sessions not working between documents (was: Sessions and switching between php and htm documents)

2002-02-27 Thread Dave
further to this... --enable-track-vars --enable-trans-sid are both set in the build... using mod_php register globals is on >-Original Message- >From: Dave [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 27, 2002 8:47 AM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: RE: [P

Re: [PHP] XML

2002-02-27 Thread S.Murali Krishna
I can't really get you, but I have done similar programs in php/xml I think if I could see the code or if I know the ultimate goal of you, I could able to solve the problem. On Tue, 26 Feb 2002, Tom Holton wrote: > > Hello, > I have come across a strange error when using the XML parsing funct

[PHP] RE: Sessions not working between documents (was: Sessions and switching between php and htm documents)

2002-02-27 Thread Cal Evans
When you check your info page, do sessions automatically start? If not, make sure you do a session_start(); in there somewhere before you start checking things. Not sure why (lost in the annuls of time) but I always manually start/stop my sessions. =C= * * Cal Evans * Journeyman Programmer * Tec

Re: [PHP] Mailing Files

2002-02-27 Thread DL Neil
Sven, > Is it possible to mail files with the mail() commando? > Or can it be done on a other way? You're talking about 'attachments' aren't you? Yes it is! Recommend you visit http://phpguru.org/ and pickup the SMTP and MIME classes there (including sample code which shows how to attach file

[PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT
Hi, I've got a strange HTML problem... When I have a textarea, and put a large text in it, the submit button isn't working if the text is very long, but it is working till a certain amount of characters (didn't check out which amount) I can click as many times as i want on the submit button,

[PHP] I can't find the problem - parsing error

2002-02-27 Thread Pax
I have the following line of code: $this->html=$this_>html + " <-- this line ... "; I get Warning: unexpected character in input '\' (ASCII=92) state=1 And Parse Error in the same line..I am just sitting and looking at that line and can't find the problem..can anyone see the problem? Pau

Re: [PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT
i think you don't understand the problem it's just a textarea, no php has to do with it: when i try to FILL it with tekst (so, in my browser) it is working for a certain amount of characters, but above it, the submit button is clickable, but doesn't take any action... Edward - Origi

[PHP] Custom 404 Page

2002-02-27 Thread J. Anderson Scarbrough
I am running apache and php. I want to create a custom 404 page for my site. I have created a .htaccess file and "ErrorDocument 404 /error.php3" line to it. If someone tries to view www.myserver.com/thispagedoesnotexist.htm the 404 page is displayed without issue. If someone tries to view w

RE: [PHP] I can't find the problem - parsing error

2002-02-27 Thread Sven Jacobs
-Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: mercredi 27 février 2002 16:47 To: [EMAIL PROTECTED] Subject: [PHP] I can't find the problem - parsing error I have the following line of code: $this->html=$this_>html + " <-- this line ... "; I get Warning: unexpe

RE: [PHP] I can't find the problem - parsing error

2002-02-27 Thread Richard Black
Swap round the " and \ before the number 10 ie "\10\" should be \"10\" HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Pax

Re: [PHP] maximum string length

2002-02-27 Thread Bogdan Stancescu
Generally more than you'll ever need :-) About 8 MB by default. Bogdan Kancha . wrote: >What is the maximum number of characters a variable of >type string can hold ?? Is there a restriction ?? > >$x = "adfafasfadfaf " > >what is the max number of characters $x can hold ?? > >

RE: [PHP] textarea

2002-02-27 Thread Cal Evans
I think, what he's trying to say is check to make sure it's not an errant quote and not a string length issue. The same behavior may be caused by an errant quote. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Edward van Bild

[PHP] php mysql_num_rows problem

2002-02-27 Thread Rodrigo Peres
Hi list, I have a class to perform my tasks to bd, among than there's this function function executa($sql="") { if($sql == "") { $this->resultado = 0; $this->numrows = 0; $this->row = -1; } $this->resultado = mysql_query($sql,$this->con

[PHP] unique strings from string column type in mySQL

2002-02-27 Thread Mike Krisher
I have a column in a database with a column type of string that holds catalog numbers. They can be in two formats. 1: 410998 2: 555336-18 The 18 in the dash number represents a length. So there could be multiple entries with the same base, just a different int after the dash. I am experiencing

Re: [PHP] I can't find the problem - parsing error

2002-02-27 Thread Chris Hewitt
Pax, If the backslashes are to escape the double-quotes then the one after "width" is the wrong way around. "\10\" I would expect to be \"10\" Hope this helps. Regards Chris Pax wrote: >I have the following line of code: > > >$this->html=$this_>html + " > > <-- this line > >... > > >"; > >

Re: [PHP] php mysql_num_rows problem

2002-02-27 Thread Pascal Polleunus
with insert, update and delete you must use mysql_affected_rows() - Original Message - From: "Rodrigo Peres" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 4:58 PM Subject: [PHP] php mysql_num_rows problem > Hi list, > > I have a class to perform my

Re: [PHP] php mysql_num_rows problem

2002-02-27 Thread Pascal Polleunus
with insert, update and delete you must use mysql_affected_rows() http://www.php.net/manual/en/function.mysql-affected-rows.php - Original Message - From: "Rodrigo Peres" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 4:58 PM Subject: [PHP] php mysql

Re: [PHP] Sending mail using a password

2002-02-27 Thread DL Neil
Greetings Svavar My SMTP server requests I use a password for every time I send(not IP based). How is it possible to let PHP to use password authentication when mail is sent. =Eureka! I have been looking at this, and made a note to come back to take a look at a 'likely candidate'. Of course,

Re: [PHP] unique strings from string column type in mySQL

2002-02-27 Thread Jason Wong
On Thursday 28 February 2002 00:09, Mike Krisher wrote: > I have a column in a database with a column type of string that holds > catalog numbers. They can be in two formats. > > 1: 410998 > 2: 555336-18 > > The 18 in the dash number represents a length. So there could be multiple > entries with t

Re: [PHP] Sending mail using a password

2002-02-27 Thread R'twick Niceorgaw
I have used phpmailer as my SMTP host also requires authentication. so far working without a problem. -- R'twick Niceorgaw E-Mail: [EMAIL PROTECTED] -- - Original Message - From: "DL

Re: [PHP] textarea

2002-02-27 Thread Jason Wong
On Wednesday 27 February 2002 23:44, Edward van Bilderbeek - Bean IT wrote: > i think you don't understand the problem > > it's just a textarea, no php has to do with it: You said it yourself, so what's this doing on a PHP list :) > > > when i try to FILL it with tekst (so, in my browser) i

Re: [PHP] Changed localhost?

2002-02-27 Thread TV Karthick Kumar
Hi, Did you try http://localhost , instead of 127.0.0.1, or with your machine, if you have changed any, recently. Or else just check if it conflicts with the port(s) if you have PWS also installed on your machine. If you don't get any solutions, alternatively post your query to the

Re: [PHP] maximum string length

2002-02-27 Thread Steven Walker
It may be able to store 8MB, but each line can only hold 1024 characters. I ran into this using a string variable to store the message body of an HTML email. If I did not put a '\n' at the end of each line, I would get random '!' placed through the sent email. Steven J. Walker Walker Effects w

RE: [PHP] maximum string length

2002-02-27 Thread Ford, Mike [LSS]
> -Original Message- > From: Steven Walker [mailto:[EMAIL PROTECTED]] > Sent: 27 February 2002 17:26 > > It may be able to store 8MB, but each line can only hold 1024 > characters. I ran into this using a string variable to store > the message > body of an HTML email. If I did not put

[PHP] PHP on Pocket PC

2002-02-27 Thread Craig Westerman
Is it possible to run PHP on a Pocket PC? Thanks CW

[PHP] Getting the compression rate of a jpeg image

2002-02-27 Thread Andy
Hi there, I am wondering if it is possible to get the compression rate of a jpeg file?! As I did read on php.net creating a jpeg gives you a third parameter with the compression. Default is 75 %. So asuming the user has an image compressed with 50 % and he does upload this picture through my ap

[PHP] help:PDF

2002-02-27 Thread Kumar
Hi All, Slightly difficult question, and I am new to Windows programming. Installed Apache, PHP, Office and Adobe Acrobat 5.0 on Win2000 Professional. By using, $pdf = new COM("pdfdistiller.pdfdistiller.1"); $pdf->FileToPdf($psfile, "", ""); I am able to convert PS to PDF.

[PHP] appending to include_path

2002-02-27 Thread darcy w. christ
hi, i'm hoping to find a way to append to the include_path set in my php.ini file. i've got several virtual servers that each require different include_paths which are defined using the php_admin_value line in my apache conf file. Since the documentation says that include_path is like the UNI

Re: [PHP] maximum string length

2002-02-27 Thread DL Neil
Steven > It may be able to store 8MB, but each line can only hold 1024 > characters. I ran into this using a string variable to store the message > body of an HTML email. If I did not put a '\n' at the end of each line, > I would get random '!' placed through the sent email. Maybe you know more

RE: [PHP] PHP on Pocket PC

2002-02-27 Thread Mike Krisher
I've been looking for a WIN CE port of PHP for some time now and haven't been able to find one, let me know if you find something. There is a version of ASP for the PocketPC though in case you need an alternative. __ Mike Krisher -- PHP General Mailing List (http://ww

Re: [PHP] compiling with all options

2002-02-27 Thread Rasmus Lerdorf
Not really, no. On Wed, 27 Feb 2002, Henning Sprang wrote: > hy all, > is there an easy way to compile php with all possible extension and > feature options, as far as they don't crash when used together, and, > even better as far as the libs are available on the system? > > > tia, > henning > >

Re: [PHP] appending to include_path

2002-02-27 Thread Jason Wong
On Thursday 28 February 2002 01:50, darcy w. christ wrote: > hi, > > i'm hoping to find a way to append to the include_path set in my > php.ini file. i've got several virtual servers that each require > different include_paths which are defined using the php_admin_value line > in my apache conf

[PHP] Unusual Form situation?

2002-02-27 Thread SpyProductions Support Team
I have form I am working with and trying to add some PHP processing to the form's contents. The form is a html template used by a CGI script. So, instead of having a 'submit' button for the form's content, there is a GIF. The CGI apparently reads the GIF as a button to submit the form's conten

RE: [PHP] PHP on Pocket PC

2002-02-27 Thread Cal Evans
I've written webpages that were designed to be used on an iPaq. It had a wireless card in it so the used simply used a browser to hit the server they were stored on. That's one way but does not exactly answer your question. To answer your question, no, there is no port of php to WinCE that I am a

Re: [PHP] appending to include_path

2002-02-27 Thread darcy w. christ
Hi Jason, i think you misunderstood what i was asking. i am doing exactly what you described below. My question is whether there is a way to not overwrite the include_path variable, but instead to append certain paths within my virtual server's setup to the master include_path that is setup i

RE: [PHP] Custom 404 Page

2002-02-27 Thread Jeroen Geusebroek
>I am running apache and php. I want to create a custom 404 page for my >site. I have created a .htaccess file and "ErrorDocument 404 /error.php3" >line to it. >If someone tries to view www.myserver.com/thispagedoesnotexist.htm the 404 >page is displayed without issue. I guess you are usin

[PHP] Oracle & NLS : Access from PHP

2002-02-27 Thread Robert Mena
Hi, I have some script to access an Oracle database using stored procedures. When I access a development database everything runs fine. When I access the production database I get errors PLS-00553: character set name is not recognized ORA-06550. The problem seems to be related to NLS. So in t

Re: [PHP] Unusual Form situation?

2002-02-27 Thread Sam Masiello
I assume that you are doing something like this for your image: Given that, PHP gives you $myimage_x and $myimage_y which correspond to the X and Y coordinates that were clicked on the image from the user. So on the page that your form submits to, you can do the following: if (isset($myimage

[PHP] intranet security

2002-02-27 Thread Scott St. John
I am currently building an intranet security system to handle internal users and the web applications we have. When we are done we will have the ability to add/remove users, control what apps they can and can't see, etc. One thing I would like to be able to do is set up groups and have the

Re: [PHP] is_uploaded_file() emulation?

2002-02-27 Thread Lars Torben Wilson
On Tue, 2002-02-26 at 13:22, Bogdan Stancescu wrote: > Hello all! > > How do I find out if a file was actually uploaded /without/ using > is_uploaded_file()? First: Why not use is_uploaded_file()? Second Second: What version of PHP are you using? Torben > My first though is that I should use

Re: [PHP] appending to include_path

2002-02-27 Thread Jason Wong
On Thursday 28 February 2002 02:30, darcy w. christ wrote: > Hi Jason, > > i think you misunderstood what i was asking. i am doing exactly what > you described below. My question is whether there is a way to not > overwrite the include_path variable, but instead to append certain paths > withi

[PHP] Form Annoyances

2002-02-27 Thread James Taylor
I'm having this one issue that's really bugging me - I have a textarea where you can type in something - After typing it in, it goes to another page asking you to verify, if it's correct, it inserts it into a database. The page that asks you to verify holds the value of the textbox in a hidden

[PHP] Checking for and @ and a .

2002-02-27 Thread Philip J. Newman
I'm trying to make an email field and I would like to check that its valid by checking for an @ and a . can someone point me in the right direction for this. THanks Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012 --

[PHP] Re: php-general Digest 27 Feb 2002 06:51:42 -0000 Issue 1196

2002-02-27 Thread Garth Dahlstrom
Chris, I've done some stuff on my site in PHP... certainly not big name, and maybe or maybe not cool depending on what you're into. http://www.northern.ca/ (my yahoo like directory of links) http://www.northern.ca/projects/phpwidgets/ (an semi-abandoned personalization engine... still coo

[PHP] Question about send email through php script

2002-02-27 Thread Alex Piaz
Hi Folks! I am working on a php system which sends e-mail. The system is ready to go now, but I am asking myself and now all of you what´s the best way to send this emails throug a php script: a) Using the mail() function? b) popen sendmail and writing the messages directly on it? I am think

Re: [PHP] appending to include_path

2002-02-27 Thread darcy w. christ
Jason Wong wrote: > > On Thursday 28 February 2002 02:30, darcy w. christ wrote: > > Hi Jason, > > > > i think you misunderstood what i was asking. i am doing exactly what > > you described below. My question is whether there is a way to not > > overwrite the include_path variable, but instea

[PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Tim Thorburn
Hi, I've sent a few emails thus far regarding adding apostrophe's through a PHP script form into a MySQL database. The responses I received indicated to me that I needed to get my hosting company to activate magic_quotes_gpc. After several days of talking with what seems to be the sole tech s

RE: [PHP] Checking for and @ and a .

2002-02-27 Thread James Hallam
Use a regular expression to test the variable submitted by the form. This is an excerpt from my usual validation script using ereg().. I'm sure you can adapt this for your purposes.. if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z

Re: [PHP] Checking for and @ and a .

2002-02-27 Thread Chris Burnett
On 2/27/02 1:10 PM, "Philip J. Newman" <[EMAIL PROTECTED]> wrote: > I'm trying to make an email field and I would like to check that its valid > by checking for an @ and a . can someone point me in the right direction for > this. > > THanks > > > Philip J. Newman > Philip's Domain - Internet P

Re: [PHP] appending to include_path

2002-02-27 Thread Jason Wong
On Wed, 27 Feb 2002, darcy w. christ wrote: > Jason Wong wrote: > > > > On Thursday 28 February 2002 02:30, darcy w. christ wrote: > > > Hi Jason, > > > > > > i think you misunderstood what i was asking. i am doing exactly what > > > you described below. My question is whether there is a way

RE: [PHP] Unable to display images on browser

2002-02-27 Thread Narvaez, Teresa
Hello, Thanks for your help. This is what I have for file1.php and ddownloadfile.php. What I want is to click on "Donwnload now" link and be able to get the file out of the database and display it on the browser. Thank you in adavance, -Teresa file1.php --- SOME_HTLM_CODE_TO

[PHP] Getting the compression rate of a jpeg image possible?

2002-02-27 Thread Andy
Hi there, I am wondering if it is possible to get the compression rate of a jpeg file?! As I did read on php.net creating a jpeg gives you a third parameter with the compression. Default is 75 %. So asuming the user has an image compressed with 50 % and he does upload this picture through my ap

Re: [PHP] textarea

2002-02-27 Thread hugh danaher
Maybe it's just an issue of using "get" rather than "post". in the form. Hugh For every complex and difficult problem there is always a simple, easy answer--that's wrong. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002

[PHP] How to get the url of frameset

2002-02-27 Thread Patrick Anderson at WFW
Hi, Within a frame I would like to get the url of the frameset and include a different css dependent on the url. I am using apache and php, and first tried with HTTP_REFERER. However, this only works the first time you call the frame and not when you have a link (the referring page will be the fr

Re: [PHP] Form Annoyances

2002-02-27 Thread Steven Walker
James, Look into stripslashes(): http://www.php.net/manual/en/function.stripslashes.php and htmlspecialchars(): http://www.php.net/manual/en/function.htmlspecialchars.php Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Wednesday, February 27, 2002, at

Re: [PHP] Checking for and @ and a .

2002-02-27 Thread Philip J. Newman
Yo thanks this dose work. (o; haven't got to functions in the book yet - Original Message - From: "Chris Burnett" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 8:25 AM Subject: Re: [PHP] Checking for and @ and a .

[PHP] Re: Changed localhost?

2002-02-27 Thread Gary
Anthony Rodriguez wrote: > All of a sudden Apache is nor running correctly under Windows 98. > > It appears that somehow localhost was changed from 127.0.0.1 to > something else. > > Does the fact that I now have a 24/7cable connection to the Net cause > the problem? > > Thanks! > > Anthony

[PHP] Re: Form Annoyances

2002-02-27 Thread Lerp
Hi there :) Use the addslashes() function prior to insertion to database, and stripslashes() on retrieval from db before you display it. //prior to db insertion $myvar = addslashes($myvar); //on retrieval $myvar = stripslashes($myvar); Since you are wanting to display it to the user before in

[PHP] Re: intranet security

2002-02-27 Thread Julio Nobrega Trabalhando
I've done it :-) But be careful. There are dozens of way to implement this. My way is simple, but makes use of too many sql queries I believe. Could have stored everything in one line and grab it at user's login, but anyway My current way seems more logical to follow and update. I have

Fw: [PHP] maximum string length

2002-02-27 Thread DL Neil
Steven (and anyone else interested), I was working on email earlier in the day, and have just cleared my desk of all that 'junk'. Your reading for tonight (1024/1000/997 byte line length limits in email) can be found in the discussion of RFC 2646 available from sunsite.dk (and elsewhere) - one

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Julio Nobrega Trabalhando
Why isn't addslashes() working? You addslashes then you stripslashes() :-) Anyway, how about mysql_escape_string()? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=66

RE: [PHP] Unusual Form situation?

2002-02-27 Thread SpyProductions Support Team
Thanks for the help! Those output variables are pretty interesting - I didn't know that image maps could be built in PHP with relative ease. :) So I learned two things for the price of one. :) -Mike > -Original Message- > From: Sam Masiello [mailto:[EMAIL PROTECTED]] > Sent: We

Re: [PHP] Re: intranet security

2002-02-27 Thread Scott St. John
Thank you. What I am trying to avoid is doing a parsing of the string everytime a user comes in. My thought is to use a user table, a group table and then a permissions table that will allow the user to be a member of more than one group. Thank you, -Scott On Wed, 27 Feb 2002, Julio Nob

[PHP] DB2 from PHP : ODBC ?

2002-02-27 Thread Mario Bittencourt
Hi phpers, Does anybody know if accessing DB2 using ODBC runs ok ? I've never tried that and was wondering if there are any tips/limitations (like configuration settings on both ends...) ? Thanks, Mário -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] objects in sessions.

2002-02-27 Thread Aric Caley
If you register an object as a session variable, do you need to include the objects class *before* start_session()? What if I use serialize() on my object, and then register a variable with the serialized data; then I can start_session(), do some other things, then include the class definition, t

RE: [PHP] DB2 from PHP : ODBC ?

2002-02-27 Thread Andrew Hill
Mário, It runs fine, either using the unified-ODBC or compiling PHP --with-iodbc as per the HOWTO at www.iodbc.org and using real ODBC drivers. As in every case with ODBC, the quality of your experience will be determined by the quality of the ODBC drivers you use. OpenLink provides free, non-e

[PHP] Uploading Files through PHP

2002-02-27 Thread Georgie Casey
I'm trying to let users upload word files through a PHP form but its not working! The script keeps telling me that the file path doesn't exist. HERE'S THE CODE I USE IN THE FORM PAGE: is the code on the

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
I don't see why addslashes wouldn't work, but why not roll your own? $dbStr = preg_replace("/'/", "/\\'/"); I believe that, in MySQL, you can also double-up single quotes to escape them: $dbStr = preg_replace("/'/", "/''/"); HTH Matt On Wed, 27 Feb 2002, Tim Thorburn wrote: > Hi, > > I've se

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
Whoops...helps if I write it legally. $dbStr = preg_replace("/'/", "/\\'/", $dbStr); $dbStr = preg_replace("/'/", "/''/", $dbStr); M On Wed, 27 Feb 2002, Matt Drake wrote: > I don't see why addslashes wouldn't work, but why not roll your own? > > $dbStr = preg_replace("/'/", "/\\'/"); > > I be

[PHP] Did everybody see the security warning at php.net?

2002-02-27 Thread Robert V. Zwink
http://www.php.net/ [27-Feb-2002] Due to a security issue found in all versions of PHP (including 3.x and 4.x), a new version of PHP has been released. Details about the security issue are available here. All users of PHP are strongly encouraged to either upgrade to PHP 4.1.2, or install the patc

  1   2   >