[PHP] Mail() function problem

2002-07-02 Thread Balaji Ankem
Hi friend, I am using the SMTP server which needs authentication. When I use mail([EMAIL PROTECTED],"Thanks for visiting","From:[EMAIL PROTECTED]"); I am getting server error on the line which is having this mail function. How can I resolve this problem? Php.ini settings =

Re: [PHP] User Enviroment Vars

2002-07-02 Thread Michael Sweeney
Ask them. Seriously, PHP is a server-side platform. The only information about the client that you're possibly going to be able to get is what is passed to you either through the headers of a request (basically just the remote address and some browser information), or what the user tells you thr

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Henry
Thanks, Only one concern. Are there any security issues. And I suppose more importantly, if there are; is there a way to get the php-script to ensure that is is being invoked by my cron deamon. Should I put the page in a directory and use .htaccess to control security. Or can I check the referrer

[PHP] Re: Email error (Was: Hi Jason)

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 00:24, you wrote: > Hi Jason, > when I am trying to send email through email.php > I have got following errors. > > = > Warning: Server Error in c:\www\imac\email.php on line 18 > > Warning: Server Error in c:\www\imac\email.php on line 22 >

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Chris Hewitt
Henry, lynx --dump http://www.domain.com/myfile.php "man lynx" for details. You can run it from cron. HTH Chris Henry wrote: >PS. I cannot compile as a binary etc. This configuration is the confi of the >shared server I am using which is hosted by a third part. > >Henry > > > -- PHP Genera

Re: [PHP] does a form submit from a http page to a https ensuresecure data?

2002-07-02 Thread Michael Sweeney
Your form action parameter has an absolute url specifying an https protocol. When the browser submits the form, it uses the url you specify which is https. So the request is going to be encrypted. You might consider serving the form page from https as well to kind of tighten things up a little, bu

RE: [PHP] Re: Email error (Was: Hi Jason)

2002-07-02 Thread Balaji Ankem
Hi jason, Thankyou for the prompt reply.:-) here is the code. Actually line number 18 and 22 are having mail functions..that why I didn't send source code. Here is the source code.. == just visited your site and submitted the form at www.auburn.edu/helpd

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 01:00 PM, Henry wrote: > Only one concern. Are there any security issues. > And I suppose more > importantly, if there are; is there a way to get the php-script to > ensure > that is is being invoked by my cron deamon. Should I put the page in a > directory and use

Re: [PHP] does a form submit from a http page to a https ensure securedata?

2002-07-02 Thread B.C. Lance
thanks for the insights. :) basically the 2 files are from 2 different domains saving to the same database server. the 2 sites share the same userbase. and when the registration form is submitted to the 2nd site, upon successful registration, it will redirect back to the 1st site and display

Re: [PHP] Mail() function problem

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 00:52, Balaji Ankem wrote: > I am using the SMTP server which needs authentication. I don't think the built-in mail command handles authentication. Google > php smtp auth that should point you in the right direction. -- Jason Wong -> Gremlins Associates -> www.grem

Re: [PHP] $name = "My $row['name']" not longer possible?

2002-07-02 Thread Hugo Wetterberg
It is possible to use arrays within strings, just skip ''. Write $name="My $name[name]"; instead Hugo "Matt Williams" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 02 July 2002 13:49, Uwe Birkenhain wrote: > > > Hi, > > I upgraded to 4.2

[PHP] Emalloc Fatal Error

2002-07-02 Thread Brian Paulson
Well after searching around I have found nothing really but a bunch of questions about this problem. I can run php 4.1.2 just fine with no troubles When I install 4.2.1 I started getting Emalloc() errors on some pages. The pages that seem to cause errors are pages that access the database, but n

RE: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Dan Vande More
Did you remember to compile ODBC into PHP? ./configure --help shows these odbc options: --with-iodbc[=DIR] Include iODBC support. DIR is the iODBC base install directory, defaults to /usr/local. --with-unixODBC[=DIR] Include unixODBC support. DIR is the uni

[PHP] Regular Expression Problem

2002-07-02 Thread Martin Clifford
Hey all! I'm trying to get this darn eregi_replace() to work, but it doesn't produce any results at all. I want it to find all occurances of PHP variables. Here is the regexp $output = eregi_replace("^[\$]{1,2}[a-zA-Z][0-9]+$", "\\1", $var); As you might guess this is for a syntax highlighti

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Henry
I'm having to learning new languages faster than I'm having hot dinners. When I say learn I don't mean become some sort of guru, just enough to get by. If I wanted to do it in perl (and I know this isn't the right newsgroup, but please excuse me), how would I access a mysql server? Besides that,

Re: [PHP] Regular Expression Problem

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 01:40, Martin Clifford wrote: > Hey all! > > I'm trying to get this darn eregi_replace() to work, but it doesn't produce > any results at all. > > I want it to find all occurances of PHP variables. Here is the regexp > > $output = eregi_replace("^[\$]{1,2}[a-zA-Z][0-9]+$

[PHP] Frames JavaScript and PHP

2002-07-02 Thread Beeman
I am trying to get the value of a frames path into a PHP variable. Is it possible to access DOM values from PHP?? If not how do I set a PHP variable to the value of the window.frame.path that I get in javascript? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] find and replace in php

2002-07-02 Thread Henry
Imagine I have a piece of text "Dear [firstname] Thankyou for purchasing [product] on [date]. We're sure you'll be very [expectation]. Ta Very much." Whats the easiest way to replace all the things in square brackets with variables of the same name. i.e. $firstname, $product, $date, $expecta

RE: [PHP] Frames JavaScript and PHP

2002-07-02 Thread Lazor, Ed
PHP is server-side. You're discussing client-side issues. You'll need to find a way of submitting the information to the server and then PHP can process it from there. -Original Message- I am trying to get the value of a frames path into a PHP variable. Is it possible to access DOM valu

[PHP] PHP and Apache

2002-07-02 Thread B i g D o g
Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] exec() function giving me fits

2002-07-02 Thread Jay Blanchard
Yesterday I could do this (all on one line); exec("curl -d \"name=myname&password=mypassword&btnsubmit=submit\" -s -o cdrlist.html https://theserver.com/list.html";); This is the one that worked, not the other one with the variables. Now this one does not work and I don't insert any variables in

Re: [PHP] PHP and Apache

2002-07-02 Thread Michael Sweeney
No. Only you. :-) Platform? Environment? Configuration information? ..mike.. On Tue, 2002-07-02 at 11:01, B i g D o g wrote: > Has anyone had a problem where PHP created to many open files and crashed > apache? > > B i g D o g > > -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Regular Expression Problem

2002-07-02 Thread Martin Clifford
Even this: $output = preg_replace("/^[\$]{1,2}[a-zA-Z][0-9]+$/", "\\1", $var); echo $output; Doesn't work. It just takes whatever you put into $var, then puts it into $output, and outputs it to the screen. I want to change anything resembling a PHP variable, i.e. $var, $$var or &$var to $var

RE: [PHP] find and replace in php

2002-07-02 Thread Lazor, Ed
Nothing will be inserted if the variable is empty, so you could just use $firstname, $product, $date, etc. inside your "letter". The main problem is adding logic to your "letter" to respond appropriately based on the value of different variables. For example: $MailBody = ""; if (empty($firstnam

Re: [PHP] PHP and Apache

2002-07-02 Thread B i g D o g
Sorry bro...doing to many things at once. Apache 1.3.23 Linux 7.2 PHP 4.1.2 Configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-sybase-ct=/sybase --with-mysql' '--enable-exif --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/local/lib --with-

[PHP] upgrading php...

2002-07-02 Thread Phil Schwarzmann
Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth my time and trouble to upgrade to a newer version of PHP? Is this hard to do? Any links to info on how to upgrade ?? Thanks!

Re: [PHP] Regular Expression Problem

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 01:40 PM, Martin Clifford wrote: > I'm trying to get this darn eregi_replace() to work, but it doesn't > produce any results at all. > > I want it to find all occurances of PHP variables. Here is the regexp > > $output = eregi_replace("^[\$]{1,2}[a-zA-Z][0-9]+$",

Re: [PHP] upgrading php...

2002-07-02 Thread Andrew Brampton
Takes the time of the download + 5minutes Download the full version of php... extract the zip file to where php is currently... then copy the new versions of php.ini and php4ts.dll into your c:\windows\ directory... Then make any minor changes you need to to the php.ini and voila all done (don't f

[PHP] Copy of Ed Lazor's response : find and replace in php

2002-07-02 Thread Henry
Nothing will be inserted if the variable is empty, so you could just use $firstname, $product, $date, etc. inside your "letter". The main problem is adding logic to your "letter" to respond appropriately based on the value of different variables. For example: $MailBody = ""; if (empty($firstnam

Re: [PHP] upgrading php...

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 02:10, Phil Schwarzmann wrote: > Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth I was going to say php 4.0.5 has a vulnerability, but then you're using Win98 :) > my time and trouble to upgrade to a newer version of PHP? Before you upgrade

[PHP] Re: Copy of Ed Lazor's response : find and replace in php

2002-07-02 Thread Henry
Thanks Ed, I would like to do that, but I'm not hard coding the letters myself. I'm trying to provide a way for others (to provide the text, who know nothing about the underlying processes) and do the search and replaces on the fly. Henry "Henry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROT

RE: [PHP] upgrading php...

2002-07-02 Thread Lazor, Ed
I think there were security updates in the newer version that you'll benefit from, so it's worth your time. Check the README file for the new download. There are notes on upgrading. -Original Message- Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth my time and tr

Re: [PHP] upgrading php...

2002-07-02 Thread Julie Meloni
PS> Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth PS> my time and trouble to upgrade to a newer version of PHP? yes. It should take about 15 minutes, unless your download connection is slow. :) PS> Is this hard to do? No. Download zip file. Extract contents. Move a

RE: [PHP] Re: Copy of Ed Lazor's response : find and replace in php

2002-07-02 Thread Lazor, Ed
It sounds like you need to use templates. I haven't played with them much so I can't give specifics, but I hope that points you in the right direction =) -Original Message- I would like to do that, but I'm not hard coding the letters myself. I'm trying to provide a way for others (to pro

Re: [PHP] Regular Expression Problem

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 01:59, Martin Clifford wrote: > Even this: > > $output = preg_replace("/^[\$]{1,2}[a-zA-Z][0-9]+$/", "\\1", $var); > echo $output; > > Doesn't work. It just takes whatever you put into $var, then puts it into > $output, and outputs it to the screen. > > I want to change

Re: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Scott Fletcher
php 4.2.1. On the php.net website, the odbc_fetch_array webpage, it stated that it become unavailable with around php 4.1.1. Some of the other odbc functions became unavailable also. "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tu

Re: [PHP] find and replace in php

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 01:52 PM, Henry wrote: > Imagine I have a piece of text > > "Dear [firstname] > > Thankyou for purchasing [product] on [date]. > > We're sure you'll be very [expectation]. > > Ta Very much." > > Whats the easiest way to replace all the things in square brackets with

Re: [PHP] find and replace in php

2002-07-02 Thread Henry
Perfect Thankyou Henry "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Tuesday, July 2, 2002, at 01:52 PM, Henry wrote: > > > Imagine I have a piece of text > > > > "Dear [firstname] > > > > Thankyou for purchasing [product] on [date]. > >

Re: [PHP] $name = "My $row['name']" not longer possible?

2002-07-02 Thread Uwe Birkenhain
Hallo Matt, thank you for the explanation and for the manual-link! But - correct if I'm wrong - that has been possible before! Or not? Uwe Matt Schroebel schrieb in Nachricht <4B08FD7DB3CBD4119F560002A508C453015B3851@hsus3>... >> "Parse error: parse error, unexpected >> T_ENCAPSED_AND_WHITESPA

[PHP] $_SESSION

2002-07-02 Thread Scott Fletcher
Hi Again! I missed part of the past responses to the past posting over the last few days because I had it cleaned from MS-Outlook folder. So, feel free to provide some feedback on the transformation from the script with register global turned on to off. Need some feedback on hiding the $SID fro

RE: [PHP] $name = "My $row['name']" not longer possible?

2002-07-02 Thread Matt Schroebel
> -Original Message- > From: Hugo Wetterberg [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 02, 2002 1:12 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] $name = "My $row['name']" not longer possible? > It is possible to use arrays within strings, just skip ''. > Write > $name="My $

[PHP] Alpha Channel Question

2002-07-02 Thread Anzak Wolf
I'm having a small problem understanding Alpha channels. I thought that the Alpha Channel was the level of transparency but the following code does not seem to work. $DI = 50; $MOD = 127/$DI; ImageAlphaBlending($im, true); for ($x=0; $x<$DI; $x++) { $AL = 127-$MOD*$x; $GLColor=

[PHP] Re: upgrading php...

2002-07-02 Thread Scott Fletcher
You will need to upgrade Apache to 1.3.26 due to security hole. As we all know, Windows is very vulerable to virus like worms, so with the Apache's hole, it make it easier for hte virus to get in. So, better upgrade to 1.3.26 as soon as possible, this is where hte hole had been fixed. FletchSOD

Fw: [PHP] $_SESSION

2002-07-02 Thread Kevin Stone
Unless you have your php.ini file configured differently, simply adding session_start(); at the top of each page will make the session available without having to pass the SID through the URL string. Not that there is anything wrong or insecure by passing the session id through the URL string. -K

[PHP] DBX Functions

2002-07-02 Thread B i g D o g
Has anyone tested the dbx functions with huge results 1+ records returned? How does the performance handle? Thanks, B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ...

2002-07-02 Thread matthew de Jongh
subscribe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test if URL is alive before including a remote JS

2002-07-02 Thread Verdon Vaillancourt
Hi :) Given I have some content embedded on my page by calling a remote JS and occasionally the URL for the remote script is down causing my page to be slow or fail, can I use the following example as a means to test and timeout the remote server and skip the embedded JS, if the remote server isn

Re: [PHP] Test if URL is alive before including a remote JS

2002-07-02 Thread Kevin Stone
Or just fopen() would work fine. -Kevin - Original Message - From: "Verdon Vaillancourt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 1:37 PM Subject: [PHP] Test if URL is alive before including a remote JS > Hi :) > > Given I have some content embedded on my

[PHP] PHP-PDB: Create files for PALM Pilot

2002-07-02 Thread LeTortorec, Jean-Louis
Hi all: I'm trying to write files for PDAs (pdb type) from a PHP script. I've tried to use PHP-PDB from SourceForge but can only give a name to the database, I cannot add any record (pretty bad for a database, no?). Is someone could help with, that'd be fantastic! Either with that library or w

[PHP] FW: Help please!

2002-07-02 Thread Steve Vernon
Hello, I have a PHP script which gets data from a MySQL database and returns an image. So returns the image of id 3 from the database. What I really want is to state width is 100 and height is 100 for example so I do not have to downlaod the entire picture and specify the width and height

[PHP] Have you seen this host?

2002-07-02 Thread Tony Harrison
Hi, if you can find a web host that offers ALL these services, i will eat my hat on my webcam to the whole club: Usenet Newsgroup. at least 200MB space Perl/CGI support (optional) PHP - note: must have GD library installed! MySQL SHOUTcast web radio Reseller account option at least 300MB per mont

Re: [PHP] Test if URL is alive before including a remote JS

2002-07-02 Thread Verdon Vaillancourt
Thanks Kevin, Do I need to include 'fclose ($fp);' in there somewhere in this case? On 7/2/02 3:41 PM, "Kevin Stone" <[EMAIL PROTECTED]> wrote: > Or just fopen() would work fine. > -Kevin > > - Original Message - >> Hi :) >> >> Given I have some content embedded on my page by calling

[PHP] blank

2002-07-02 Thread matthew
subscribe [EMAIL PROTECTED] matthew de Jongh president the spa! internet voice (413) 539-9818 www.the-spa.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Have you seen this host?

2002-07-02 Thread Scott Fletcher
This is a newsgroup for PHP discussion. This is not a PHP discussion, so it is a spam mail. Please refrain from using it. "Tony Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, if you can find a web host that offers ALL these services, i will eat

Re: [PHP] php and apache path...

2002-07-02 Thread Nightshade
Analysis & Solutions wrote: > On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: >> is there a unix like ~/ , to access to root directory of my site > > Does $_SERVER['DOCUMENT_ROOT'] help? > > Whenever you have a question like this, run phpinfo() and see what's there > which produces

[PHP] Re: blank

2002-07-02 Thread Scott Fletcher
This is a PHP newsgroup, it is for PHP discussion. This is not a PHP discussion, so it is a spam mail. Please refrain from using it. "Matthew" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > subscribe [EMAIL PROTECTED] > > matthew de Jongh > president > the s

[PHP] Re: Have you seen this host?

2002-07-02 Thread Tony Harrison
I think calling it spam is a bit harsh! Offtopic maybe, but it is a genuine enquiry to an audience i think can help with the matter. So, I stand by my post! "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is a newsgroup for PHP discussion.

Re: [PHP] Have you seen this host?

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 03:50 PM, Tony Harrison wrote: > Hi, if you can find a web host that offers ALL these services, i will > eat my > hat on my webcam to the whole club: Do you know the origin of that expression? It refers to a period when sugar was sold in paper cones, known as "h

[PHP] synchronizing php functions

2002-07-02 Thread Philip MacIver
Does anyone know anyway to synchronize calls to php functions. I was thinking of writting a hack that uses a lock file on the server put if there is a proper way to do it then I would rather use that. Any suggestions would be good. |---|

Re: [PHP] pdf_show_boxed

2002-07-02 Thread Miguel Cruz
On Tue, 2 Jul 2002, Hugo Wetterberg wrote: > I have a problem with pdf_show_boxed(), it doesn't output anything. > Everything else shows up just fine. Is there something that I have > overlooked in this code? > > pdf_show_boxed ( > $pdf,//Object > $issuedesc, //text > 70,//left > 700

[PHP] upload problems - "unable to open 'none'

2002-07-02 Thread Phil Schwarzmann
Now I'm getting this error each time I upload a file... Warning: Unable to open 'none' for reading: No such file or directory in /home/.../upload3.php on line 7 why is it saying 'none' ??

[PHP] NEVERMIND MY LAST POST ABOUT UPLOAD ERRORS

2002-07-02 Thread Phil Schwarzmann
Sorry about thatI beefed.

Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 09:55:13PM +0200, Nightshade wrote: > > Do you advice me to use > $_SERVER['DOCUMENT_ROOT'] . remaining_path/ > in all my files? I use relative paths in most circumstances. Makes things easier to move between my development machine and the actual web servers. Enjoy, -

RE: [PHP] Re: Have you seen this host?

2002-07-02 Thread Lazor, Ed
Are you not promoting a hosting service? What is your inquiry? -Original Message- I think calling it spam is a bit harsh! Offtopic maybe, but it is a genuine enquiry > > Hi, if you can find a web host that offers ALL these services, i will eat > my > > hat on my webcam to the whole clu

Re: [PHP] Re: Have you seen this host?

2002-07-02 Thread B i g D o g
He is looking for a web hosting company that has what he has listed below... B i g D o g - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> To: "'Tony Harrison'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 2:29 PM Subject: RE: [PHP] Re: Have you seen th

Re: [PHP] Test if URL is alive before including a remote JS

2002-07-02 Thread Kevin Stone
It's good programming ediquite but not required. All fclose does is destroy the handle which will be lost when the script terminates.. same difference. -Kevin - Original Message - From: "Verdon Vaillancourt" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> S

RE: [PHP] FW: Help please!

2002-07-02 Thread Lazor, Ed
Why would it be quicker on the client-side? I would think you'd go with the first option. That way the layout of your web page is maintained while the image downloads. -Original Message- Do not want WHat I want WHich will be a lot quicker on the client side. I cannot m

Re: [PHP] php and apache path...

2002-07-02 Thread Nightshade
Analysis & Solutions wrote: > On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: >> is there a unix like ~/ , to access to root directory of my site > > Does $_SERVER['DOCUMENT_ROOT'] help? > > Whenever you have a question like this, run phpinfo() and see what's there > which produces

RE: [PHP] Alpha Channel Question

2002-07-02 Thread Lazor, Ed
I don't understand alpha channel well enough to explain it, but I know you can find more information over at Adobe.com and by running a Google search for "alpha channel tutorial". -Original Message- The idea is to create a simple glare effect by taking a white circle and making it more t

RE: [PHP] Re: Have you seen this host?

2002-07-02 Thread Lazor, Ed
In that case, go with CWIHosting.com. They are the best I've seen yet. -Original Message- He is looking for a web hosting company that has what he has listed below... This message is intended for the sole use

RE: [PHP] upload problems - "unable to open 'none'

2002-07-02 Thread Lazor, Ed
Send us a copy of your script so that we can help. Odds are that you didn't specify the proper field name in your upload form. -Original Message- Now I'm getting this error each time I upload a file... Warning: Unable to open 'none' for reading: No such file or directory in /home/.../u

RE: [PHP] FW: Help please!

2002-07-02 Thread Steve Vernon
No, I did think of it, but the page may end up with quite a few pics, and I download of a modem... Prefer if server has the load... Steve |-Original Message- |From: Lazor, Ed [mailto:[EMAIL PROTECTED]] |Sent: 02 July 2002 21:34 |To: '[EMAIL PROTECTED]'; [EMAIL

Fw: [PHP] Have you seen this host?

2002-07-02 Thread Kevin Stone
I suppose you haven't looked around much. Those features are fairly typical. Besides what really matters is that the host has what you need at the lowest price. I spend $10/mo for 350MB space, 20GB/mo transfer, PHP, 10 MySQL dbs, anon FTP, CGI/Perl, SSL, SSI, SSH login, unlimited email, and mor

RE: [PHP] FW: Help please!

2002-07-02 Thread Lazor, Ed
What load are you talking about? This is just an issue of telling the web browser the image's dimensions. It's not like the image is being processed to convert it to that image size. -Original Message- No, I did think of it, but the page may end up with quite a few pics, and I

[PHP] RegEx question

2002-07-02 Thread David Busby
List, How can I regex to compare the last three chars of a string to "php"? /B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RegEx question

2002-07-02 Thread Kevin Stone
Actually for a job like this look to substr() to extract the last three chars as a string and compare them in an if() statment. http://www.php.net/manual/en/function.substr.php -Kevin - Original Message - From: "David Busby" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent:

RE: [PHP] RegEx question

2002-07-02 Thread Henning Sittler
$string = 'somethingphp'; $pat = 'php$'; $hasphp = ereg($pat, $string); Henning Sittler www.inscriber.com -Original Message- From: David Busby [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:49 PM To: php-general Subject: [PHP] RegEx question List, How can I regex

Re: [PHP] securing an 'includes' dir

2002-07-02 Thread Richard Lynch
>>> "Justin French" <[EMAIL PROTECTED]> wrote in message >>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 1. Name all included files .inc >>> >>> If you name them *.php then put anything in them inside a function, then >>> when the user browses to that file he/she won't see anything at all.

Re: [PHP] Re: Beginner Sessions Question

2002-07-02 Thread Richard Lynch
>But once I had moved most of my code into object methods and functions >(and therefore out of the global namespace/scope/whatever), I realized >this really didn't matter as much. In fact, for consistency and >neatness, it was better that I use only $sql or $result, since there was >only ever

Re: [PHP] Help: Constants

2002-07-02 Thread Richard Lynch
>Except in a production environment, where you really never want your >users to see PHP error messages that you haven't coded yourself for the >user's benefit. It could reveal just a bit too much about your setup... >even filenames are valuable to maleficants. > >I recommend setting your php.i

[PHP] Dealing with XML charsets

2002-07-02 Thread Peter
Hi, Has anyone any advice as to how to deal with XML documents encoded in windows-1252: a character set that PHP's XML extension won't process? I've got a large number of such documents, and using xml_parse_into_struct() would be the easiest way to handle them - but because of the encoding p

Re: [PHP] RegEx question

2002-07-02 Thread Gurhan Ozen
eregi("php$", $stringtobecompared); See: http://www.php.net/manual/en/ref.regex.php Gurhan - Original Message - From: "David Busby" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 4:49 PM Subject: [PHP] RegEx question > List, > How can I regex t

[PHP] Help - I'm New

2002-07-02 Thread admin
Hi, first let me introduce myself... My name is Kit, and I own the domain below and host sites from off that domain. I'm new to using PHP...and need some help. 1. I have apache for win32 1.3.26 setup on my w2k pro at home, and need to know how to enable PHP in the config. 2. I also have a PHP

Re: [PHP] Help - I'm New

2002-07-02 Thread Tyler Longren
you must be tired from searching the manual all day for your answer. :) Check here: http://www.php.net/manual/en/install.apache.php There's a section on installing with Win32 -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 2 Jul 2002 17:14:32 -0400

Re: [PHP] Help - I'm New

2002-07-02 Thread B i g D o g
I hate to sound like an ass, but the best thing would to really read the php manual @ php.net or buy a PHP programming book... There are many great books out there on PHP that you can get. 1. Check under php.net for installation and configuration 2. Review include(), include_once(), require() a

RE: [PHP] Re: Beginner Sessions Question

2002-07-02 Thread Lazor, Ed
Portability between different databases makes a DB class beneficial. Then again, I stick with MySQL, so I don't bother with the extra overhead either. -Original Message- I just don't see a cost/benefit ratio that makes sense in the DB classes. I know it's a minority opinion, but I've ne

Re: [PHP] Help - I'm New

2002-07-02 Thread Gurhan Ozen
Hi Kit, For your first question, take a look at: http://www.php.net/manual/en/installation.php and click on the windows links.. For your second question, I am really not sure what you are asking.. What exactly do you want to do? Just add a form to a php page? or have a form automatically added by

Re: [PHP] Dealing with XML charsets

2002-07-02 Thread Ray Hunter
Check here: http://www.chilkatsoft.com/ChilkatXml.asp Google search: http://www.google.com/search?sourceid=navclient&q=convert+xml+charset B i g D o g - Original Message - From: "Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 3:05 PM Subject: [PHP] Dea

RE: [PHP] Alpha Channel Question

2002-07-02 Thread Rodolfo Gonzalez
On Tue, 2 Jul 2002, Lazor, Ed wrote: > The idea is to create a simple glare effect by taking a white circle and > making it more transparent around the edges. Though this only produces a > white circle with fuzzy edges. Can anyone tell me what I'm doing wrong and Which browser are you using

Re: [PHP] Dealing with XML charsets

2002-07-02 Thread Clay Loveless
I haven't tried this myself yet, but will soon be facing a similar need. http://www.php.net/iconv That's probably the way I'll start off on tackling this problem ... Grab your XML document, check to see if it's in windows-1252, and if it is, run it through the iconv functions, then parse the XML

Re: [PHP] Re: Beginner Sessions Question

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 04:31 PM, Richard Lynch wrote: > Well, yeah, at that point all you have is SQL and Result, because the > function has no idea what that SQL is about in any given call... > > But, personally, I just don't see the point to having a function/class > do my > database w

Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote: > Analysis & Solutions wrote: > > Document root doensn't solve my problem... > ... snip ... > Any solution? Read and heed what I already said: > > Whenever you have a question like this, run phpinfo() and see what's there > > which pro

[PHP] gc_probability: requests tallied per server or domain?

2002-07-02 Thread Johnson, Kirk
Is the number of requests (used for garbage collection), tallied on a per server basis, or on a per domain basis? What about in a load-balanced environment? TIA Kirk "0, as a number, is just as important as any other number." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] FW: Help please!

2002-07-02 Thread David Freeman
> id 3 from the database. What I really want is to state width > is 100 and height is 100 for example so I do not have to downlaod the entire > picture and specify the width and height as part of the image: > > Do not want > > > WHat I want > > >

[PHP] $_POST into a formatted string, help!

2002-07-02 Thread php
Hello, I need to get _$POST into a string in this form: tree=green&sky=blue&sun=yellow , how can i accomplish this? THanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST into a formatted string, help!

2002-07-02 Thread Kevin Stone
Oh man I hope you don't shoot yourself when you realize how easy this is.. foreach ($_POST as $key => $val) { $str .= "&$key=$val"; } Then just crop the first char off and there you go. -Kevin - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Ju

Re: [PHP] Regular Expression Problem

2002-07-02 Thread Uli B
- don't use /^ .. $/ if you want to replace all occurences. ^ and $ refer to the very start and end of the whole string and make no sense at all - at least in this case. your regexp will not match at all unless $var contains only a single variable and nothing more - either capture (somethin

[PHP] Using PHP to execute system commands on Win 98 w/apache

2002-07-02 Thread Police Trainee
I have been trying to figure out how to execute commands on a win 98 system with php and apache. exec(), system(), and shell_exec() seem to work when i try to execute a command (such as "netstat -n" or "dir") because I can see the ms-dos window open on the system, run the command, and then close.

[PHP] Make strict?

2002-07-02 Thread David Busby
List, How do you make you PHP scripts require explicit variable declaration? Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option Explicit' in VB/VBScript /B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why is PHP unable to access my select list values?

2002-07-02 Thread Reginald Alex Mullin
Gurus, I've created the following file (see HTML/JavaScript code below) which allows end-users to dynamically (on the client-side) move items from one form select list (called "list_managers" to another (called simply "managers[]"). When, however, I attempt to access the end-user created "manage

<    1   2   3   >