[PHP] regex question?

2003-02-23 Thread Shawn McKenzie
I'm using the following to try and replace urls in my html output: $newhrefs = preg_replace("/script.php\?(.*)=(.*)&(.*)=(.*)&(.*)=(.*)/", "script-$1-$2-$3-$4-$5-$6.html", $hrefs); This works fine as long as there are exactly 3 var=val pairs... not 1 or 2 or 4 or more... How can I write my expre

RE: [PHP] Which function?

2003-02-23 Thread Dennis Cole
Use this http://www.php.net/manual/en/function.strstr.php -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Which function? Instead of doing this: Which function am I looking for to see

[PHP] Which function?

2003-02-23 Thread John Taylor-Johnston
Instead of doing this: Which function am I looking for to see if $HTTP_HOST contains "compcanlit"? This is not what I am looking for: http://www.php.net/manual/en/function.similar-text.php John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] include

2003-02-23 Thread John Taylor-Johnston
Jason, $_SERVER is outdated now isn't it? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Mysql DB connect failure

2003-02-23 Thread Sunfire
better to use something like mysql_connect("localhost", "test1", "test1")||die(mysql_error()); because you will make smaller code that way killing the script instantly when connection is refused and you will still get the same message: user access denied for '[EMAIL PROTECTED]' using password:(yes)

Re: [PHP] include

2003-02-23 Thread John Taylor-Johnston
Which variable should I use? _SERVER["HTTP_HOST"] _SERVER["SERVER_NAME"] HTTP_HOST Server_NAME Host -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include

2003-02-23 Thread Jason Wong
On Monday 24 February 2003 15:03, John Taylor-Johnston wrote: > Hi, > I have an index.html that I use on different URLs. Because of that, I want > to create a causal reality. I want to > > if ?? = http://foo.ccl.flsh.usherb.ca/ > include('./note.html'); > > if the URL is http://foo.ccl.flsh.ush

[PHP] include

2003-02-23 Thread John Taylor-Johnston
Hi, I have an index.html that I use on different URLs. Because of that, I want to create a causal reality. I want to if ?? = http://foo.ccl.flsh.usherb.ca/ include('./note.html'); if the URL is http://foo.ccl.flsh.usherb.ca/ but not if the URL is http://foo.compcanlit.ca/ What variable can

Re: [PHP] radio buttons

2003-02-23 Thread Sunfire
so if the name of radio is "priority" then it needs not be checked for its value other than it being empty? or could i say put that one of those is defaulted to checked... this is a general post . then do in the php script something like: There was an error in your form submission there

Re: [PHP] table border colors in html/xml

2003-02-23 Thread Mark Virtue
"Sunfire" <[EMAIL PROTECTED]> wrote > sorry.. does anybody know of any mailing list i can join for that then? alt.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] table border colors in html/xml

2003-02-23 Thread Justin French
CSS will help here... however this is definitely NOT a php question... :) Try the NG: comp.infosystems.www.authoring.stylesheets Justin on 24/02/03 5:23 PM, Sunfire ([EMAIL PROTECTED]) wrote: > hi > > my client just told me that he wants his table borders shown on his web page > to be a darker

Re: [PHP] table border colors in html/xml

2003-02-23 Thread Sunfire
sorry.. does anybody know of any mailing list i can join for that then? - Original Message - From: "Dennis Cole" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 1:26 AM Subject: RE: [PHP] table border colors in html/xml > > > T

RE: [PHP] radio buttons

2003-02-23 Thread Dennis Cole
Using a case statment would be the easyest way to tell which one was checked, but technicly one could check all three unless the value of name is changed the same like ... this is a general post this is an urgent post this is a message i need to post because it bothers me -Original Message--

Re: [PHP] table border colors in html/xml

2003-02-23 Thread Jason Wong
On Monday 24 February 2003 14:23, Sunfire wrote: > hi > > my client just told me that he wants his table borders shown on his web > page to be a darker blue than the default color of html web page tables.. > does anybody know how to set the color for the table border color? > > would it be somethi

Re: [PHP] and

2003-02-23 Thread Sunfire
got it will remember that from now on tnx - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 12:24 AM Subject: RE: [PHP] and > The onClick should be onClick=window.location("newpage.php") and this has > nothin

RE: [PHP] table border colors in html/xml

2003-02-23 Thread Dennis Cole
This isn't a PHP thing. And you should use bordercolor="#FF" -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 1:24 AM To: [EMAIL PROTECTED] Subject: [PHP] table border colors in html/xml hi my client just told me that he wants his tabl

[PHP] radio buttons

2003-02-23 Thread Sunfire
oh sorry i forgot in the last message too.. he wants 3 radio buttons on a form .. something to the affect of: this is a general post this is an urgent post this is a message i need to post because it bothers me would this be the right setup for radio buttons and if so what is the best way to tell

[PHP] MS SQL Server problem

2003-02-23 Thread Mark Virtue
This code works perfectly and returns all the data that I expect: mssql_pconnect($hostname, $username, $password) or die("blah blah"); mssql_select_db($dbName) or die("blah blah"); $result = mssql_query("select MyFieldName from MyTable"); But if I change the last line to this: $result = mssql_q

[PHP] table border colors in html/xml

2003-02-23 Thread Sunfire
hi my client just told me that he wants his table borders shown on his web page to be a darker blue than the default color of html web page tables.. does anybody know how to set the color for the table border color? would it be something like: http://www.grisoft.com). Version: 6.0.443 / Virus Da

Re: [PHP] and

2003-02-23 Thread - Edwin
"Sunfire" <[EMAIL PROTECTED]> wrote: > actually yes a link would be rather nice for just going to > another page but my client doesnt want a link he is paying for > a button to be there instead of a link.. so if thats what he > wants and pays for i guess wether i agree with it being there > o

Re: [PHP] and

2003-02-23 Thread Sunfire
actually yes a link would be rather nice for just going to another page but my client doesnt want a link he is paying for a button to be there instead of a link.. so if thats what he wants and pays for i guess wether i agree with it being there or not i put it there for him.. - Original Messa

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Sebastian
this question was answered about 15 times already ;) warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 12:52 AM Subject: Re: [PHP] Is there a way to "

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Sunfire
yes include("filename.php"); 1. its in the php manual 2. you posted the same question twice already i think (unless 1 was a original post and one was a reply) sorry getting a little tired here its almost 1am here and still working for the last 2 days straight with 0% sleep and 100% caffine.. (sor

RE: [PHP] session_start

2003-02-23 Thread Dennis Cole
The manual is right, session_start should always return true. For example using this code: PHP is set to save to C:\tmp which does not exist. But, because session data is not saved at the beginning of the page where the session_start is called, but at the end there the script is through executin

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Sunfire
yes include("filename.php"); - Original Message - From: "Rohin Gosling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 2:59 PM Subject: [PHP] Is there a way to "include" php source files in a php script ? > Is there a way to include a *.php source file from i

Re: [PHP] table width problems

2003-02-23 Thread Sunfire
usually i would do something like: To: <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 10:26 AM Subject: [PHP] table width problems > Hi, > > I've got a table that gets it's contents from a database, the problem is > that even though I specify the width of the table, it is still wider tha

[PHP] Help needed - move_uploaded_file

2003-02-23 Thread Fat Lizard
Hi, I'm trying to use move_uploaded_file, but so far with no success, no matter what I try. The file info. is loaded from a form via POST. Here's the snippet that get's called: : case("add_image"): $res = mysql_query("select allowed_imgs,max_image_size,files_umask from ".$table_prefix."flag

Re: [PHP] and

2003-02-23 Thread Sunfire
tnx! it works now so now i know what i need to do with buttons that are self created now... - Original Message - From: "erich" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 12:11 AM Subject: Re: [PHP] and > i would try > onclick="window.locatio

Re: [PHP] session_start

2003-02-23 Thread - Edwin
Hello "Mr Percival" <[EMAIL PROTECTED]> wrote: > Hi, > > According to the PHP manual session_start always returns true. > > Ther are times (like when there is a disk full error on the > server) that the sesison_start will fail because its unable to > write the session tmp file. > > So should

RE: [PHP] and

2003-02-23 Thread Larry Brown
The onClick should be onClick=window.location("newpage.php") and this has nothing to do with php. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:15 AM To: Sunfire Cc: [EMAIL PROTECT

Re: [PHP] and

2003-02-23 Thread - Edwin
Hello, "Sunfire" <[EMAIL PROTECTED]> wrote: > hi.. > > i have a button on a web page that is supposted to go to > another web page > when either clicked with a mouse or when someone presses enter > on it.. : > > post a prayer > > that is my basic code for the button... my problem is the fact

Re: [PHP] and

2003-02-23 Thread Leif K-Brooks
This has nothing to do with PHP, but a button is used to submit a form. You'll have to create a form with its action set to the page to direct to. Sunfire wrote: hi.. i have a button on a web page that is supposted to go to another web page when either clicked with a mouse or when someone press

Re: [PHP] re-populate array keys

2003-02-23 Thread Justin French
Oooops! Didn't see it, despite looking over and over :) Thx, Justin on 24/02/03 3:42 PM, John W. Holmes ([EMAIL PROTECTED]) wrote: >> Hi, after asort()ing an array, the numeric keys are obviously out of >> order. >> what i'd like to do is reset the keys, starting at zero. >> >> is there a fu

Re: [PHP] re-populate array keys

2003-02-23 Thread - Edwin
Hello, Justin French <[EMAIL PROTECTED]> wrote: > Hi, after asort()ing an array, the numeric keys are obviously > out of order. > what i'd like to do is reset the keys, starting at zero. > > is there a function for this, or do I just walk through the > array with a foreach() and do it manually

[PHP] and

2003-02-23 Thread Sunfire
hi.. i have a button on a web page that is supposted to go to another web page when either clicked with a mouse or when someone presses enter on it.. : post a prayer that is my basic code for the button... my problem is the fact that when you click the button or hit enter on it all it does is re

[PHP] session_start

2003-02-23 Thread Mr Percival
Hi, According to the PHP manual session_start always returns true. Ther are times (like when there is a disk full error on the server) that the sesison_start will fail because its unable to write the session tmp file. So shouldnt session_start be able to return false if the file write fails? O

RE: [PHP] re-populate array keys

2003-02-23 Thread John W. Holmes
> Hi, after asort()ing an array, the numeric keys are obviously out of > order. > what i'd like to do is reset the keys, starting at zero. > > is there a function for this, or do I just walk through the array with a > foreach() and do it manually? Why don't you just use sort()? ---John W. Holmes

Re: [PHP] includes || perl

2003-02-23 Thread Sebastian
ah, I didn' see that. Thanks. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: Leif K-Brooks To: Sebastian Sent: Sunday, February 23, 2003 11:17 PM Subject: Re: [PHP] includes || perl It is. "See also require(), require_o

[PHP] re-populate array keys

2003-02-23 Thread Justin French
Hi, after asort()ing an array, the numeric keys are obviously out of order. what i'd like to do is reset the keys, starting at zero. is there a function for this, or do I just walk through the array with a foreach() and do it manually? Justin -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Flash interaction with PHP

2003-02-23 Thread olinux
never used php and flash but a quick search and you would have found these. http://www.polar-lights.com/fla/url.html http://www.phpbuilder.com/columns/hill20011214.php3 http://www.flashkit.com/tutorials/Dynamic_Content/ --- pei_world <[EMAIL PROTECTED]> wrote: > do you know how to load the varia

Re: [PHP] includes || perl

2003-02-23 Thread Sebastian
Wow, thank you. That is perfect. I never heard of virtual() function, it really should also be located at: http://www.php.net/manual/en/function.include.php since it's a type of include. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From

RE: [PHP] includes || perl

2003-02-23 Thread John W. Holmes
> I have a php script with an include("mydomain.com/script.pl"); it includes > a > bit of perl, but will not include it if I do it using /home/path/ only > full > URL, and when i use the full URL it causes one of my other php includes > not > to function correctly. > > unfortunately, I do not thin

RE: [PHP] Variables not being received from form

2003-02-23 Thread John W. Holmes
The $HTTP_POST_VARS array has no scope within your function. Make it global for this to work or use $_POST. function retrieve_select_listing($link, $workshop, $session, $username) { global $HTTP_POST_VARS; //rest of your code... ---John W. Holmes... PHP Architect - A monthly maga

RE: [PHP] [!NEWBIE ALERT!] fread() question

2003-02-23 Thread John W. Holmes
What was suggested will work fine if the and are on the same line. If someone writes the file such as My Title Then it will not match it. If this is a possibility for you, you'll want to add an 's' modifier onto your pattern. $pattern="/(.*)<\/title>/is"; ---John W. Holmes... PHP Architect

Re: [PHP] server hostname

2003-02-23 Thread Sebastian
$_SERVER['HTTP_HOST'] or $HTTP_SERVER_VARS['HTTP_HOST'] warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: "Michael P. Carel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 9:23 PM Subject: [PHP] server host

RE: [PHP] server hostname

2003-02-23 Thread Matt Honeycutt
This information is quite easy to find in the PHP docs. You are looking for $_SERVER['SERVER_NAME'], which is a predefined variable. ---Matt -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 8:24 PM To: [EMAIL PROTECTED] Subject: [PHP] s

[PHP] server hostname

2003-02-23 Thread Michael P. Carel
hi to all; what function should i used to know the hostname of the server im using where php and apache reside? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [!NEWBIE ALERT!] fread() question

2003-02-23 Thread Levi Zander
worked like a champ! thanks! "Chris Hayes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 00:05 24-2-2003, you wrote: > >trying to parse a URL and write html code to a file, then search the file > >for a string between ... how would I implement the fread > >function below, a

Re: [PHP] Help Please

2003-02-23 Thread Tom Rogers
Hi, Sunday, February 23, 2003, 10:43:36 PM, you wrote: HI> Hi All, HI> i am new to qmail and linux so bear with me.first of all i would like to clearly state my situation here.we have to HI> servers linux+windows.we have qmail installed on linux.wesite is hosted on windows.now i want to create

[PHP] Examples of using mod_auth_external?

2003-02-23 Thread Glenn Rice
This may be a silly question and may be a case of my having missed something in the documentation, but... I cannot seem to find an example of how to use mod_auth_external to verify a username/password with the Unix password file. I have checked that Apache already has this module installed and lo

Re: [PHP] PHP_SELF syntax

2003-02-23 Thread David Otton
On Sun, 23 Feb 2003 18:55:06 -0500, you wrote: >Could someone tell me why this code prompts a parse error. I have tried it >several different way. The statement is called from within a function: > >print "action=\"$_SERVER['PHP_SELF']\">\n"; echo ('' . "\n"); works for me (moved the variable out

Re: [PHP] Re: Variables not being received from form

2003-02-23 Thread Leif K-Brooks
Please, please, PLEASE don't correct code that isn't wrong with code that is! Read http://www.php.net/manual/en/language.types.array.php. To answer the original question, the $HTTP_POST_VARS variable is out of scope in your function. Either use $_POST superglobal array if you're using 4.1.0 o

RE: [PHP] Locality from URL

2003-02-23 Thread David Freeman
> Does anyone know of an intelligent way to establish a user's location > (roughly) from either IP address or some other variable > available to the > server from the browser? (Other than polling the user) Not really - the problems you face are: 1. Processing Delays - if you need to do who

[PHP] Re: Dynamic combobox in Flash with PHP

2003-02-23 Thread pei_world
how to active the variablesLoad("test.php",0) when the flash start to play I mean auto load the variables -- Sincerely your; pei_world ( .::IT::. ) "Michiel Van Heusden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > my experience is > that interaction between flash and php runs

[PHP] Re: Variables not being received from form

2003-02-23 Thread pei_world
cann't see any thing without your form! I think it is misstyping error, check your form variables name, specially upper case or lower case! but try $rank = $HTTP_POST_VARS[rank]; $title_new = $HTTP_POST_VARS[titles]; -- Sincerely your; pei_world ( .::IT::. ) "Peter Gumbrell" <[EMAIL PROTECTED]

[PHP] Variables not being received from form

2003-02-23 Thread Peter Gumbrell
Thanks to those who have helped me with my two other questions this afternoon. In the function below, the update query at the end is inserting empty values into the database. For some reason the lines: $rank = $HTTP_POST_VARS['rank']; $title_new = $HTTP_POST_VARS['titles']; re not picking up the f

[PHP] adding to an array

2003-02-23 Thread rdkurth
Hello , I need a way to read the following text file and add to or delete from or change the data. I have been able to move it all into an array using this code $groups= file("group"); for ($i=0; $i<$number_in_group; $i++){ } But I can not figure out how to search the array and delete from or add

[PHP] Locality from URL

2003-02-23 Thread Mike Mannakee
Does anyone know of an intelligent way to establish a user's location (roughly) from either IP address or some other variable available to the server from the browser? (Other than polling the user) Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] PHP_SELF syntax

2003-02-23 Thread Ernest E Vogelsinger
At 00:55 24.02.2003, Peter Gumbrell said: [snip] >Could someone tell me why this code prompts a parse error. I have tried it >several different way. The statement is called from within a function: > >print "action=\"$_SERVER['PHP_SELF']\">\n"; ---

Re: [PHP] includes || perl

2003-02-23 Thread Sebastian
Thank you, that worked like a charm :) I appreciate it. warm regards, Sebastian - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "Sebastian" <[EMAIL PROTECTED]> Cc: "php list" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 6:37 PM Subject: Re: [PHP] includes

Re: [PHP] Downloading files - Plz hlp

2003-02-23 Thread Ernest E Vogelsinger
At 00:52 24.02.2003, Anthony Rodriguez said: [snip] >In PHP, is there a way to allow the user to download a demo file (e.g.: >sample.exe) to their computer? And, then, automatically return to the Web >site? [snip] A

[PHP] Re: PHP_SELF syntax

2003-02-23 Thread Shawn McKenzie
Works great for me. The error may be from a previous line. What is the error? -Shawn "Peter Gumbrell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Could someone tell me why this code prompts a parse error. I have tried it > several different way. The statement is called from wi

Re: [PHP] simple ereg question

2003-02-23 Thread Robert E. Harvey, M.D.
Ernest E Vogelsinger wrote: At 01:01 24.02.2003, Robert E. Harvey, M.D. said: [snip] if (is_numeric($_POST["gamt_$i"]) or empty($_POST"gamt_$i")) or this: if (is_numeric($_POST["gamt_$i"]) || empty($_POST"gamt_$i")) I get this error message (my if stat

RE: [PHP] Another Logging Question

2003-02-23 Thread Matt Honeycutt
Yeah, I know, but I'd like this counter to provide that functionality for those that don't have access to Apache's logging capabilities (either because their hosts don't allow it or because of the platform they're being hosted on). At some point, I'd like to provide a toggle to have the counter gr

[PHP] PHP_SELF syntax

2003-02-23 Thread Peter Gumbrell
Could someone tell me why this code prompts a parse error. I have tried it several different way. The statement is called from within a function: print "\n"; Many thanks Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple ereg question

2003-02-23 Thread Ernest E Vogelsinger
At 01:01 24.02.2003, Robert E. Harvey, M.D. said: [snip] > if (is_numeric($_POST["gamt_$i"]) or empty($_POST"gamt_$i")) > >or this: > > if (is_numeric($_POST["gamt_$i"]) || empty($_POST"gamt_$i")) > >I get this error message (my if statement is on line 5): >

[PHP] Downloading files - Plz hlp

2003-02-23 Thread Anthony Rodriguez
Hi! In PHP, is there a way to allow the user to download a demo file (e.g.: sample.exe) to their computer? And, then, automatically return to the Web site? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [!NEWBIE ALERT!] fread() question

2003-02-23 Thread Chris Hayes
At 00:05 24-2-2003, you wrote: trying to parse a URL and write html code to a file, then search the file for a string between ... how would I implement the fread function below, and regular expressions to read the specific conent. thx or is there a php function that can return the TITLE of a UR

Re: [PHP] simple ereg question

2003-02-23 Thread Robert E. Harvey, M.D.
John W. Holmes wrote: I'd like to verify input data transferred from a form and make sure it is numeric data or null before my program executes. I am using this syntax, which doesn't work: for ($i=1;$i<=3;$i++) { if (ereg('[0-9]+','$_POST["gamt_$i"]')) { continue; } else { die("Non-nu

RE: [PHP] Another Logging Question

2003-02-23 Thread David Freeman
> Right now, it's logging the client's IP, the page that > they're viewing, > the page that they came from, the time of the visit, and their system > and browser info. Ummm, you do understand that, for Apache at least, all of this information can be made available through it's logging? You a

Re: [PHP] includes || perl

2003-02-23 Thread Ernest E Vogelsinger
At 00:26 24.02.2003, Sebastian said: [snip] >I have a php script with an include("mydomain.com/script.pl"); it includes a >bit of perl, but will not include it if I do it using /home/path/ only full >URL, and when i use the full URL it causes one of my other

[PHP] includes || perl

2003-02-23 Thread Sebastian
I have a php script with an include("mydomain.com/script.pl"); it includes a bit of perl, but will not include it if I do it using /home/path/ only full URL, and when i use the full URL it causes one of my other php includes not to function correctly. unfortunately, I do not think

RE: [PHP] Another Logging Question

2003-02-23 Thread Matt Honeycutt
Right now, it's logging the client's IP, the page that they're viewing, the page that they came from, the time of the visit, and their system and browser info. I think I'm going to go with a database to store the information, but do a mixture of long term and short term storage. I think I'll add

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Ernest E Vogelsinger
At 20:59 23.02.2003, Rohin Gosling said: [snip] >Is there a way to include a *.php source file from inside another php source >file, in a similar fashion to the way you use the "include" directive in C >or C++ ? [snip]

Re: [PHP] University researcher's question

2003-02-23 Thread John Taylor-Johnston
Chris et al. >need to make some very specific questions Ok :). A lot of great research is published, but little is known of how the research is produced technologically speaking. Do you or does anyone know of any discussions of how and why PHP & MySQL were used in the humanities? I would settl

[PHP] [!NEWBIE ALERT!] fread() question

2003-02-23 Thread Levi Zander
trying to parse a URL and write html code to a file, then search the file for a string between ... how would I implement the fread function below, and regular expressions to read the specific conent. thx or is there a php function that can return the TITLE of a URL? -- PHP General Mailin

Re: [PHP] Another Logging Question

2003-02-23 Thread Justin French
on 24/02/03 3:30 AM, Matt Honeycutt ([EMAIL PROTECTED]) wrote: > I'd like for my counter/logger to be fairly scalable, so I'm toying with two > possible implementation routes: what are you logging (what kind of data) > 1. Have the counter dump visitor info to a text file, then run a cron job on

[PHP] Re: Test message - Last one, I promise !

2003-02-23 Thread Rohin Gosling
Excellent ! Now I can actually send messages to this place. Rohin Gosling <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry to bomb the news groups with so many test messages. I'll have this > problem fixed in a jiffy. Please be patient with me. > > -- PHP General Mailing L

[PHP] Test message - Last one, I promise !

2003-02-23 Thread Rohin Gosling
Sorry to bomb the news groups with so many test messages. I'll have this problem fixed in a jiffy. Please be patient with me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update query not working

2003-02-23 Thread Jason Wong
On Monday 24 February 2003 06:56, Peter Gumbrell wrote: > I wonder if anyone can see why the following code is not working. this is > taken from a larger functions, the rest of which seems to be working well: > > print ""; > print ""; > > print ""; > print ""; > if ($_POST['Update']) [snip] print

Re: [PHP] update query not working

2003-02-23 Thread Chris Hayes
print ""; print ""; if ($_POST['Update']) { print "updated!!"; } I do not see the statement "updated!!!" printed, but I cannot see anything wrong with my syntax. Any help would be appreciated. You are looking for a value, where the array is of the form $_POST['form_element_NAME'='form_element

[PHP] MIME help needed please...

2003-02-23 Thread Shawn McKenzie
I got this from the user contributed notes in the php.net manual. It seems to work fine most of the time, but Eudora and Pegasus users either get mangled attachments or no attachments. Can anyone see a problem (most files are zip, but sometimes tar.gz or sit) I tried using Content-Type: applicati

[PHP] update query not working

2003-02-23 Thread Peter Gumbrell
I wonder if anyone can see why the following code is not working. this is taken from a larger functions, the rest of which seems to be working well: print ""; print ""; print ""; print ""; if ($_POST['Update']) { print "updated!!"; $rank = $HTTP_POST_VARS['rank']; $title_new = $HTTP_POST_VARS['ti

[PHP] Flash interaction with PHP

2003-02-23 Thread pei_world
do you know how to load the variables from php automatically when the flash start? I need to stick the loadvariable into a button click action,which is not what i want. thx -- Sincerely your; pei_world ( .::IT::. ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Please help!!

2003-02-23 Thread Larry E. Ullman
I have installed a script named ALUMNI in www.alipso.com/alumni but there is an error somewhere, and I can´t find it... Please post the code here if it's not too long (in your email, not as an attachment) so that we can see it. Please enter to http://alipso.com/alumni/addschool.php3 and try to a

[PHP] Re: rewrite rule help anyone?

2003-02-23 Thread Shawn McKenzie
No takers??? Did I say, Please! Thanks! Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Slightly off topic, but I have some PHP also ;-) > > I am trying to make search engine friendly URLs for a site, but want this to > be fairly dynamic and work with any new

[PHP] Please help!!

2003-02-23 Thread compuba
Hi!! I have installed a script named ALUMNI in www.alipso.com/alumni but there is an error somewhere, and I can´t find it... Please enter to http://alipso.com/alumni/addschool.php3 and try to add a school... you will receive an error... To access through FTP Host address: www.alipso.com User:

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Leif K-Brooks
A quick manual search would have told you. www.php.net/include Rohin Gosling wrote: First up, I sent this same message a few hours ago, but I do not see it in the news group, and neither does it appear in my sent messages folder. Therefore I am presuming that it never made it to the news group.

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Joachim Krebs
include() include_once() require() require_once() Look those functions up in the PHP docs. On 23 February 2003 at 21:32:46, Rohin Gosling wrote: > First up, I sent this same message a few hours ago, but I do not see it in > the news group, and neither does it appear in my sent messag

[PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Rohin Gosling
Is there a way to include a *.php source file from inside another php source file, in a similar fashion to the way you use the "include" directive in C or C++ ? Rohin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Rohin Gosling
First up, I sent this same message a few hours ago, but I do not see it in the news group, and neither does it appear in my sent messages folder. Therefore I am presuming that it never made it to the news group. How ever, if it did get to the news group and I am just unable to see it, then just ign

[PHP] Test message

2003-02-23 Thread Rohin Gosling
Hi everybody Please ignor this message. I am having dificulty geting messages to apear in this news group, so this is just a test message I am sending in a desperate efort to try and work out how to get messages into the news group. Can't work out why my message are no geting in. They apear to sen

[PHP] Re: Test message

2003-02-23 Thread Rohin Gosling
Rohin Gosling <[EMAIL PROTECTED]> wrote in message news:... > Hi everybody > > Please ignor this message. I am having dificulty geting messages to apear in > this news group, so this is just a test message I am sending in a desperate > efort to try and work out how to get messages into the news gr

Re: [PHP] Frustation with data validation

2003-02-23 Thread Joshua Moore-Oliva
any $_POST data is actually string data. Use these functions from a class of mine I plan on making public when I have it thoroughly tested. function isString( $var_name, $var ) { /*Nothing else I can do in this case.. I don't think any other data type can have a length of zero.

[PHP] Frustation with data validation

2003-02-23 Thread Robert E. Harvey, M.D.
First, thanks to all who offered suggestions with my "simple ereg question". I have been unable to get anything to work "properly" in spite of many good suggestions. The problem I want to solve is to ensure that input fields have either an integer number or are blank before the program procee

RE: [PHP] TO JOSH

2003-02-23 Thread Dennis Cole
Please do not send the same message over and over! And use more descriptive titles! Your code is right, It problem only a problem with your form, browser, or a platform specific platform. Please read http://www.thickbook.com/extra/php_email.phtml Dennis -Original Message- From: Luis A [m

[PHP] Re: Image Resize

2003-02-23 Thread Hans Prins
You will need the GD library of image functions for this to work. You can find more information at the following page: http://www.php.net/manual/en/ref.image.php gl "Randum Ian" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi guys, > > Is it possible to resize an uploaded file

[PHP] TO JOSH

2003-02-23 Thread Luis A
what du u think about that ?? look http://www2/LUIS/mai.php3"; method="POST"> mensage *** an this is the php script his name is mai.php3 *** \n". "Reply-To: <$sender

Re: [PHP] why this ?????????

2003-02-23 Thread Chris Hayes
hi Luis, I would like to ask you to _please_ (<--see i used the magic word so you have to do it! :) ) make your mails fitting to the generally accepted formats: 1) Keep the mail title the same if the question is the same. Use the reply button of your program, in such a way that in in replies we c

[PHP] Image Resize

2003-02-23 Thread Randum Ian
Hi guys, Is it possible to resize an uploaded file to 10% of it's size and rename it accordingly? I have the filename for the full-size image as "filename-WWWxHHH.jpg" where WWW is the width and HHH is the height. I want the re-sized image to have the filename "filename-thumb-WWWxHHH.jpg" where

  1   2   >