[PHP] University researcher's question

2003-02-23 Thread John Taylor-Johnston
[i] How or why do researchers adapt technology to their research projects? Should they adapt their projects to technology? Indeed, how often does the research assistant end up reinventing the wheel? [/i] I know most of you are E-Commerce oriented, but I would appreciate your feedback. I use

[PHP] Re: Permission Denied

2003-02-23 Thread John Taylor-Johnston
Stephen, It seems like I wen tdown that road once? I'm wondering/remembering two things to check? First what are the permissions of the directory your are working in? Go up one level and see what the CHMOD was on that? Second, it might be immaterial and I'm not sure how to do it on a command

[PHP] Re: Question about replacing \r\n with br

2003-02-23 Thread John Taylor-Johnston
I think this is what you want? http://www.php.net/manual/en/function.nl2br.php John Al wrote: I can't find a way to replace \r\n codes with br in a text file. I'm reading a text file that was prepared with windows notepad The hex code shows OD OA for CR/LF as I expect. I'd like to replace

[PHP] Re: sending results by email

2003-02-23 Thread John Taylor-Johnston
http://www.php.net/manual/en/function.mail.php TEXTAREA NAME=MyText ROWS=10 COLS=26 width =15 input type=checkbox name=checkbox2 Note my changes in your HTML! mail([EMAIL PROTECTED], Subject: sending results by email, MyText: \n$MyText \ncheckbox2: $checkbox2); HTH? John form name=form1

Re: [PHP] Help with Multiple Checkboxes

2003-02-23 Thread John Taylor-Johnston
input name=add type=checkbox id=add[] value=179 Does id even exist? HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with Multiple Checkboxes

2003-02-23 Thread Matt Honeycutt
Yup, id is a valid attribute for virtually every HTML tag. I can't remember for sure which W3C specification that was in, but you can refer to most elements through JavaScript by using their ID's in both IE and Netscape 6+. ---Matt -Original Message- From: John Taylor-Johnston

[PHP] Re: Permission Denied

2003-02-23 Thread Joel Colombo
u might have something on the ownership issue. i ran into the same thing... play with php's chown command. look it up php.net may help, i was having a similar issue a few months back. Joel John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Stephen, It seems like

[PHP] Re: cookie problem..

2003-02-23 Thread Joel Colombo
make sure u run a session_start(); before anything on the page u cant access any session vars without it. Joel Terry Lau [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I want to set a cookie when I enter a text into the text field, and it shows the text I submitted

[PHP] Re: Why use persistent connections? || Data driven site

2003-02-23 Thread John Taylor-Johnston
I stopped using pconnect. Don't see the sense in it. Why take the chance? http://www.php.net/manual/en/function.mysql-pconnect.php blockquoteWarning Using persistent connections can require a bit of tuning of your Apache and MySQL configurations to ensure that you do not exceed the number of

Re: [PHP] Help with Multiple Checkboxes

2003-02-23 Thread John Taylor-Johnston
Style sheet stuff? style type=text/css Matt Honeycutt wrote: Yup, id is a valid attribute for virtually every HTML tag. I can't remember for sure which W3C specification that was in, but you can refer to most elements through JavaScript by using their ID's in both IE and Netscape 6+.

[PHP] Editors

2003-02-23 Thread Karl James
Anyone have the link on where I can download maguma php editor? Whatever the latest version is. I need if for my class. I tried to do a search on google and they are were dead links. Karl

RE: [PHP] Editors

2003-02-23 Thread Pierre Vaudrey
Hi, The site is http://www.maguma.com Pierre -Message d'origine- De : Karl James [mailto:[EMAIL PROTECTED] Envoye : dimanche 23 fevrier 2003 10:19 A : [EMAIL PROTECTED] Objet : [PHP] Editors Anyone have the link on where I can download maguma php editor? Whatever the latest

[PHP] using function()[subscript] directly

2003-02-23 Thread David T-G
Hi! I started out with $stat = stat($gallery_dir/$pix_base) ; $mode = decoct($stat[mode]) ; print mode = '$mode'br\n ; and moved to $stat = stat($gallery_dir/$pix_base) ; print decoct(stat[mode]) is ' . decoct($stat[mode]) . 'br\n;### but I would like to get rid of $stat as

Re: [PHP] University researcher's question

2003-02-23 Thread Chris Hayes
At 09:21 23-2-2003, you wrote: [i] How or why do researchers adapt technology to their research projects? Should they adapt their projects to technology? Indeed, how often does the research assistant end up reinventing the wheel? [/i] 'Research' is an extremely broad field, with many places

[PHP] PHP not supporting method overloading.

2003-02-23 Thread Jun
Hi! I have a website whose pages are written in PHP.. using some classes I have made that extensively use method overloading.. Before, my webhosting company was using PHP 4.0.6 but just this january, they have upgraded to PHP 4.3.0... that is when I started to receive errors. My website is

[PHP] Re: preg_replace question

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Electroteque) wrote in news:[EMAIL PROTECTED]: yet another regex question how could i hange the value within the quotes with preg_replace php_value upload_max_filesize 5M $str = preg_replace(#php_value upload_max_filesize\s?['\](.+?)[\']#i, php_value

[PHP] Dynamic combobox in Flash with PHP

2003-02-23 Thread pei_world
I have the following PHP code to generate output to the flash //=== $query = SELECT currencyCode,currencyName,country,buyPrice,sellPrice FROM $CURRENCIES_TABLE order by currencyCode;; $db_linker =

[PHP] Re: OOP and object references, not copies - how to do?

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Erik FranzéN) wrote in news:[EMAIL PROTECTED]: Say the you are going to create a simple forum and you want to have a number of classes: Class Sql - handles the DB interface Class User - handles users Class Messages - handles messages When you are writing the code,

Re: [PHP] Constant Arrays Possible?

2003-02-23 Thread Ernest E Vogelsinger
At 20:28 22.02.2003, Daniel R. Hansen said: [snip] Is it possible to define a constant that is an array of other predefined constants? If so, what would the syntax be? I'm trying something like the following (all items prefixed with an uppercase G are

[PHP] Re: Tutorials on OOP

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Davy Obdam) wrote in news:[EMAIL PROTECTED]: Hi people,. I have to build several classes for a project i am doing, but i am quite new to OOP programming. I need to make a database abstraction layer class and a user login class.. Does anyone know some good tutorials

[PHP] Downloading files

2003-02-23 Thread Anthony Rodriguez
Hi! In PHP, is there a way to allow the user to download a file (e.g.: sample.txt) to their computer? And, then, automatically return to the PHP-generated Web page. How can the file be stored in C:\sample.txt, for example? Thanks! Tony -- PHP General Mailing List (http://www.php.net/)

php-general Digest 23 Feb 2003 14:02:18 -0000 Issue 1900

2003-02-23 Thread php-general-digest-help
php-general Digest 23 Feb 2003 14:02:18 - Issue 1900 Topics (messages 136692 through 136722): Writing to COM-Port with PHP 4.3.0 on OS/2 with Apache 2.0.44 136692 by: Thorolf Godawa Re: Question about str_replace() 136693 by: Hans Prins Re: upgrade to 4.3.0 nearly doubled

Re: [PHP] Downloading files

2003-02-23 Thread Justin French
on 24/02/03 1:01 AM, Anthony Rodriguez ([EMAIL PROTECTED]) wrote: In PHP, is there a way to allow the user to download a file (e.g.: sample.txt) to their computer? And, then, automatically return to the PHP-generated Web page. why do you need to re-run the page? it can be done with a bit of

[PHP] Image problems

2003-02-23 Thread Narciso Rodrigues
I want to change resolution and set as a black white image. Any idea ? Thks [MsR] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] Constant Arrays Possible?

2003-02-23 Thread Daniel R. Hansen
I know constants can't be changed or undefined; the use I have in mind won't be; the array size and elements would be completely static. I'm just looking to do this for the sake of ease of access to its elements and to eliminate the need to redeclare the array as global in every bleeping function

[PHP] table width problems

2003-02-23 Thread Adriaan Nel
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 than it's supposed to be, cause some of the info from the table doesn't wrap.my question is if there is a way to force td wrapping when it exceeds

RE: [PHP] table width problems

2003-02-23 Thread Dennis Cole
You can use the code below to trim a string to a specified number of charecters. Change 64 to how long you want the string to be. This won't cut words in half. wordwrap( $text, 64, Br, 0); -Original Message- From: Adriaan Nel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003

[PHP] Another Logging Question

2003-02-23 Thread Matt Honeycutt
I'd like for my counter/logger to be fairly scalable, so I'm toying with two possible implementation routes: 1. Have the counter dump visitor info to a text file, then run a cron job on that nightly to process the data and perform a full analysis. 2. Have the counter dump the visitor info into a

Re: [PHP] Another Logging Question

2003-02-23 Thread David Otton
On Sun, 23 Feb 2003 10:30:27 -0600, you wrote: 1. Have the counter dump visitor info to a text file, then run a cron job on that nightly to process the data and perform a full analysis. Consider what will happen when two people hit the counter at exactly the same time. You'll have to code to

Re: [PHP] table width problems

2003-02-23 Thread Hans Prins
If your html table is too wide that is useually due to a pixel size or a percentage which is too large. You could try playing around with those values and calculate how much columns you have and maybe how much of a percentage size they should have relative to the screen width tables can be a

RE: [PHP] table width problems

2003-02-23 Thread xaos
Yeah you could try table width=100% valign=top align=left (plus, of course, the rest of the parameters for this tag.) td width=100% align=left is good along with that too. That should keep it from exceeding the width of the page, unless you have one or more other tables next to it... In that case

[PHP] Re: Question about str_replace()

2003-02-23 Thread Al
That's what's blowing my mind. It is so simple it should work. The php/apache [Zend] on my virtual host just seems to ignore the the brackets. Hans Prins wrote: Assuming that you do want to replace [p] with br, the code you posted worked for me. The following printed: leadingtextbrtrailingtext

[PHP] Help Please

2003-02-23 Thread Haseeb Iqbal
Hi All, 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 servers linux+windows.we have qmail installed on linux.wesite is hosted on windows.now i want to create user from my webbased signin form.(which is on win2k).how can i do

[PHP] problem with ftp browsing

2003-02-23 Thread Matt
I have a php script that is like and ftp client, only is just browsers the server and displays file names and folders. If you click on the name of a folder that it displays, it will then display the files and folders inside that directory, and so on for all directories. It works perfectly when I

[PHP] ftp browsing

2003-02-23 Thread Matt Palermo
I have a php script that is like and ftp client, only is just browsers the server and displays file names and folders. If you click on the name of a folder that it displays, it will then display the files and folders inside that directory, and so on for all directories. It works perfectly when I

[PHP] Help with fonts

2003-02-23 Thread Øystein Håland
I want to create an image using outlined fonts. Is it possible? HOW? And, secondly: I would like the first character to be a different font -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Efficient db connect function?

2003-02-23 Thread CF High
Hey all. I'm currently using the following db connection function, but I'm not sure if it's as efficient as it could be. function dbConnect($SQL) { global $result; // Connect to DB if (!$link = mysql_connect($db_host, $db_user, $db_pass)) { $result = 0;

Re: [PHP] Constant Arrays Possible?

2003-02-23 Thread David T-G
Daniel -- ...and then Daniel R. Hansen said... % % Is it possible to define a constant that is an array of other predefined Nope. From the manual: Only scalar data (boolean, integer, float and string) can be contained in constants. HTH HAND :-D -- David T-G *

RE: [PHP] ftp browsing

2003-02-23 Thread Rich Gray
-Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: 23 February 2003 09:46 To: [EMAIL PROTECTED] Subject: [PHP] ftp browsing I have a php script that is like and ftp client, only is just browsers the server and displays file names and folders. If you click on

[PHP] Re: Efficient db connect function?

2003-02-23 Thread Michiel van Heusden
$db = mysql_connect$db_host, $db_user, $db_pass) or die (Cannot connect to database); mysql_select_db($db_name, $db) or die (Cannot select database); $result = mysql_query($query ,$db) or die (Query not executed); and all the outputting code... grace michiel Cf High [EMAIL

RE: [PHP] ftp browsing

2003-02-23 Thread Matt Palermo
I am using Windows XP Pro, and I am using Serv-U to run my FTP server. It is just a server running from my machine. Is it supposed to have PHP installed somewhere? -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:05 PM To: Matt Palermo;

[PHP] Re: Dynamic combobox in Flash with PHP

2003-02-23 Thread Michiel van Heusden
my experience is that interaction between flash and php runs best through GET so, you could try using GET instead of POST and in your actionscript insert the ';' on the end of the lines for: test = this[list_label+i] myItem.label = test grace michiel Pei_world [EMAIL PROTECTED] wrote in

Re: [PHP] Re: Permission Denied

2003-02-23 Thread Stephen Craton
Thanks for the replies, it turns out, for some reason, that the variables were empty after they were supposedly assigned for the values in a MySQL table. I fixed the problem so it's all resloved. Sorry for the delayed time in my replies, my email was down all night. Thanks, Stephen Craton

RE: [PHP] ftp browsing

2003-02-23 Thread Rich Gray
I am using Windows XP Pro, and I am using Serv-U to run my FTP server. It is just a server running from my machine. Is it supposed to have PHP installed somewhere? OK I've probably misunderstood - I assumed you were running your PHP scripts locally - what platform are you running the PHP

[PHP] Re: Efficient db connect function?

2003-02-23 Thread Bobby Patel
As the previous post of using die would be better. Also try using mysql_pconnect (for persistant connections) and also, if you are running more than one query per script execution, then DON'T keeping trying to connect/select database. I suggest you do the first two things at the start of ALL the

Re: [PHP] Question about replacing \r\n with br

2003-02-23 Thread Ernest E Vogelsinger
At 22:15 22.02.2003, Al said: [snip] I spent hours trying every User Notes in the PHP Manual for this simple operation. e.g., $txt= preg_replace(\r\n, br, $words); and this version $txt = preg_replace(/(\015\012)|(\015)|(\012)/,br /, $txt); I can

Re: FW: [PHP] Constant Arrays Possible?

2003-02-23 Thread Ernest E Vogelsinger
At 15:35 23.02.2003, Daniel R. Hansen said: [snip] I know constants can't be changed or undefined; the use I have in mind won't [snip] Sorry, copied/pasted the wrong paragraph. The paragraph I wanted to include here

[PHP] mcrypt dll's for php 4.3.x on windows

2003-02-23 Thread Daniel Guerrier
Hello folks, I found a working version of the php_mcrypt.dll and libmcrypt.dll for php 4.3.x. It may working on earlier versions, but I don't know for sure. You can download it from: http://home.earthlink.net/~dguerrier/data/mcrypt.zip __ Do you

RE: [PHP] Re: Efficient db connect function?

2003-02-23 Thread John W. Holmes
As the previous post of using die would be better. Also try using mysql_pconnect (for persistant connections) and also, if you are running more than one query per script execution, then DON'T keeping trying to connect/select database. Only use persistent connections if you really sure you

RE: [PHP] ftp browsing

2003-02-23 Thread Matt Palermo
The web server is RedHat Linux and it's PHP version 4.2.3. -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:21 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] ftp browsing I am using Windows XP Pro, and I am using Serv-U to run my

Re: [PHP] Re: sending results by email

2003-02-23 Thread Luis A
HEY PAL i been tri that but its send it to me this this is the source form action=http://www2/LUIS/mai.php3; method=POST TEXTAREA NAME= ROWS=10 COLS=26 width =15 /TEXTAREA input type=submit name=Submit value=Enviar table width=100% border=0 height=27

[PHP] why this ?????????

2003-02-23 Thread Luis A
what du u think about that ?? look form action=http://www2/LUIS/mai.php3; method=POST INPUT TYPE=text NAME=emailBR INPUT TYPE=text NAME=subjectBR INPUT TYPE=text NAME=senderBR TEXTAREA NAME=message ROWS= COLS=mensage/TEXTAREA INPUT TYPE=submit name =enviar form

[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 WWW

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

[PHP] TO JOSH

2003-02-23 Thread Luis A
what du u think about that ?? look form action=http://www2/LUIS/mai.php3; method=POST INPUT TYPE=text NAME=emailBR INPUT TYPE=text NAME=subjectBR INPUT TYPE=text NAME=senderBR TEXTAREA NAME=message ROWS= COLS=mensage/TEXTAREA INPUT TYPE=submit name =enviar form

[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 to 10%

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

[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 proceeds.

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] 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 group.

[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

[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

[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

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

[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] 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

[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:

[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 INPUT TYPE=\Submit\ NAME=\Submit\ Value=\Update\/td; print td/tdtd/td/tr; print /table; print /form; if ($_POST['Update']) { print updated!!;

[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:

Re: [PHP] update query not working

2003-02-23 Thread Chris Hayes
print INPUT TYPE=\Submit\ NAME=\Submit\ Value=\Update\/td; print /form; 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

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 INPUT TYPE=\Submit\ NAME=\Submit\ Value=\Update\/td; print td/tdtd/td/tr; print

[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

[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 List

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] [!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 TITLE ... /TITLE 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 $string =

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 settle

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] 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

[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 !--#include file=

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

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 also

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 {

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 TITLE ... /TITLE 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

[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] 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($_POSTgamt_$i)) or this: if (is_numeric($_POST[gamt_$i]) || empty($_POSTgamt_$i)) I get this error message (my if statement is on line 5): *Parse error*:

[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 form method=\POST\ name=\update_workshop\ action=\$_SERVER['PHP_SELF']\\n; Many thanks Peter -- PHP General Mailing List

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

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($_POSTgamt_$i)) or this: if (is_numeric($_POST[gamt_$i]) || empty($_POSTgamt_$i)) I get this error message (my if statement

[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 within

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

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 || perl |

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 form method=\POST\ name=\update_workshop\

[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:

[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 to

[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

[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] 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 best

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 whois

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

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 form method=\POST\ name=\update_workshop\ action=\$_SERVER['PHP_SELF']\\n; echo ('form

  1   2   >