RE: Re[3]: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-24 Thread Marc Boeren
>What is the software default path registry key??? >I found it once before, when I wasn't looking. Now I'm looking I can't find >it. Do a search for programfilesdir or programfilespath in regedit (you'll probably end up in HKEY_LOCAL_MACHINE/software/microsoft/windows/currentversion...) I think

RE: [PHP] Precedence question- cookie value over form value?

2001-04-24 Thread Johnson, Kirk
Depends :) *If* the variables_order directive in php.ini is set to the default EGPCS (Env,Get,Post,Cookie,Server), *and* register_globals in php.ini is on, *and* there is not a session variable with the same name that has already been assigned a value, *then* the value in the cookie will end up i

Re: [PHP] PHP 4.0.5

2001-04-24 Thread Henrik Hansen
Martín Marqués <[EMAIL PROTECTED]> wrote: > I have a CVS installed on one of my machines, but the RCX are not published > on the web site. That's what I'm copmplaining about!! hmm I though they got a tag in the cvs resp, well it might be thats only the releases that get a tag -- Henrik Hans

[PHP] Parse Error for a weirdo!

2001-04-24 Thread ouarz.net
Hiya, I am not a weirdo (at least I think so) ;) Considere this (Notice the line number): === Parse error: parse error in test_the_bug.php on line 1 ===

Re: [PHP] Fatal Errors and Error Handling

2001-04-24 Thread Christian Reiniger
On Tuesday 24 April 2001 17:14, Boget, Chris wrote: > > > > > > if (@foo_bar (42, 4711) == ERROR_CODE) { > > > > > >PrintXMLErrorMessage (); > > > > Well, we both are right. The snippet I suggested (top of this mail) > > *will* work, because the @ operator doesn't mess with the return > > valu

Re: [PHP] create bar chart

2001-04-24 Thread Data Driven Design
You can use some coding and a few 1 pixel gifs to do this also assuming you had made a red one pixel gif and called it reddot.gif that would draw a bar 10 pixels high with a width of $width. With a short script you can make bar graphs with a lot less overhead than using GD. Data Driven Design

RE: [PHP] db to xls

2001-04-24 Thread Andrew Hill
Rahul, Why not just create a pivot table in Excel directly to Oracle? That way you would have a live view of the data. Best regards, Andrew -- Andrew Hill - OpenLink Software Director Technology Evangelism Universal Data Access Integration http://www.openlinks

RE: [PHP] Image Processing in PHP

2001-04-24 Thread Joseph Bannon
> Resizing (and resampling) an image: > > http://www.php.net/manual/en/function.imagecopyresized.php > http://www.php.net/manual/en/function.imagecopyresampled.php Is there anything extra in need to install? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] Functions.

2001-04-24 Thread Matt McClanahan
On Tue, Apr 24, 2001 at 03:06:40PM +0200, Anders Clerwall wrote: > Hi, > Is there a tutorial of some sort on how I add function sets to PHP4? > I've searched the net for more info about this other than what the PHP4.x > manual says, and I saw some reference to freshmeat, but I couldn't find > tha

RE: [PHP] create bar chart

2001-04-24 Thread Grimes, Dean
I am using this class and it works very well. It is however, somewhat confusing to understand. It took me about a weekend to fully understand and use all of the functions. It does come with example PHP scripts that demonstrate its capabilities. You will need TTF support - I am using Freetype 2.0.

[PHP] Mail function

2001-04-24 Thread Krupiński Marcin
Hi everbody ! When I use mail() function it seems not to work what I can find in logs is : Apr 24 16:51:01 xxx sendmail[10688]: f3OEp1U10688: SYSERR(nobody): Cannot create ./dff3OEp1U10688: Permission denied Why it doesn't work ??? System RH7.0 with sendmail regards, Marcin -- PHP General

Re: [PHP] Countdown in PHP

2001-04-24 Thread Phillip Bow
Its easy enough to display a time and have it count down each time someone views the page(get a timestamp and hardcode it in, then grab a current timestamp when someone hits the page and compare the two), but if you want a constant countdown updating constantly then it has to be client side. The

[PHP] Newbie question about Classes

2001-04-24 Thread SED
Hi, I have now been 3-4 months writing PHP-codes and read the PHP manual throughout. But there is one thing I can't figure out properly (I think it's not covered enough in the manual): Classes! When and why would I use it? Is it only to group certain functions or does it have a special function

Re: [PHP] delete browser-cache

2001-04-24 Thread Plutarck
Can't. PHP can't make the browser do much of anything. To clear the cache the user will have to do it themselves. -- Plutarck Should be working on something... ...but forgot what it was. "mohammed oda" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi > ho

[PHP] DOCUMENT_ROOT

2001-04-24 Thread Jordan Elver
Hi, Has any got any idea why $DOCUMENT_ROOT returns /usr/local/htdocs on my home machine but it should return /usr/local/htdocs/sitename or where ever I put it, but on my production machine it return what it should like /usr/local/sitename or whatever? I'm trying to use it to help include file

Re: [PHP] FTP problem..

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 10:10:58AM -0400, Chad Day wrote: > I'm trying to write a script to ftp the contents of one directory structure > onto another server.. I'm having problems recursing the directories, either > it a) doesn't do it or b) gets stuck in a loop. > > Here's the function I'm havin

Re: [PHP] what is better? mysql_connect() or mysql_pconnect()?

2001-04-24 Thread Plutarck
If you are using PHP as CGI, pconnect is no different than connect. If you are using PHP as an Apache module, persistant connections can be of some help. But if your own mysql, I don't reccommend you bother with pconnect. MySQL is extremely efficient at creating connections, unlike databases lik

[PHP] including html pages inside an interface

2001-04-24 Thread Romulo Roberto Pereira
Hello! This is the scenario: (a) I have an interface that will be the main interface with the user (b) I have a mail server (Mirapoint) that has a web interface (c) The web interface for the Mirapoint server is inside frames This is the problem: (a) let's say that I log in as a user from the

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow
http://phpbuilder.com/columns/rod19990601.php3 This is almost a religious debate in itself, but some brief info anyway. ""SED"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have now been 3-4 months writing PHP-codes and read the PHP manual > throu

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-24 Thread Chris Worth
I started with the Pro php programming book. very useful and well written. punt the baby book :) On Mon, 16 Apr 2001 07:53:16 +0200, Martin Skj”ldebrand wrote: >Kath wrote: > >> Professional PHP Programming: >> >http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref= >>

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Plutarck
I had trouble with classes too, but I think the main reason they are tough at first is because since there is so much talk about how hard/cool object oriented programming is, we think things are harder than they are. Think of an object as a jar. Inside the jar are variables and functions (refered

[PHP] insert into

2001-04-24 Thread shawn
Could someone tell me how to actually execute this script please? $hostname = ""; $username = ""; $password = ""; $dbName = ""; $userstable = "booking"; MYSQL_CONNECT($hostname, $username, $password) or die("Unable to connect to database"); @mysql_select_db( "$dbName") or die( "Unable to sele

[PHP] Hosting Service

2001-04-24 Thread Eugene Yi (InfoSpace Inc)
Can anyone please recommend me a cheap hosting service which supports PHP and MySQL on Linux/BSD? I need a place for www.couponvine.com. Also any joint venture proposal is welcomed. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

[PHP] "reffered from" environmental variable?

2001-04-24 Thread Tom Beidler
I'm putting together a shopping cart that will be hit from two different web sites and I would like to track where the order came from by setting a cookie. Is there an environmental variable that I could pull instead of giving each web site a different url to point to the shopping cart? I've trie

[PHP] PATH_INFO and trans-sid and output buffering doesnt work...

2001-04-24 Thread Chris Lee
'. str_replace($o_sid, $n_sid, $output); return $output; } ob_start('fix_session'); ?> I am prepending this file and Im not getting the results I want. the substr_count is there just to show me how many instances its going to replace. well the answer is 11, there are 11 hard coded link.p

Re: [PHP] insert into

2001-04-24 Thread Sterling
H- Here ya go. http://www.php.net/manual/en/function.pg-connect.php This page and the links on the left hand column have everything you'll ever want to know about db connects and sql queries. 8^) -Sterling shawn wrote: > > Could someone tell me how to actually execute this script please? >

Re: [PHP] insert into

2001-04-24 Thread Johannes Janson
""shawn"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 001c01c0cce3$c114c420$5c52a040@admin">news:001c01c0cce3$c114c420$5c52a040@admin... >Could someone tell me how to actually execute this script please? $mysql_query = mysql_query("INSERT INTO $userstable (client, contact, email, address, city, s

Re: [PHP] Looping through variables

2001-04-24 Thread Ashley M. Kirchner
Dan Lowe wrote: > // List of variable names > $var_list = array ( 'var1', 'var2', 'var3', 'var4' ); > > while (list($key,$val) = each($var_list)) { > if ($$val == '') { > $url .= "&".$val."="; > $error = 1; > } else { > $url .= "&".$

[PHP] A simple problem!

2001-04-24 Thread Subodh Gupta
Can You figure out the mistake here...?? In the following code... In the function print_entry which I am calling in some other file, I want each entry to printed in a different colour. $colour = array("808080","80","FF00FF","FF","008080"); $colouroffset=0; function print_entry($row,$p

Re: [PHP] insert into

2001-04-24 Thread Philip Olson
Sterling, it appears Shawn is using MySQL, not PostgreSQL. That said, Shawn, have a look here : http://www.php.net/manual/en/ref.mysql.php You'll see a list of MySQL functions, which are in your snippet below. PHP functions such as : mysql_connect, mysql_select_db, mysql_query, mysql_fetc

RE: [PHP] A simple problem!

2001-04-24 Thread Johnson, Kirk
Since $colour is assigned outside the function, it is in the global scope. Add the line "global $colour;" to the function to use $colour in the function's local scope. Kirk > -Original Message- > From: Subodh Gupta [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 24, 2001 11:54 AM > To:

Re: [PHP] Want to send email in html format

2001-04-24 Thread Romeo Manzur
Hi Geroge, you can do this: Fist: make an php document with all the content of the letter at html ex: $body .= " any title \n"; $body .= " \n"; $body .= "http://your.domain.com/image/image.gif\"; width=\"330\" height=\"38\"> \n"; $body .= " This is a mail at html \n"; $body .= " $body .= " note

Re: [PHP] A simple problem!

2001-04-24 Thread Chris Lee
your variable scope is local not the function function name() { global $variable; } -- Chris Lee [EMAIL PROTECTED] ""Subodh Gupta"" <[EMAIL PROTECTED]> wrote in message 002b01c0cce9$aa670b60$c834d6d2@subodhgu">news:002b01c0cce9$aa670b60$c834d6d2@subodhgu... Can You figure out the mi

Re: [PHP] insert into

2001-04-24 Thread Sterling
H- You are right. My bust. Sorry for the errant info. Although I still highly recommend the site. 8^) -Sterling Philip Olson wrote: > > Sterling, it appears Shawn is using MySQL, not PostgreSQL. That said, > Shawn, have a look here : > > http://www.php.net/manual/en/ref.mysql.php > >

[PHP] link variables space problem in netscape

2001-04-24 Thread Mark Lo
Hi, I am having a problem in link variables in netscape. etc. www.domain.com?xx=1&xxx=2&=mark lo&xxxee=polol if the above link contains space, then everyting is faded after the space, how to over come this problem in netscape. In IE5, it is okay to have space in link variables. Thank

Re: [PHP] A simple problem!

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 11:24:26PM +0530, Subodh Gupta wrote: > Can You figure out the mistake here...?? > > print << \n > color="#$colour[$colouroffset]">$name:\n // The problem is here.. >the value of $colour[$colouroffset] is not align=left>$dbvalue\n

Re: [PHP] PHP accessing the COM port?

2001-04-24 Thread sean
please tell me how to set a file permission on com1 on windows98! thanks, sean ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 9c3urk$k0$[EMAIL PROTECTED]">news:9c3urk$k0$[EMAIL PROTECTED]... > You would need to set the file permission to the file itself, "COM1". > That would be the

RE: [PHP] link variables space problem in netscape

2001-04-24 Thread John Huggins
IE may tolerate it, but you should transpose those spaces into the URL encoded equiv. I think this is %20 for a space, but check your hex table to be sure. Here is your function to do this. http://www.php.net/manual/en/function.urlencode.php IE tolerates a lot of slack programming. Netscape

Re: [PHP] link variables space problem in netscape

2001-04-24 Thread Brian S. Dunworth
At 02:23 AM 4/25/01 +0800, Mark Lo wrote: >Hi, > > I am having a problem in link variables in netscape. etc. >www.domain.com?xx=1&xxx=2&=mark lo&xxxee=polol > >if the above link contains space, then everyting is faded after the space, >how to over come this problem in netscape. In IE5,

Re: [PHP] link variables space problem in netscape

2001-04-24 Thread Dan Lowe
urlencode() will turn a space into "+". If you want the real full codes like "%20" you need to use rawurlencode() instead. http://www.php.net/manual/en/function.rawurlencode.php -dan Previously, John Huggins said: > IE may tolerate it, but you should transpose those spaces into the URL >

Re: [PHP] link variables space problem in netscape

2001-04-24 Thread Richard Crawford
Two words: URL Encode. >> Original Message << On 4/24/01, 11:23:02 AM, "Mark Lo" <[EMAIL PROTECTED]> wrote regarding [PHP] link variables space problem in netscape: > Hi, > I am having a problem in link variables in netscape. etc. > www.domain.com?xx=

RE: [PHP] link variables space problem in netscape

2001-04-24 Thread Boget, Chris
> Two words: > URL Encode. Actually, one word: urlencode(); heheheh Chris

[PHP] Re: [PEAR] PEAR/DB: Random row from result set

2001-04-24 Thread Sebastian Bergmann
"Tomas V.V.Cox" wrote: > $row = $db_result->fetchRow($fetchmode, $row_number_to_fetch); Thanks. > This feature is unsupported in oci8 and ibase :-( As of now, I can live with that. -- sebastian bergmann[EMAIL PROTECTED] h

[PHP] Autoupdate of page

2001-04-24 Thread Martin Skjöldebrand
IS there a standard way of "auto-updateing" the contents of a page after a databas insert or edit? Do a SELECT updates the contents I can update tables I've noticed. Contents in select boxes (as in while ($row = mysql_fetch_row($secquery_res)) { print "$row[0]";

Re: [PHP] "reffered from" environmental variable?

2001-04-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Tom Beidler) wrote: > $parasite = getenv ("REMOTE_HOST"); > setcookie("reffrom",$parasite,time()+86400,"/",".flylikeaneagle.com"); > } > > That seems to set the browsers ip address not the ip address of the server > that's hosting one of th

[PHP] Lines

2001-04-24 Thread Rafael Faria
Hey Guys, it's my first post on this list, and my doubt is... how can i take a file.txt and 1 - know how many lines i have in this text 2 - print line 5 until 10 ? can someone help me? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - ht

Re: [PHP] Lines

2001-04-24 Thread Michael Stearne
If you use the file() function to open up the file, it will put each line of the file into an array. At that point you can say: for($i=5;$i<11;$i++){ print $myFile[$i]; } Michael Rafael Faria wrote: > > > Hey Guys, > it's my first post on this list, and my doubt is... > > how can i take

Re: [PHP] Lines

2001-04-24 Thread Rafael Faria
But how can i put into a var $total the total lines that i have into the file? Rafael >f you use the file() function to open up the file, it will put each line >of the file into an array. At that point you can say: > >for($i=5;$i<11;$i++){ > >print $myFile[$i]; > >} > > >Michael > > >Rafael Fa

RE: [PHP] Lines

2001-04-24 Thread Boget, Chris
> > If you use the file() function to open up the file, it will > > put each line of the file into an array. At that point you > > can say: > But how can i put into a var $total the total lines that i > have into the file? After you've used the file() function as suggestion above, the total n

Re: [PHP] Lines

2001-04-24 Thread Chris Anderson
$Data = file("data.dat"); $Total = count($data); That would get the lines from the file and give $total the number of lines. - Original Message - From: "Rafael Faria" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 24, 2001 4:03 PM Subject: Re: [PHP] Lines > But how can

Re: [PHP] Autoupdate of page

2001-04-24 Thread Chris Anderson
Hitting refresh would do it, you cant do anything client wise because the box is being filled by the server code - Original Message - From: "Martin Skjöldebrand" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 24, 2001 3:53 PM Subject: [PHP] Autoupdate of page > IS there

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Chris Anderson
Good definition. Another thing to note is that variables defined in a class's body can be accessed by all the other class functions without needing arguements to use them. Thats a nice feature - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April

[PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Carlos Fernando Scheidecker Antunes
Hello all! I would like to know if anyone has or know any PHP code to verify if a form entered e-mail address is valid? I would like that things like 4$%^%$@@.com.br could not be sent. I only has to verify the syntax of it, the existance I believe should be harder to verify but if it is possi

[PHP] OK, a little more specific migration issues.

2001-04-24 Thread S.J. Black
Hi, All - Have altered extension of all relevant php3 files to php. Now I have a case of "code bleed" when the php pages are called. The actual page doesn't come up, but its source does. Ideas? clues? suggestions? Thanks in advance, Alpha -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Martin Skjöldebrand
Carlos Fernando Scheidecker Antunes wrote: > Hello all! > > I would like to know if anyone has or know any PHP code to verify if a > form entered e-mail address is valid? > > I would like that things like 4$%^%$@@.com.br could not be sent. I only > has to verify the syntax of it, the existance

Re: [PHP] OK, a little more specific migration issues.

2001-04-24 Thread Chris Anderson
That means the server isnt set to parse files with a .php extension. You'll have to fix the associations in your server settings - Original Message - From: "S.J. Black" <[EMAIL PROTECTED]> To: "PHP mail list" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Apri

RE: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread christopher hamilton
I'd like to add to that, before someone spends a lifetime searching for an answer ... "Solution: There isn't one. You cannot do real-time validation of mail addresses. You must pick from a number of compromises." The section goes on describing how many RFC-valid addresses are undeliverable and

[PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-24 Thread Nicolas Mermet
Hi. This will probably sound simple to all of you but I am hitting my head on a brick wall so far :-). I need to generate a list (sorted by descending time) of different objects referenced in multiple tables. All those objects share a key related to a project. This works splendidly from a sin

[PHP] checking url

2001-04-24 Thread Dmitry
Hello all. Can you tell me, how can I check url address? Also I want to know error, which return. Dmitry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mai

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow
and VB is a POOP language :) (pseudo-Object oriented programming) -- phill > PHP isn't Java; it's not an OO language. > PHP isn't...um...FORTAN; it's not a purely PP language. > > > The world if formed from the void, > like utensils from a block of wood. > The Master knows the utensils, > yet

Re: [PHP] About sessions !!

2001-04-24 Thread Meir kriheli
On Tuesday 24 April 2001 17:00, Hassan Arteaga wrote: > Hi !! > > I just begin with PHP( but is the same as ASP ) and testing some > examples... > > loock at the code: > > Page 1- Session.php > > session_start(); > $myvar = 1; > session_register("myvar"); > ?> > > > > > > New Page 1 > > >

Re: [PHP] checkbox validation

2001-04-24 Thread Keyur Kalaria
Hi jacky, put an empty square bracket after the variable name as follows: assuming that your above statement is in a loop we will have following structure: * etc... now when you submit the form, an array named id[ ] wi

[PHP] .inc location security

2001-04-24 Thread Jason Dulberg
I have about 20 virtual hosts on my server and all of them have shtml and some php files that look to a directory /includes/ which is aliased (in the srm.conf file) over to a main includes directory under the root dir. Alias /includes/ /usr/local/etc/httpd/htdocs/includes/ If I change this alias

Re: [PHP] Want to send email in html format

2001-04-24 Thread Henrik Hansen
"George Alexander" <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on a newsletter module. What I want > to know is that how can we send a newsletter via > email to all the subscribers in html format > with images in the htm too??? read http://www.php.net/mail -- Henrik Hansen --

Re: [PHP] .inc location security

2001-04-24 Thread Rasmus Lerdorf
> I tried to do the deny *.inc but doing so just made it so the browser can't > even include them. So that won't do the trick. Uh, what? Aren't these .inc files included by PHP scripts? PHP has no way of knowing whether you are denying access to them from the httpd.conf level with a proper deny

[PHP] File Transfer over HTTPS

2001-04-24 Thread Michael Conley
I have an Apache Web server running on a Linux server with OpenSSL and all that good stuff. The HTTPS works just fine. Now, many software companies would like to add new features into their software so that their application (written in VB, C and who knows what other languages) can create a tex

Re: [PHP] File Transfer over HTTPS

2001-04-24 Thread Rasmus Lerdorf
> Bottom line- Is there a way that an application (not browser-based) can > transfer a file to my web server over HTTPS without going through the > browser? Can they just open a connection on port 443 and transfer? Where > does the encryption happen? I have this happening easily through a brows

Re: [PHP] Mail function

2001-04-24 Thread Henrik Hansen
Krupiński Marcin <[EMAIL PROTECTED]> wrote: > Hi everbody ! > > When I use mail() function it seems not to work > what I can find in logs is : > Apr 24 16:51:01 xxx sendmail[10688]: f3OEp1U10688: SYSERR(nobody): Cannot > create ./dff3OEp1U10688: Permission denied > > Why it doesn't work

[PHP] Newline in a guestbook

2001-04-24 Thread Jimmy Bäckström
Hey guys! I'm writing a guestbook with mysql. My probblem is that when user enter at long word like blablablablablablablablablablablabla my html-tables gets screwed up. If someone is just fooling around the whole page design can be destroyed. I want to know how I can make sure that no word is l

[PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Sterling
H- I've been able to escape the 'space' character in a variable so it can be safely passed through a URL but I'm having trouble finding anything that works for escaping the '&' ampsand. Here is a snippet of code. $topic = "Aerospace & Commercial Space"; $link_value = str_replace("&", '%26',

[PHP] problem with storing & displaying image in db

2001-04-24 Thread Keyur Kalaria
Hello everybody, I am facing a strange problem while uploading and displaying images in a database table. I have taken blob field to store the images. Images which are less then around 100kb are stored & displayed properly but images which are greater than 100kb are giving problems while displa

Re: [PHP] OK, a little more specific migration issues.

2001-04-24 Thread Henrik Hansen
"S.J. Black" <[EMAIL PROTECTED]> wrote: > Hi, All - > > Have altered extension of all relevant php3 files to php. Now I have a > case of "code bleed" when the php pages are called. The actual page > doesn't come up, but its source does. > Ideas? clues? suggestions? Your webserver probabl

[PHP] Very important.

2001-04-24 Thread Padraic Tynan
Hi. Yesterday an email-virus entitled Emanuel was sent out over this list, and I am not sure by who. It came in the form of Emanuel.exe, and had an icon resembling that of a standalone flash projector file (pink diamond with a white multi-pointed asterisk-type thing in the middle). This virus

[PHP] include file by .htaccess

2001-04-24 Thread Keyur Kalaria
Hello, How can I include any html or php file via .htaccess . I want to include an html file in a site contaning around 1000 pages. I want to add header & footer dynamically on these pages . Is there any way to include header & footer on these pages using .htaccess file. thanks in advance ke

[PHP] IRC CHAT

2001-04-24 Thread Rafael Faria
Hi again, have somewhere that i can find a chat that connect with irc server? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Sterling
H- If you're wanting to do it *before* the user sends the form than javascript is the way to go. http://developer.irt.org/script/email.htm It's the very first FAQ. #122. -Sterling Carlos Fernando Scheidecker Antunes wrote: > > Hello all! > > I would like to know if anyone has or know any

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Alexander Wagner
Sterling wrote: > $topic = "Aerospace & Commercial Space"; > > $link_value = str_replace("&", '%26', $topic); > $link_value = str_replace(' ', '%20', $topic); This should be $link_value = str_replace("&", '%26', $topic); $link_value = str_replace(' ', '%20', $link_value); Anyway, this is this wr

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Szii
Actually, you can check the validity of the SMTP port to semi-validate the domain. The name of the recipient would be harder, but again, through your standard "user does not exist" error messages/codes, you could tell if the domain is valid, but the user is not. Checking to see if it's "syntacti

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Rasmus Lerdorf
> I've been able to escape the 'space' character in a variable so it can > be safely passed through a URL but I'm having trouble finding anything > that works for escaping the '&' ampsand. php.net/urlencode as for your code: > $topic = "Aerospace & Commercial Space"; > > $link_value = str_repla

[PHP] include file by .htaccess

2001-04-24 Thread Keyur Kalaria
Hello, How can I include any html or php file via .htaccess . I want to include an html file in a site contaning around 1000 pages. I want to add header & footer dynamically on these pages . Is there any way to include header & footer on these pages using .htaccess file. thanks in advance ke

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Michael Conley
I have gone through this documentation, but I don't see how to do what I want to do. My goal is to have someone on a Windows machine running a program be able to transfer a file from the client workstation to my web server over HTTPS (but without a browser). With CURL, does the client need to ru

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Sterling
H- Thank you very much! I feel kinda dumb. I think I'll take a break. 6 hours in front of a monitor is too much. 8^) Thanks for the assist. rawurlencode worked great. -Sterling Alexander Wagner wrote: > > Sterling wrote: > > $topic = "Aerospace & Commercial Space"; > > > > $link_value = st

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Rasmus Lerdorf
> My goal is to have someone on a Windows machine running a program be able to > transfer a file from the client workstation to my web server over HTTPS (but > without a browser). With CURL, does the client need to run this app on > their system? Of course, I would like this to be as simple and

Re: [PHP] include file by .htaccess

2001-04-24 Thread Rasmus Lerdorf
> How can I include any html or php file via .htaccess . > > I want to include an html file in a site contaning around 1000 pages. I want > to add header & footer dynamically on these pages . > Is there any way to include header & footer on these pages using .htaccess > file. php_value auto_prep

Re: [PHP] Newline in a guestbook

2001-04-24 Thread Henrik Hansen
Jimmy Bäckström <[EMAIL PROTECTED]> wrote: > I thought about reading the whole message into an array, and then loop through it >and for each word check whether it is larger than x chars, and if so, change it. But >couldn't that be a very memory consuming script if it should do that for every

Re: [PHP] IRC CHAT

2001-04-24 Thread Henrik Hansen
Rafael Faria <[EMAIL PROTECTED]> wrote: > Hi again, > have somewhere that i can find a chat that connect with irc server? http://phpwizard.net/projects/phpIRC/ -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] getting values from apache_lookup_uri()

2001-04-24 Thread windeath
I do $var apache_lookup_uri("file"); echo $var['uri'] ; or anything else, I get nothing, so I do var_dump($var['uri']);//is Null but... var_dump($var);//everything is there? help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

[PHP] problem with storing & displaying image in db

2001-04-24 Thread Keyur Kalaria
Hello everybody, I am facing a strange problem while uploading and displaying images in a database table. I have taken blob field to store the images. Images which are less then around 100kb are stored & displayed properly but images which are greater than 100kb are giving problems while displa

Re: [PHP] getting values from apache_lookup_uri()

2001-04-24 Thread Rasmus Lerdorf
> $var apache_lookup_uri("file"); What is your exact line? It obviously isn't that. Something like: $var = apache_lookup_uri("/path/file.html"); should work just fine. You need to pass this function a URI. A URI being the part of a URL after the hostname but including the leading / -Rasm

[PHP] Globalness of variables? Functions & subs

2001-04-24 Thread Dexter
Hi PHPers, I noticed that you have to use keyword "global" in front of globla var.- (one declared at the top of a script outside any functions ) in order to access it inside a function. So merely designating a var. global is a little more involved than say Perl or other languages. You actual

Re: [PHP] Globalness of variables? Functions & subs

2001-04-24 Thread Rasmus Lerdorf
> I noticed that you have to use keyword "global" in front of globla > var.- (one declared at the top of a script outside any functions ) in > order to access it inside a function. So merely designating a var. > global is a little more involved than say Perl or other languages. You > actually have

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Michael Conley
If I wanted to use this utility to copy a file from a users (Windows) workstation to my (Linux) webserver, how would I do this? The program on the users workstation will create a file called "info.txt" and place it in c:\wow. I want it to go to my server upload.mydomain.com. How do I get the fi

php-general Digest 24 Apr 2001 22:13:44 -0000 Issue 647

2001-04-24 Thread php-general-digest-help
php-general Digest 24 Apr 2001 22:13:44 - Issue 647 Topics (messages 50041 through 50200): how to install Win2K over Linux machine 50041 by: howe 50042 by: Dominick Vansevenant Re: Fatal Errors and Error Handling 50043 by: Geir Eivind Mork 50054 by: Christia

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Rasmus Lerdorf
> If I wanted to use this utility to copy a file from a users (Windows) > workstation to my (Linux) webserver, how would I do this? The program on > the users workstation will create a file called "info.txt" and place it in > c:\wow. I want it to go to my server upload.mydomain.com. How do I ge

[PHP] ereg_replace

2001-04-24 Thread Wade
I am attempting to do an ereg_replace(), but the charachter I want to replace is a \. Any Ideas how I make the following work? $F_name = ereg_replace ("\", "", $acc_fname); echo $F_name; Thanks, Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP] ereg_replace

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 06:21:20PM -0400, Wade wrote: > I am attempting to do an ereg_replace(), but the charachter I want to > replace is a \. Any Ideas how I make the following work? > > $F_name = ereg_replace ("\", "", $acc_fname); > echo $F_name; > > Thanks, > Wade > use \\ -- PHP Ge

Re: [PHP] Very important.

2001-04-24 Thread Plutarck
I responded to the message which included the attachment, and here it is for those who missed it: Goody, a virus. LOL Note: According to the Virus scanner used on php.net (or on the mailing list. whichever) Emanuel.exe is a virus. Here is the URL for information on it: http://vil.mcafee.com/dis

Re: [PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-24 Thread Steve Lawson
Sup, It can be done...but it will be complicated. First off. You should check out the extract() php command. http://php.net/extract This function makes entries in an array into local variables. Let's say your row array has 2 columns, title and duration. You can do: while( $row = mysql_f

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Plutarck
I'll save everyone the trouble and skip ahead to the anti-climactic end to the email validation problem: you can't. You can filter blatantly invalid email addresses (but do not go strictly from the RFC, because some very weird emails end up being valid regardless). You can resolve hosts. You can

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-04-24 Thread Sterling Hughes
sterlingTue Apr 24 15:10:41 2001 EDT Modified files: /php4/ext/curl curl.c Log: Fixed a crash bug. Return the proper amount. Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.41 php4/ext/curl/curl.c:1.42 --- php4/ext/curl/curl.c

<    1   2   3   >