Re[2]: [PHP] Apache/2.0.36 + Win98 + PHP4=Error(31)

2002-06-15 Thread Stuart Dallas
problem. The Apache 2 module is still experimental and should not be used in a production environment. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] PHP timeout

2002-06-15 Thread Stuart Dallas
On Saturday, June 15, 2002 at 11:58:44 AM, Kim Bauters wrote: > My IIS version is 5.0 Hmm, same as mine. Have a look in the master properties of the server. If it's not there then I suggest you search the MS site for help. -- Stuart -- PHP General Mailing List (http://www.php.

Re[2]: [PHP] Parsing Text File

2002-06-15 Thread Stuart Dallas
On Saturday, June 15, 2002 at 9:05:40 PM, Nathan Taylor wrote: > $open = fopen("file.txt","r+"); > while($contents = fgets($open)) { > $line_array[$x] = $contents; > $x++; > } ?>> This wheel exists: http://www.php.net/file -- Stuart -- PHP Gene

Re: [PHP] find replace quotes with single quotes

2002-06-18 Thread Stuart Dallas
On Tuesday, June 18, 2002, 2:54:31 PM, Dan McCullough wrote: > I need to strip out the double quotes and replace it with single quotes. > Any help would be appreciated. $dest = str_replace("\"", "'", $source); -- Stuart -- PHP General Mailing List (http:/

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
means "Syntax error in parameters or arguments". Looking at your code, the only thing I can think is that it's complaining because both addresses are the same. Try changing the CC address to something different from the primary recipient. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
the Cc: > never get the mail. > any other thoughts on that? Can you get a transcript of the SMTP session, specifically the line PHP sends to the SMTP server when it gets the 501 reply? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
he Cc: line. The SMTP server is complaining because the address contains invalid characters. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using Oracle Data base store procedure (function, procedure, package)

2002-06-24 Thread Stuart Dallas
8.html - example 2 shows how to call a stored procedure. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic List Boxes

2002-06-29 Thread Stuart Dallas
{ print("$row[1] - \$$row[2]"); } print(""); } else { print("No Parts Created Yet"); } ?> -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] whats wrong with this function

2002-07-03 Thread Stuart Dallas
you're moving the goalposts. It's a very bad idea to base a loop on a variable that is changed within the loop. I suggest you loop through one string while building a second string as the return value. On the other hand, I seem to remember seeing a regex posted on this list recently that

Re: [PHP] Stock Prices

2002-07-03 Thread Stuart Dallas
s consent to the link at any time in its sole discretion. Or diluted down to the basic message: You may not republish this information without written permission! -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpBB Info

2002-07-06 Thread Stuart Dallas
lease post more information such as your source code along with a full description of the problem(s) you're having including any error messages. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Stuart Dallas
g/forum/search.php?s=&action=showresults&searchid=146348&sortby=lastpost&sortorder=descending As for how legal it is, I'm not sure, IANAL. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Stuart Dallas
On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote: > On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote: >> Has anybody an idea how they do this. It would be relatively straight-forward to have a PHP script run periodically, read from an NNTP server and add new p

[PHP] Re: NMTP server and db

2002-07-15 Thread Stuart Dallas
done it so I don't have any examples to hand, but I'm sure there are some examples out there. 'Ave a Google. Google is everyones best friend. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: NMTP server and db

2002-07-15 Thread Stuart Dallas
On Monday, July 15, 2002, 6:00:44 PM, I wrote: > You can do it 2 ways: either using the sockets or with the IMAP functions. I'm > not too sure about sockets, but the IMAP function require the IMAP module to be > loaded. D'oh, forgot the link: http://www.php.net/manual/en/ref.i

Re: [PHP] Any sites like www.webcron.org?

2002-07-15 Thread Stuart Dallas
> for any help. I don't know of any others (besides getting a "real" host). But webcron.org seems alive and kicking from here. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Screen Resolutions

2001-04-17 Thread Stuart Rees
Could anyone tell me if there is a easy way of detecting screen resolutions in php, Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTE

[PHP] Calculating the difference between two dates

2001-04-23 Thread Stuart Rees
Please can someone tell me there is a nice function that can calculate the difference between two dates. If there isn't such a function I'm sure someone could tell me how I can do a different way. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [PHP] Browser cache

2002-04-23 Thread Stuart Dallas
mber (I usually use the return value from time()). HTH, Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] bulletin board algorithm in php - how to write one?

2002-04-24 Thread Stuart Dallas
Good description. One minor addition I would suggest: That schema only allows for one level of replies. Add a parentpostid to the posts table and you can easily handle replies to replies to replies to replies (etc) to a thread. Stuart -Original Message- From: Kevin Stone [mailto:[EMAIL

Re: [PHP] basename unix/windows

2002-04-25 Thread Stuart Dallas
> Does anybody have a workaround for this? Convert all \ to / before calling basename. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] web application development question

2002-04-26 Thread Stuart Dallas
Almost all the databases I work with have a table called vars. This table consists of two fields, strkey and strval, both VARCHAR(255). I then have 2 functions defined in the global include file for the site called GetVar and SetVar. This solution works well for me. -- Stuart -Original

RE: [PHP] simplify if/then statement

2002-04-27 Thread Stuart Dallas
$incfilename = "Calc".$state.".class.inc"; if (file_exists($incfilename)) include($incfilename); else echo "Please select a State.\n"; -- Stuart -Original Message- From: Jim Long [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 20:00 To:

RE: [PHP] Removing empty elements from an array

2002-04-28 Thread Stuart Dallas
If $arr is your array, something like... foreach ($arr as $key=>$val) { if (strlen($val) == 0) unset($arr[$key]); } HTH, Stuart -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: 28 April 2002 15:37 To: php-general-list Subject: [PHP] Removing em

RE: [PHP] Auto refresh when data changed in Mysql

2002-04-28 Thread Stuart Dallas
ount($field) - 1; $i++) { echo "$field[$i]"; }echo ""; } echo ""; if (!$row) echo "Failed"; else { $num = mysql_num_rows($row); echo"equipment database has got $num data."; } ?> Search individual equipment: Main

[PHP] PHP4.2.0 + Apache2 prints code

2002-04-28 Thread James Stuart
I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and both yield the same result. When the test.php page is accessed it returns "" instead of actually processing it. I have the lines: LoadModule php4_modulemodules/libphp4.so AddType application/x-httpd-php .php in my

RE: [PHP] Deleting from a SQL db

2002-04-29 Thread Stuart Dallas
Replace the die("...") with die(mysql_error()) and the message should tell you what's wrong. Stuart -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 20:11 To: [EMAIL PROTECTED] Subject: [PHP] Deleting from a SQL db Can anyone hel

RE: [PHP] Deleting from a SQL db

2002-04-29 Thread Stuart Dallas
Print the SQL statement $query just before you call mssql_query() - make sure the SQL going in is what you think it is. Also, check mssql_affected_rows() after the call to make sure something was modified. Stuart -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Deleting from a SQL db

2002-04-29 Thread Stuart Dallas
> mssql_affected_rows() Sorry, that should be mssql_rows_affected(). Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Help.

2002-05-01 Thread Stuart Dallas
On 1 May 2002 at 18:39, Randum Ian wrote: > I want to link to a page like this: > > http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002 > > How do I get the information into a script? The variable $_SERVER["QUERY_STRING"] will contain "wk0001-fri-18-j

Re: [PHP] Replacing non exact strings

2002-05-03 Thread Stuart Dallas
, $searched); $final = $original; foreach ($searchedwords as $word) { $final = eregi_replace($word, "$word", $final); } $final = "Joe Cougar Doe"; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread Stuart Dallas
On 3 May 2002 at 12:04, ROBERT MCPEAK wrote: > $blah=2002-05-02; > $thedate = date("D, M d, Y", strtotime($blah)); > $echo "$thedate"; $blah will = 1995. Try putting quotes around the date... $blah = "2002-05-02"; -- Stuart -- PHP Genera

Re: [PHP] sendmail return-path (not 4 newbies)

2002-05-03 Thread Stuart Dallas
you are using Apache, you can set it in a .htaccess file. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Controlling Word Files (FDA Concern)

2002-05-03 Thread Stuart Dallas
you can do to stop them (unless you prevent them from reading it). -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] I-worm/Klez and a GIF query/question

2002-05-03 Thread Stuart Dallas
page and pull out the images being used. You would be better off finding out what the reasons are behind the request for GIFs only. I can't think of a single reason they could give against which I couldn't argue a case for an alternative. -- Stuart -- PHP General Mailing List

RE: [PHP] I-worm/Klez and a GIF query/question

2002-05-03 Thread Stuart Dallas
On 3 May 2002 at 15:42, Miguel Cruz wrote: > There are browsers that are still in somewhat common use that cannot > gracefully display PNGs. Try IE 4.5 on a Mac, for instance. In that case, use JPEGs, or am I missing something? -- Stuart -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Sessions

2002-05-04 Thread Stuart Dallas
ectory c:\tmp exist? I would bet the farm that it doesn't. The solution? Either create the directory or change the session.save_path entry in your php.ini. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SSH

2002-05-05 Thread Stuart Dallas
On 5 May 2002 at 14:12, Kyle Gibson wrote: > Warning: Cannot execute using backquotes in safe mode in test.php on > line 2 Your ISP has safe mode turned on which means you cannot use backquotes. Read all about it at http://www.php.net/manual/en/features.safe-mode.php. -- Stuart -

RE: [PHP] file_exists

2002-05-06 Thread Stuart Dallas
curl_setopt($ch, CURLOPT_NOBODY, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_REFERER, $referer); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $reply = curl_exec($ch); curl_close($ch); if ($url_parts["scheme&qu

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Stuart Dallas
then I can't really help but I would guess that it's a similar situation. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] httpS connection with FILE

2002-05-10 Thread Stuart Dallas
On 10 May 2002 at 16:07, Bert Buckley wrote: > I would like very much to retrieve data from an > https server using the file function, but it only > supports an http call. > > 1. Can someone suggest a good alternative http://www.php.net/curl -- Stuart -- PHP General Mai

Re: [PHP] read all files in directory

2002-05-11 Thread Stuart Dallas
On Sun, 12 May 2002 00:39:21 +0200, you wrote: >How can I read all files in a directory, when I don't know which files are >there? http://www.php.net/manual/en/class.dir.php -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Authentication with register_globals OFF

2002-05-11 Thread Stuart Dallas
27;] and $_SERVER['PHP_AUTH_PW'] You might want to read up on what register_globals actually does since it's clear that you don't fully understand it yet: http://www.php.net/manual/en/security.registerglobals.php -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread Stuart Dallas
core_functions.php"; > }else{ > $core_functions = > "http://www.domain.com/path/to/file/core_functions.php";; > } > require_once($core_functions); > If the code can get core_functions.php from your server, so can they!! A legal agreement i

Re: [PHP] switch and register_globals.

2002-05-14 Thread Stuart Dallas
Gerard Samuel <[EMAIL PROTECTED]> wrote: > With register_globals off, switch() has a little handicap. > ie > switch($foo) > { > > break; > } > > $foo, is now illegal/not set. Why can't you just use switch($_POST['foo'])? Or did I le

Re: [PHP] switch and register_globals.

2002-05-14 Thread Stuart Dallas
Gerard Samuel <[EMAIL PROTECTED]> wrote: > foo can also be $_GET['foo'] in the same script In that case use $_REQUEST['foo']. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting all files in a directory

2002-05-14 Thread Stuart Dallas
notoriousvic_ca <[EMAIL PROTECTED]> wrote: > Is there anyway I can get all the file and directories in a specific > directory? http://www.php.net/readdir -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting all files in a directory

2002-05-14 Thread Stuart Dallas
Stuart Dallas <[EMAIL PROTECTED]> wrote: > notoriousvic_ca <[EMAIL PROTECTED]> wrote: >> Is there anyway I can get all the file and directories in a specific >> directory? > > http://www.php.net/readdir And I'd suggest that you read this to avoid sarcast

Re: [PHP] what does this mean in plain english?

2002-05-17 Thread Stuart Dallas
On 17 May 2002 at 12:23, Jeff Field wrote: > $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; It's a shortened version of the if...else construct. As in... condition ? this_if_true : this_if_false -- Stu

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Stuart Dallas
e what I'm aiming at): This is usually done with Javascript... http://www.w3.org/TR/html4/loose.dtd";> Download The download should start automatically. If it does not, right click the following link and choose "Save as ..." Download MyFile -- Stuart

Re: [PHP] exec() under win2000 & apache not works?

2002-05-28 Thread Stuart Dallas
so, make sure the account Apache is running as has the permissions required to perform that copy. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache query error affecting PHP?

2002-05-28 Thread Stuart Dallas
ile) Apache will ignore the query string. > This really seems to be buggering my attempt at passing directories in > variables, but it seems that a lot of scripts must do this, am I just > doing something stupid? I gave the same answer when you asked on the httpd mailing list. Have I misund

Re: [PHP] mail() source code

2002-05-28 Thread Stuart Dallas
t; review the source code of the mail(). Before you do that you might want to look at what is already available. Have a Google or at least look at the following resources... http://www.zend.com/codex.php?CID=11 http://www.phpclasses.org/ In other words, this particular wheel already exists!

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Stuart Dallas
[EMAIL PROTECTED] wrote: > $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; > > I believe that it is an error in the SQL statement Nope, looks fine. Show us the previous few lines, the error is probably in those somewhere. -- Stuart -- PHP General Mailing List (http

Re: [PHP] Advantages of php

2002-05-29 Thread Stuart Dallas
e data part of the request which is empty for non-POST requests. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() function

2002-05-29 Thread Stuart Dallas
Ed Gorski <[EMAIL PROTECTED]> wrote: > lol.what does that return? Usually a more knowledgable programmer occasionally with a sense of acheivement attached. -- Stuart > At 09:08 PM 5/29/2002 -0700, r wrote: >> That may and may not work, I would suggest you add the RTFM()

Re: [PHP] PLEASE: Second request...

2002-05-29 Thread Stuart Dallas
w.google.com/search?q=php_gd.dll -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] arrays and same index

2002-05-30 Thread Stuart Dallas
3,4... > > This doesn't works... > > $array["untitled_1.jpg"][] = 3 seems to overwrite > $array["untitled_1.jpg"][] = 0 and then $array["untitled_1.jpg"][] = 4 > overwrites $array["untitled_1.jpg"][] = 3... > > How should I sol

Re: [PHP] Apache 2.0.36 and PHP

2002-05-31 Thread Stuart Dallas
get to change the LoadModule line for PHP in httpd.conf to load php/experimental/apache2filter.dll instead of php/sapi/php4apache.dll. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class variables and scope

2002-05-31 Thread Stuart Dallas
t; variables were private to each instance, however, this seems to be acting > like a static var. You need to specify $this->conn in each mysql_* function you call otherwise it will be called against the last connection made. -- Stuart -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Stuart Dallas
On Friday, May 31, 2002, 5:17:49 PM, you wrote: > Can you send the code that is failing to the list - it will help in working > out the problem... And include your platform details (OS, PHP version, etc). -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Apache, html, php and global variables

2002-05-31 Thread Stuart Dallas
> ask the user to re-enter this information at every screen? Sessions: http://www.php.net/session -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A small question - Mysql_insert_id

2002-06-01 Thread Stuart Dallas
rns the ID generated for an AUTO_INCREMENT column by the previous INSERT query" In other words, it returns the "id" fields value. Don't take this the wrong way, but you clearly didn't look this up in the manual. This list is to help with real problems, not manual looku

Re: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
e in add.php. Anyone give me a hand on this naive question? You probably have register_globals turned Off in your php.ini file. If you do then you can either turn it on or use the recommended method of accessing POSTed variable: $_POST['firstname']. -- Stuart -- PHP Gene

Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
al/scratch-1/ww220/Apache1.3/htdocs/test/add2.php on line 5 Try this... $query = "INSERT INTO friends (id, firstname, surname) values (nextval('friends_id_seq'), ".$_POST['firstname'].", ".$_POST['surname'].")"; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
t; I got error: > Warning: pg_exec() query failed: ERROR: Attribute 'andras' not found in >/local/scratch-1/ww220/Apache1.3/htdocs/test/add2.php on line 6 > ERRORERROR: Attribute 'andras' not found Show us what is on line 6 and a couple of lines either side of it.

Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
I suggested in a previous message. Change the $query = line to the following... $query = "INSERT INTO friends (id, firstname, surname) values (nextval('friends_id_seq'), ".$_POST['firstname'].", ".$_POST['surname'].")"; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[6]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
On Saturday, June 1, 2002 at 5:37:37 PM, you wrote: > Sorry. > I restared apache and php.ini came into effect. If you're going to run with register_globals on you should make sure you understand the implications: http://www.php.net/manual/en/security.registerglobals.php. -- Stuar

Re[6]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
e gonna kick yourself (I did!). You need to enclose the two values in quotes, like so... $query = "INSERT INTO friends (id, firstname, surname) values (nextval('friends_id_seq'), '".$_POST['firstname']."', '".$_POST['surname']."')"; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Stuart Dallas
On Saturday, June 1, 2002 at 6:29:59 PM, you wrote: > Does anyone know of a function within PHP that will convert a hexadecimal > string (without the leading 0x) into an integer? FFS!! http://www.php.net/hexdec -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsub

Re[2]: [PHP] Apache, html, php and global variables

2002-06-02 Thread Stuart Dallas
riables the corect way to do this or is > there a better way? Not really. Sessions are the established way of persisting data across page requests. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] opendir security hole

2002-06-03 Thread Stuart Dallas
On Monday, June 3, 2002 at 3:37:48 PM, you wrote: >$dir = preg_replace('/\.\.\/?/', '', $dir); Surely a regular expression is overkill for this? It would be more efficient to use str_replace()... $dir = str_replace('..', '', $dir); --

[PHP] WDDX

2002-04-13 Thread Stuart S
ing it in commercial projects just yet. So, if anyone knows of one please direct me to where I can find one. Thanks in advance Stuart Schoneveld www.xs4all.nl/~stuartmx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] accessing raw post data

2002-04-15 Thread Stuart S
I'm trying to access data sent to PHP script via POST. But I can't seem to find any documentation on how to do this. Only $HTTP_POST_VARS, but that's not what I want. Anyone know how? Thanks Stuart Schoneveld www.xs4all.nl/~stuartmx -- PHP General Mailing List (http://w

[PHP] PHP 4.0.6 + Postgres 7.1.2

2001-07-29 Thread Stuart Grimshaw
Has anyone sucessfully used these two versions together? I get the following error message from apache when I try & start it ... Syntax error on line 224 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: un

[PHP] Re: PHP 4.0.6 + Postgres 7.1.2

2001-07-29 Thread Stuart Grimshaw
Yasuo Ohgaki wrote: > It works fine. > You probably need to specify libpq location explicitly. > --with-pgsql=/your/pgsql-7.1.2/somewhere I have, several times. and I did a rm config.cache, reconfigure & make clean in between each one too. -- PHP General Mailing List (http://www.php.net/) T

[PHP] undefined Symbol PQoidValue

2001-07-30 Thread Stuart Grimshaw
I have recently upgraded PHP to the latest version, and also upgraded Postgres to the latest version. PHP worked fine after it's upgrade, but after the Postgres upgrade it is now broken. I have recompiled & installed PHP, but when I try & start Apache, I get the following error message: Synta

Re: [PHP] Help:Multi Page form using session variables

2004-10-10 Thread Stuart Felenstein
x27;t find out after digging through books and googling, is how / where to actually declare the variable. Seems most of the examples use a variable that is set already by the programmer, not by the user. Stuart --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > I cant figure out if

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
; [4] => ) 1 FYI - The skills is a string, skys and slus ints. Also I had only filled in 3 of the 5 for each. Thank you Stuart --- Robby Russell <[EMAIL PROTECTED]> wrote: > On Sun, 2004-10-17 at 09:53 -0700, Stuart Felenstein > wrote: > > I have 3 arrays. 3 for 3 fiel

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
They are related in the sense that they are part of one record in the database. Fields Skill YearsUsed LastUsed When you say array of arrays you are referring to a multi-dimensional ? I'm not sure what you mean by are the [0] related. Thank you, Stuart --- Robby Russell <[EMAIL P

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
ng session variables: $_SESSION['skills'] = $_POST['skill']; $_SESSION['skys'] = $_POST['sky']; $_SESSION['slus'] = $_POST['slu']; My problem is I do not know how to get these into the database with one query. Hope this is clearer. Thank

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
ky']; The second dropdown is: $_SESSION['slus'] = $_POST['slu']; So I need to grab the input and enter into database where each set of skill, sky , slu is a new record. I hope this is clearer. Stuart --- John Holmes <[EMAIL PROTECTED]> wrote: > Stuart Felen

Re: [PHP] Nested foreach ?

2004-10-18 Thread Stuart Felenstein
N['slus'] = $_POST['slu']; It looks like the loop above is using the $skills array to advance through the other arrays ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Nested foreach ?

2004-10-18 Thread Stuart Felenstein
Wish I had better news. Warning: Invalid argument supplied for foreach() in /home/lurkkcom/public_html/TestMultiTrans2.php on line 90 INSERT INTO LurkProfiles_Skicerts (ProfileID, SkilCerts, NumYear, Lused) VALUES () line 90: foreach($skills as $key => $skill) To confirm : I changed to this:

RE: [PHP] Nested foreach ?

2004-10-18 Thread Stuart Felenstein
t here and for hanging in. Graham, thank you for continuing to help me on this issue. You are right about manual, and I have been reading the manual along with some PHP / MySQL books. I actually have solved a few things on my own. ;) More reading is in order! Stuart --- Graham Cossey <[EMAIL PR

[PHP] RE: [PHP-DB] Question: Putting separate form elements into an array

2004-10-17 Thread Stuart Felenstein
Sorry about the two lists. The echo's are fine. The problem was iterating through the 3 arrays. Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > Stuart, now I'm confused. > > You seem to be posting slightly different versions > of problems relating to >

[PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
n top that checks all the submitted form values, or pepper throughout all the transactions ? Hope my question is clear and am open to any suggestions or ideas. Thank you , Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
otect me from things like "sql injections" ? 2b- Do selects (menus, dropdowns) need to be validated for string content. aka, can crafty hackers turn these into a way to enter some funky data ? Thank you , Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > Personally I would do as y

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
Yes, this is a great reminder, as I thought about it. Man, can one form be so time consuming ? :) Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > You probably also want to check > somehow that page2.php > is actually being called from page1.php and not by > any other

[PHP] Extracting relevant text from a text file

2004-10-19 Thread Stuart Felenstein
there a way to search for pronouns. Last, I guess if I had an un-average formatted resume it would not work as well. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
uot;skill[]"]))?$_POST["skill[]"]:"") . "",true,true,true,true,"",false,1); I can't seem to differentiate between the the elements because they are all labeled skill[] So basically validation isn't doing anything . I'm thinking of findin

RE: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
My problem is not related to the insert or iteration. It's related to the validaton of those elements: skill[] skill[] etc. Clearer ? Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > Not sure I really know where you have the problem, > but I am assuming you are > try

RE: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
Believe it or not I had just thought of doing a foreach with the validation. I'll see how it goes. Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > Maybe you would like to post your validation code > then. > > I (we) do not know where the line: > > (((iss

Re: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
e validation is because it's part of a class, so what exists in the page is only part of the code. Stuart --- Brent Baisley <[EMAIL PROTECTED]> wrote: > I think I might know what you are trying to do. You > want to have a > "name" associated with the skill (or s

Re: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
Yes I just found that out :). Back to the drawing board!. Stuart --- Brent Baisley <[EMAIL PROTECTED]> wrote: > I thought you were using checkboxes based on your > true/false. So the > user is actually typing in skills? > > Not sure where you are going with skill[0]

RE: [PHP] Validation problem with array.

2004-10-21 Thread Stuart Felenstein
$_SESSION['slus'][$key]})"; //$result = mysql_query($query); $res6 = run_query($query); echo $query; } I understand that in the insert statement I need not repeat $_SESSION. The rest though is fuzzy. It was working, now I'm getting some really odd behaviour, in that, unless i fill in every field in the form, I get a mysql syntax error. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validation problem with array.

2004-10-21 Thread Stuart Felenstein
You mean why do i have $_SESSION['skills'] in the foreach ? Stuart --- Andre Dubuc <[EMAIL PROTECTED]> wrote: > Hi Stuart, > > I haven't followed your thread too closely, but I > did see something that might > be the cause of your problems: > > [sni

RE: [PHP] Validation problem with array.

2004-10-21 Thread Stuart Felenstein
4,3)INSERT INTO LurkProfiles_Skicerts (SkicertID, ProfileID, SkilCerts, NumYear, Lused) VALUES (null, 39, 'd', 5,4)INSERT INTO LurkProfiles_Skicerts (SkicertID, ProfileID, SkilCerts, NumYear, Lused) VALUES (null, 39, 'e', 6,5)your insertions were successful > }// end if ($skil

RE: [PHP] Validation problem with array.

2004-10-21 Thread Stuart Felenstein
#x27; ... and below "end if ($sky != '') > foreach($skills as $key => $skill) { if ($skill != '' && $skys[$key] != '' && $slus[$key] != '') { $query = "INSERT INTO LurkProfiles_Skicerts (SkicertID, ProfileID,

<    1   2   3   4   5   6   7   8   9   10   >