[PHP] Re: Digit Grouping

2002-07-22 Thread Pete James
number_format() Wouter Van Vliet wrote: > > Heey Listers, > > I've got a small question. Does php provide any function to group a number > like 3193576 into 3.193.576 ? Just reads easier when the hits for my > website are being displayed ... Or if php doesn't have a function for it .. > anybod

Re: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s

2002-07-22 Thread Jeremy
That's basically what happens in forking and threading. More "PHP.EXE" processes appear, even on *nix. - Original Message - From: "David Buerer" <[EMAIL PROTECTED]> To: "'Evan Nemerson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 6:35 AM Subject: RE: [PHP] Windo

[PHP] Re: Traversing an appendable file

2002-07-22 Thread Richard Lynch
>Is there any way to fseek (or something to the exact same effect) a file >opened with "a" or "a+"? > >I've tried rewinding and fseeking appendable files, but neither work. > >Opening up in "r+" gives me part of the desired result, but if where I want >to write is not at the end, it writes over th

[PHP] Re: Faster: Includes or DB Queries??

2002-07-22 Thread Richard Lynch
>Is there much of a difference in speed or efficiency between INCLUDEing >files in a script or loading data from a database? I'm building a dynamic >menu system for a website and not sure if it would be faster to store button >data in a DB or just do it with Included files. How fast is your hard

[PHP] Re: $HTTP_SERVER_VARS not accessible in Functions

2002-07-22 Thread Richard Lynch
>I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but, >within a custom function() this array appears empty. In the calling script, >however, the $HTTP_SERVER_VARS[] array is defined. > >I thought this was supposed to be "superglobal" and available on every >level? If not, is t

[PHP] Re: Session Tracking

2002-07-22 Thread Richard Lynch
>This may be a pretty naive question. >Do we have to use the key word >session_register("variablename"); >in every single page, in which we plan to use the "variablename"?. Or is it >possible that we register the variablename once, and in the subsequent pages >continue to access it using $variabl

RE: [PHP] Formating datevariables...

2002-07-22 Thread David Buerer
Select TIMESTAMP(date_column) AS mydate Then when you display it use the date function DATE('mdY',mydate) -Original Message- From: Ragnar [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Formating datevariables... I have a col

[PHP] Re: Inline Images ?

2002-07-22 Thread Richard Lynch
>Is there a way to display an image withouth sending the headers first? Not reliably. *SOME* broken browsers will use the apparent "filename" in the URL to decide what kind of document you are sending, even if you *DO* send the headers! Grrr. So you really want your URL to "end" (before any ?) i

[PHP] Re: imagecolortransparent()

2002-07-22 Thread Richard Lynch
>i get php to allocate a colour then make it transparent using >imagecolortransparent() > >instead of turning it transparent it becomes black. > >Is it something i'm doing wrong? can anyone help me? Show us your code. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (

[PHP] Re: multiple search

2002-07-22 Thread Richard Lynch
>My question is what can I do if someone searches for php script for search? > >I would want to use OR in my SQL statment. The problem is how do I write the >query so that it will detect the number of words sent then put enough ORs >and LIKE '%$search[1]% in? The LIKE operator will cheerfully ret

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-22 Thread Richard Lynch
>Well, trying to updrade on Slackware Linux 8.0 and compiling with the GD >(1.8.4) libraries are giving us some headaches. Some of what seems to be >wrong; > >phpinfo() does not show new build times for each compile, not seemingly a >caching problem (we have shut down browsers and then re-opened t

[PHP] Re: Can a form submit to two PHP form processers in succession?

2002-07-22 Thread Richard Lynch
>Hi, > >I'm not sure how to do this but I have a form which I wish to do the following. > >When the uses clicks the "submit button", I wish to perform a check where I >look for a value in a MySQL database. If found, I need >to return an error page telling the user that the value already exists.

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

2002-07-22 Thread Richard Lynch
>On Mon, 22 Jul 2002, Marko Karppinen wrote: > >> PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1 > >Not only did I get to re-write all my apps the past few months because of >the new register_globals default that was imposed by `the php group`... You could have just *CHAN

[PHP] Re: stores / ecommerce

2002-07-22 Thread Richard Lynch
>What are some good e-commerce stores written out there for PHP and mySQL?? I got tired of this question cropping up all the time, years and years ago. Your answer lies here: http://l-i-e.com/compare/ :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www

[PHP] Re: Script executing Telnet Shell Command...

2002-07-22 Thread Richard Lynch
>I am trying to execute a Script running a telnet command >testing through a range of IP connections... >Here goes: > >$str = "123.456.789."; >$count = 0; > >while ($count < 999){ >$runTheScriptCommand... >} >?> > >What I want to stick into the while loop is if connection >

[PHP] Re: MySQL - PHP combined log

2002-07-22 Thread Richard Lynch
>Hi, tried this on mysql list, no luck: > >I want to be able to view a single log that contains the following: > >IP of user : page_name (PHP only): time/date: MySQL query ( 'select * >from xxx' etc.) : error msg from mysql/php if any > >So it's almost a hybrid between apache and mysql with some

[PHP] Re: Problems Retrieving Session Variables on 2nd submit.

2002-07-22 Thread Richard Lynch
>Below is how the decide.php script registers the variables. > >session_start(); > > >if (!$phpsessid) > { > session_register("$employee"); session_register('employee'); Right now, you're registering the variable named something like 'Bill Jones' which isn't even a legal variable name. -- Lik

[PHP] Re: getservbyname

2002-07-22 Thread Richard Lynch
>getservbyname takes in the following arguments: > >getservbyname(string service, string protocol); > >is the parameter service similar to those diefined under >unix's /etc/services file or is there something else >to it? Just based on the docs, I'd have to say you simply have to have a "match" f

[PHP] Re: upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Richard Lynch
>Hi, > >I have been running 4.1.2 for a while with no problems. This morning, I >downloaded 4.2.2, did a configure/make/make install. All seemed to have >gone well. However, it broke all my sites that use PHP. Here is a >description of how it appeared to be broken. This is just an example,

Re: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s

2002-07-22 Thread Richard Lynch
>Yes, that's exactly what I want to do. But HOW do I do it? > >i.e. I'm sitting in my accept connectinos loop in the chat daemon > >While(true) >{ > //waitforenwconnection > $new_connection_id=socket_accept(); > > //got a new connection, go process it > go_do_this_in_a_new_thread($new_connection

[PHP] Re: Comma question

2002-07-22 Thread Richard Lynch
>Tried to check the archive, but it is offline... > >What does the "," and "{}" do in this type of statement? > >Example: echo "{$strName}", htmlspecialchars( $teststr ); The {} makes it *VERY* clear to PHP that $strName is a variable to be "interpolated" into the string. This Programmer has ac

[PHP] Re: php security mailing list ...

2002-07-22 Thread Richard Lynch
>Hi ... > >I want to be warned about php security issues, I couldn't find >an exact match in the mailing list names ... which one do you >recommend me? I believe that the Announce list would have any critical security warnings sent to it. It's also very low-volume. -- Like Music? http://l-i-e

[PHP] Re: [ANNOUNCE] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and4.2.1

2002-07-22 Thread Richard Lynch
>Not being an expert in php..i couldnt understand the vulnerability. >Can someone shed some light here. Very short explanation: Upgrade. Now! Longer one: If your web-site has *ANY* FORM tags on it, and you have PHP ready-and-waiting to process those FORMs, then somebody could manage to create

[PHP] does this mean ....

2002-07-22 Thread Peter
hi all, I'm tring to make a script to prompt for a username & then a password for that user onto the actual machine rather than just a web site... now i've come across this this line in some documentation if ( $File = popen( "$useradd_prog $useradd_name", "r" ) ) { . . . now to my actual ques

Re: [PHP] Formating datevariables...

2002-07-22 Thread Jeremy
Is the timestamp in UNIX format? if yes, try date() http://www.php.net/manual/en/function.date.php if no, try substr() hope that helps :) - Jeremy - Original Message - From: "Ragnar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 7:42 AM Subject: [PHP] Formating

RE: [PHP] Formating datevariables...

2002-07-22 Thread Martin Towell
As Demitrious said, use mysql to do it. But if you want to use php, just use substr(), since all the numbers are there, there's no point converting to unix time, just to convert it back again... unless you're going to do some maths of it -Original Message- From: Demitrious S. Kelly [mail

[PHP] Re: getservbyname

2002-07-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > getservbyname takes in the following arguments: > > getservbyname(string service, string protocol); > > is the parameter service similar to those diefined under > unix's /etc/services file or is there something else > to it? > > Thank

[PHP] Re: Formating datevariables...

2002-07-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I have a column in a mysql table with a timestamp. The value of this column > is for instance: > > 20020722185242 > > How do i change the format on this to "DDMM" (22072002) in php? > > Thanx > > -R You can do it as you get it o

[PHP] Re: does this mean ....

2002-07-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hi all, > > I'm tring to make a script to prompt for a username & then a password = > for that user onto the actual machine rather than just a web site... > > now i've come across this this line in some documentation > > if ( $File =3

RE: [PHP] Re: does this mean ....

2002-07-22 Thread Peter
> -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 23 July 2002 10:41 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: does this mean > > > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > says... > > hi all, > > > > I'm tring to make a script

[PHP] Looked at documentation, should be fine

2002-07-22 Thread Dean Ouellette
I am running this on php 3.0 I have read every document I could find on the web, and cant figure out why this form submission is not working. No errors, just does not sent the e-mail to my account

RE: [PHP] Formating datevariables...

2002-07-22 Thread John Holmes
> I have a column in a mysql table with a timestamp. The value of this > column > is for instance: > > 20020722185242 > > How do i change the format on this to "DDMM" (22072002) in php? SELECT DATE_FORMAT(date_column,'%d%m%Y') AS Formatted_Date FROM your_table There's no need to involve PH

RE: [PHP] Digit Grouping

2002-07-22 Thread John Holmes
> I've got a small question. Does php provide any function to group a number > like 3193576 into 3.193.576 ? Just reads easier when the hits for my > website are being displayed ... Or if php doesn't have a function for it > .. > anybody any good suggestions on how to do it? number_format() ---

[PHP] another problem

2002-07-22 Thread Georgie Casey
well, i solved the last problem on my own but now i need help on my new one :-) how do you convert text to hexadecimal with PHP? -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv Online Film Production Directory *** -- PHP

[PHP] Re: another problem

2002-07-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > well, i solved the last problem on my own but now i need help on my new one > :-) > > how do you convert text to hexadecimal with PHP? > > -- > Regards, > Georgie Casey > [EMAIL PROTECTED] If you are asking what I think you are asking

RE: [PHP] Re: MySQL - PHP combined log

2002-07-22 Thread Dave [Hawk-Systems]
>>I want to be able to view a single log that contains the following: > >http://php.net/error_log > how about this curve... getting PHP to append a line to the apache log. Currently we are exporting via fopen clf formatted logs for file uploads (whose file sizes are not recorded by Apache's l

[PHP] Re: Traversing an appendable file

2002-07-22 Thread Chris Earle
I was thinking it was obvious because otherwise I'd have just been using that and not even posted about the "a/a+". Using "a" works in the way that it is supposed to (it starts at the end), but what I wanted was to use append and then just append to anywhere in the file. Currently to get that do

[PHP] Re: Looked at documentation, should be fine

2002-07-22 Thread Chris Earle
>>$MailToAddress = [EMAIL PROTECTED]; No quotes around the e-mail address. >> $Message .= "\n\n$HTTP_POST_VARS[Footer]"; You left out quotes from "Footer" "Dean Ouellette" <[EMAIL PROTECTED]> wrote in message 00b901c231e6$30300e10$9c89adac@yoda">news:00b901c231e6$30300e10$9c89adac@yoda... > I

Re: [PHP] Re: does this mean ....

2002-07-22 Thread Chris Earle
"r+" allows you to read and write... if that's what you wanted (I think it is). Note that it will write over any data that is behind the location of the file pointer (so write to the end of the file). "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >

Re[2]: [PHP] imagecolortransparent()

2002-07-22 Thread Tom Rogers
Hi, Tuesday, July 23, 2002, 5:16:43 AM, you wrote: N> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message N> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Hello Nick, >> >> Monday, July 22, 2002, 8:47:39 PM, you wrote: >> >> N> i get php to allocate a colour then make it transparent using >> N>

[PHP] Getting current URL

2002-07-22 Thread Sailom
This might be a silly question. Just like the subject, how to get the current URL? I want to make a reload button by making a form and direct user to the current page. Sailom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions 4.2.0and 4.2.1

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Greg Donald wrote: > Not only did I get to re-write all my apps the past few months because of > the new register_globals default that was imposed by `the php group`... You didn't have to. The choice was given to you, for your own good. If you have very disciplined programm

[PHP] How to store an image into a mysql database using php language?

2002-07-22 Thread Rija
I want to store image data into mysql table using BLOB but I don't know how to read it after. To record the image, I doesn't have any problem, but to read the file after and to view the image, I can't do anything the variable show only comment like this: memobin24.bin So how can I do? This wa

RE: [PHP] Getting current URL

2002-07-22 Thread Peter
> -Original Message- > From: Sailom [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 23 July 2002 12:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Getting current URL > > > This might be a silly question. > Just like the subject, how to get the current URL? I want to > make a reload > butto

[PHP] returning form variables to previous page

2002-07-22 Thread dan rossi
hi i am trying to implement error handling in a join page, i would like to try and use one page if possible and then go through in steps like ?step=1 etc , i would like to be able to return form variables to the previous step if there is an error, how could i do this ? -- PHP General Mailing L

Re: [PHP] Getting current URL

2002-07-22 Thread Sailom
Thanks :) "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > -Original Message- > > From: Sailom [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, 23 July 2002 12:53 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Getting current URL > > > > >

Re: [PHP] Pine config

2002-07-22 Thread Miguel Cruz
On Fri, 19 Jul 2002, Michael Hall wrote: > This is sort of off topic, but can anyone tell me why my Pine email client > displays "To: Somebody Or Other" rather than my name "Michael Hall" > whenever I send an email to this list? > > I have attempted to fix this many times but cannot for the lif

[PHP] Using fopen()/fread()/fscanf()

2002-07-22 Thread Jason Soza
I think I'm pretty close to getting this right (maybe!), I've been reading through the manual, but can't seem to work it out. I keep getting this error: [Mon Jul 22 19:03:24 2002] [error] PHP Warning: Supplied argument is not a valid File-Handle resource in index.php on line 66 I'm trying to op

Re: [PHP] number of files in a dir vs. performace

2002-07-22 Thread Jason Wong
On Tuesday 23 July 2002 11:09, eat pasta type fasta wrote: > I'm using mysql to hold references to image files then served on my pages > via PHP. > > I have typically a set of two files: > > thumb and a large original, on occasion there is also a variant inreasing > the set to 3 per image > > curr

Re[2]: [PHP] imagecolortransparent()

2002-07-22 Thread Tom Rogers
Hi, Tuesday, July 23, 2002, 5:16:43 AM, you wrote: N> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message N> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Hello Nick, >> >> Monday, July 22, 2002, 8:47:39 PM, you wrote: >> >> N> i get php to allocate a colour then make it transparent using >> N>

[PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread markbm
I am trying to develop a page that, in certain places, I only want it to display the and s if data is found for a given field. For example, if I only have an image for the first floorplan of a house, I do NOT have an image for the second floorplan of a house, then show the first floorplan imag

[PHP] redirecting after login

2002-07-22 Thread Tim Thorburn
Hi, A site I'm working on requires a login screen where various individuals will log into the site and add information for their various departments. Rather than setup a different script for each department, I was hoping to create one script that would either accept or deny a login based on

RE: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread Martin Towell
what about if (strlen($result["FLRPLAN_3"]) > 0) -Original Message- From: markbm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 2:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with Not displaying HTML if data not found I am trying to develop a page that, in certain pla

Re: [PHP] Newbie getting close, form submission

2002-07-22 Thread Justin French
I pointed this out to you in my original post: you mail() call should be: mail($MailToAddress, $MailSubject, $Message, "From: $MailFromAddress"); not: mail("$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); In other words, I don't think you should wrap plain $vars in dou

RE: [PHP] redirecting after login

2002-07-22 Thread Martin Towell
using header() should work if you don't output anything before it. If you can restructure your code so that you can remove any output until after the header(), then that'd be the way to go. You said the meta refresh didn't work - did you get the syntax right? Since I don't use it much, it's one o

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-22 Thread Justin French
Greg, Your attitude stinks. PHP is a FREE scripting language. Think about the amount of money you are probably charging hosting clients, or charging in web or programming services, or making in site revenue, or whatever way you 'commercially function' through PHP. The register globals 'imposit

Re: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread markbm
When I changed this line, it still gives me the same problem. My db field is a varchar(125)...could that have anything to do with it? Basically, the first time, without data in the field...it works fine and the is not displayed, but when I add data back into the field, nothing changes...its lik

[PHP] Passing Special Characters In url

2002-07-22 Thread Ricky
Hi, I am having problems passing variables in a url specifically when there is an & sign. Any suggestions? Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comma question

2002-07-22 Thread Justin French
on 23/07/02 8:34 AM, B i g D o g ([EMAIL PROTECTED]) wrote: > What does the "," and "{}" do in this type of statement? > > Example: echo "{$strName}", htmlspecialchars( $teststr ); Not sure about the comma, but the {braces} are easy. They help separate the $vars from other stuff in the strin

RE: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread Martin Towell
it's the mysql_result()... try this... echo "'"; mysql_result($result, 0,'FLRPLAN_2') ^--- you're always looking at the first row rf: http://www.php.net/manual/en/function.mysql-result.php -Original Message- From: markbm [mailto:[EMAIL PROTECTED]] Sent: T

RE: [PHP] Passing Special Characters In url

2002-07-22 Thread Martin Towell
I think the proper way of sending an ampersand is to use & -Original Message- From: Ricky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing Special Characters In url Hi, I am having problems passing variables in a url specifica

[PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I think I'm pretty close to getting this right (maybe!), I've been reading > through the manual, but can't seem to work it out. I keep getting this > error: > > [Mon Jul 22 19:03:24 2002] [error] PHP Warning: Supplied argument is not a

Re: [PHP] Passing Special Characters In url

2002-07-22 Thread Justin French
If I want to pass something with &'s in it (commonly a query string i want to use later), I base64_encode() it, then base64_decode() it later when needed. Cheers, Justin on 23/07/02 2:29 PM, Ricky ([EMAIL PROTECTED]) wrote: > Hi, > > I am having problems passing variables in a url specifical

RE: [PHP] redirecting after login

2002-07-22 Thread César Aracena
Hi. Since I haven't used meta tags for years now (don't like them:) I can't help you there, but instead, here's a typical login/redirect PHP page of mine. As you can see, it doesn't matter if the login form is at the bottom of the page, or even if it's after an included header file as long the for

[PHP] number of files in a dir vs. performace

2002-07-22 Thread eat pasta type fasta
I'm using mysql to hold references to image files then served on my pages via PHP. I have typically a set of two files: thumb and a large original, on occasion there is also a variant inreasing the set to 3 per image currently I am holding all of the files in 1 directory since the DB can kee

Re: [PHP] another problem

2002-07-22 Thread Justin French
I would have started with a search on php.net for "hex" which would have showed you two functions, and numerous other links that i'm not going to read. dechex() and hexdec() seem to do it for numbers, and i'm sure you'll find what you need with some more looking. Justin French on 23/07/02 6:0

RE: [PHP] redirecting after login

2002-07-22 Thread César Aracena
I forgot to tell you: This snippet is supposed to go at the very top of the login page (right after the -Original Message- > From: César Aracena [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 23, 2002 1:45 AM > To: 'Tim Thorburn'; [EMAIL PROTECTED] > Subject: RE: [PHP] redirecting after

Re: [PHP] Passing Special Characters In url

2002-07-22 Thread Miguel Cruz
On Tue, 23 Jul 2002, Ricky wrote: > I am having problems passing variables in a url specifically when there is > an & sign. Any suggestions? There is a special function just for you. http://php.net/urlencode miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Comma question

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, B i g D o g wrote: > I figured that the comma was to concatenate but is was wondering if the > parser handled it different. The comma isn't actually for concatenation. The net effect is the same in this case, but a very different thing is happening. echo "hello " , "there

Re: [PHP] number of files in a dir vs. performace

2002-07-22 Thread Michael Sims
On Mon, 22 Jul 2002 23:09:12 -0400, you wrote: >currently I am holding all of the files in 1 directory since the DB can >keep track of them, however their number has grown to over 400 at this >point > >my issue is whether it would be worth it (performance wise) to split them >into thumbs and w

Re: [PHP] Doing an HTML POST using header()

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Francis wrote: > I'm trying to redirect to another website but doing a post to that website > at the same time. (ie POST rather than a GET (eg: header("Location: > www.anothersite.com/index.php?page=22"); ) > > How do you do an HTML post using the header() whats the syntax?

Re: [PHP] Re: HTML E-mails

2002-07-22 Thread Miguel Cruz
On Sun, 21 Jul 2002, Richard Lynch wrote: > Actually, though, when my clients insist on HTML email, I just tell > them: "No. If you want that feature, you'll have to hire somebody else > to do it. I've already explained why." I don't think I've lost a > single client that way -- Every one of t

Re: [PHP] Inline Images ?

2002-07-22 Thread Miguel Cruz
On Sun, 21 Jul 2002, Roberto Ramírez wrote: > Is there a way to display an image withouth sending the headers first? You have to send the header - that's how the browser knows what sort of image it is. > I'm trying to display an inline image... but when I try it just only > send the raw image d

Re: [PHP] redirecting after login

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Tim Thorburn wrote: > A site I'm working on requires a login screen where various individuals > will log into the site and add information for their various > departments. Rather than setup a different script for each department, I > was hoping to create one script that wo

Re: [PHP] Script executing Telnet Shell Command...

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Kondwani Spike Mkandawire wrote: > I am trying to execute a Script running a telnet command > testing through a range of IP connections... > Here goes: > > $str = "123.456.789."; > $count = 0; > > while ($count < 999){ > $runTheScriptCommand... > } >

Re: [PHP] Re: HTML E-mails

2002-07-22 Thread Manuel Lemos
Hello, On 07/23/2002 02:40 AM, Miguel Cruz wrote: > On Sun, 21 Jul 2002, Richard Lynch wrote: > >>Actually, though, when my clients insist on HTML email, I just tell >>them: "No. If you want that feature, you'll have to hire somebody else >>to do it. I've already explained why." I don't thin

[PHP] Re: php security mailing list ...

2002-07-22 Thread Manuel Lemos
Hello, On 07/22/2002 08:07 PM, Dario Bahena Tapia wrote: > Hi ... > > I want to be warned about php security issues, I couldn't find > an exact match in the mailing list names ... which one do you > recommend me? http://www.phpadvisory.com/ is what you are looking for. -- Regards, Manuel Le

[PHP] Re: [ANNOUNCE] PHP Security Advisory: Vulnerability in PHP

2002-07-22 Thread Manuel Lemos
Hello, On 07/22/2002 08:50 PM, Richard Lynch wrote: >>Not being an expert in php..i couldnt understand the vulnerability. >>Can someone shed some light here. > > > Very short explanation: > > Upgrade. > Now! Downgrading can also be a good option. New versions have new bugs, despite that also

Re: [PHP] Re: HTML E-mails

2002-07-22 Thread Miguel Cruz
On Tue, 23 Jul 2002, Manuel Lemos wrote: > On 07/23/2002 02:40 AM, Miguel Cruz wrote: >> On Sun, 21 Jul 2002, Richard Lynch wrote: >>> Actually, though, when my clients insist on HTML email, I just >>> tell them: "No. If you want that feature, you'll have to hire >>> somebody else to do it. I've

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Jason Soza
I'm fairly certain that fopen() is working fine - I can echo "$contents"; and it works great, but it displays the entire page that I fetched. I just want certain parts of the page and unfortunately, fscanf() doesn't seem to think $contents or $filename are valid. Just more info on this, I tried re

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Martin Towell
I'm thinking that you need to remove the: $contents = fread($filename, 100); line. This is probably making the file pointer point to the end of the file. -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 4:17 PM To: David Robley; [EMAIL PRO

Re: [PHP] number of files in a dir vs. performace

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, eat pasta type fasta wrote: > currently I am holding all of the files in 1 directory since the DB can > keep track of them, however their number has grown to over 400 at this > point > > my issue is whether it would be worth it (performance wise) to split them > into thumb

Re: [PHP] Re: MySQL - PHP combined log

2002-07-22 Thread PHPCoder
Thanks, but all these "methods" require modification of the scripts already on the server, and it won't ensure any new script being written by a user on my system to comply. Are you all saying that there are no logs kept by default of errors generated on php/mysql pages at all unless specifical

Re: [PHP] Re: HTML E-mails

2002-07-22 Thread Manuel Lemos
Hello, On 07/23/2002 03:14 AM, Miguel Cruz wrote: >>Anyway, would you object to develop a system for a customer where it is >>needed to send messages to clients that do not oppose to receive >>messages in HTML? If so, why? > > > I have never had a customer say "We have three people, and I per

[PHP] PHP security bug and patch

2002-07-22 Thread Michal Dvoracek
Hello, when applying patch on version 4.2.1 then in phpinfo(); is still PHP Version 4.2.1 but SERVER_SOFTWARE: Apache/1.3.26 (Unix) PHP/4.2.2 mod_ssl/2.8.9 OpenSSL/0.9.6d-beta1 Regards, Michal Dvoracek [EMAIL PROTECTED] Capitol Internet Publisher, Korunovacni 6, 170 00 P

RE: [PHP] PHP security bug and patch

2002-07-22 Thread Peter
restart apache > -Original Message- > From: Michal Dvoracek [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 23 July 2002 4:34 PM > To: Jason Soza > Cc: [EMAIL PROTECTED] > Subject: [PHP] PHP security bug and patch > > > Hello, > > when applying patch on version 4.2.1 then in phpinfo(); is sti

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Jason Soza
Okay, I removed that line and I no longer get the invalid File-Handle resource error, but I also don't get anything useful. Maybe my fscanf() line needs some work? With this new code, if I print_r($headlines); I get 229 of these: Array ( [0] => ) Code: $filename = fopen("http://www.kinyradio.com/

Re: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Jason Wong
On Tuesday 23 July 2002 14:16, Jason Soza wrote: > I'm fairly certain that fopen() is working fine - I can echo "$contents"; > and it works great, but it displays the entire page that I fetched. I just > want certain parts of the page and unfortunately, fscanf() doesn't seem to > think $contents o

Re: [PHP] redirecting after login

2002-07-22 Thread Tim Thorburn
> >Once they've been redirected, can they just bookmark the resulting page >and never have to log in again? Actually, yes - after a couple hours of playing around with the login and finally getting the Meta tags to work for me, I found that if the person were to simply type in the URL of the

RE: [PHP] redirecting after login

2002-07-22 Thread Peter
why don't u do something like if (!username) { you can not access this page } else { //page content } ? that's a quick fix but might be all you need to do.. > -Original Message- > From: Tim Thorburn [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 23 July 2002 5:01 PM > To: [EMAIL PROTECT

[PHP] OO Programming - get practical

2002-07-22 Thread Paul Dionne
Hey all, I want to point something out to aspiring authors. The truth is, that few books and web pages out there show examples using OO methods. For example, the book I use as my primary reference has one chapter on OO PHP and that is it. The rest of the examples in the book are in regular

Re: [PHP] Images of GD Library

2002-07-22 Thread Jason Wong
On Monday 22 July 2002 15:35, Lord Loh. wrote: > 1. How can I store an image in a database.. ? > 2. How can this be now used to create an image ? Search archives for various combinations of: upload, image, mysql > 3. Is there any way I can read an image from a remote site and save it's > mina

Re: [PHP] separated string by comas

2002-07-22 Thread Jason Wong
On Monday 22 July 2002 14:56, [EMAIL PROTECTED] wrote: > I have a string that is separated by spaces like this > $string="test test1 test2 test3"; > how can I make the string so it is separated by comas like this > $string="test,test1,test2,test3"; > I know this is probably simple but I just can't

Re: [PHP] $HTTP_SERVER_VARS not accessible in Functions

2002-07-22 Thread Jason Wong
On Monday 22 July 2002 13:46, Monty wrote: > I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but, > within a custom function() this array appears empty. In the calling script, > however, the $HTTP_SERVER_VARS[] array is defined. > > I thought this was supposed to be "superglob

RE: [PHP] Session Tracking

2002-07-22 Thread John Holmes
> Do we have to use the key word > session_register("variablename"); > in every single page, in which we plan to use the "variablename"?. Or is > it > possible that we register the variablename once, and in the subsequent > pages > continue to access it using $variablename ? You just have to cal

[PHP] imagecolortransparent()

2002-07-22 Thread Nick
i get php to allocate a colour then make it transparent using imagecolortransparent() instead of turning it transparent it becomes black. Is it something i'm doing wrong? can anyone help me? thanx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] xslt_process

2002-07-22 Thread ctan
Hi all, I'm trying to use xslt_process() to transform a variable containing XML data with an xsl file into a result using PHP. Incidentally the XML is from an external source, i.e. a database. However despite following the examples in www.php.net I am unable to do so. The code works out to someth

Re: [PHP] imagecolortransparent()

2002-07-22 Thread Tom Rogers
Hello Nick, Monday, July 22, 2002, 8:47:39 PM, you wrote: N> i get php to allocate a colour then make it transparent using N> imagecolortransparent() N> instead of turning it transparent it becomes black. N> Is it something i'm doing wrong? can anyone help me? N> thanx in advance Post a bit

[PHP] Newbie's question about \n

2002-07-22 Thread KK Lee
Dear ALL, It seems that i have a very silly problem. I can't get the new line escape character to work. the following is my SIMPLE script and corresponding output. PHP script: http://www.w3.org/TR/html4/loose.dtd"; > TEST Output in IE6: this should be printed out: this is a second

RE: [PHP] Newbie's question about \n

2002-07-22 Thread Niklas Lampén
If you check the source of your code you'll see that in source the text is in two lines. \n doesn't work as , so this is about how HTML works, not plain text. Niklas -Original Message- From: KK Lee [mailto:[EMAIL PROTECTED]] Sent: 22. heinäkuuta 2002 14:01 To: [EMAIL PROTECTED] Subject

  1   2   3   >