Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
S > (NULL, '$name', '$pass', '$email', NOW())"; ?? cheers "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 07 January 2003 00:19, - \[ Paul Ferrie \] - wrote: > > hey

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
So Is NOW() a mysql function? "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > yep i guess that, so NOW() is a mysql function. > > - [ Paul Ferrie ] - wrote: > > So Jason what your saying is this

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
Well i am still getting all the zero's : ( : ( "- Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> wrote: > > So > > > > Is NOW(

Re: [PHP] unlink ($files);

2003-01-07 Thread Paul Nicholson
r($dh))) { if($file != '.' && $file != '..') { $path = $dir .'/'. $file; if(is_dir($path)) { force_rmdirs($path); } else { unlink($path); } } } closedir($dh ); r

[PHP] strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Can anyone see a problem in this? When i run the script i am getting this error "Notice: Undefined variable: action in C:\www\Apache2\htdocs\user_poll\2\addpoll.php on line 13" Could not insert poll\n"; } else { print "Poll added\n"; } mysql_close($link); } ?> please anyone

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Sorry guys ingore the post, i have narrowed the problem down to a problem with posting the vairables from flash. cheers "- -" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone see a problem in this? When i run the script i am getting this > error "Noti

[PHP] $query help :(

2003-01-08 Thread - \[ Paul Ferrie \] -
Hi again guys i have run into another problem :( i am trying to build a user poll (flash+php+mysql) I have the interface all sorted but i have a problem with my add new poll php file. When i hit the update poll button in flash it seem that everthing has work and it' send back a msg saying all went

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
It seem there is some probs with the latest release of php something about global vars. Jst checked and it works now. It was the php thing right enough. i hope that my server admin have done the same thing with the php.ini cheers guys. "- -" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

[PHP] flash and php (using the varibles)

2003-01-09 Thread - \[ Paul Ferrie \] -
Hi guys i hope there is someone in here that use flsah along with php to help with this :) Anyway i will make it simple. mysql returns a number say 123 i want flash to take this number to animate a progress bar, but here the problem it does work but the progress bar dosn't animate it just sets to

[PHP] php stored in mysql

2003-01-09 Thread Paul Roberts
Hi I want to store some discount codes in mysql, i was thinking of putting $price = $price - ($price *.i); in a mysql field that can be looked up via the coupon number what's the best way to do this and return $price with the discount applied. Thanks Best Wishes & Happy New Y

Re: [PHP] php stored in mysql

2003-01-09 Thread Paul Roberts
I should have used return($price = $price - ($price *.1)); in the db and eval($str); Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Paul Roberts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Paul Roberts
try looking at sessions, if they don't have a login session id send them to the login page otherwise they are logged in so let them see the page. works for me Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - Fro

Re: [PHP] x12 837

2003-01-16 Thread Paul Marinas
:))) Paul Marinas Technical Support RDS Craiova Phone: +402-51-410-194 Mobile: +407-22-451-439 Fax:+402-51-416-579 www.rdsnet.ro . Privileged/Confidential Information may be contained in this message. If you are not the addressee

[PHP] output sql

2003-01-16 Thread Paul Marinas
Dose anyone know how can i do that: - select some data form a sql db and put it in a web page. the problem is that i whant to change the value (name) of a column that is selected form the database and then put in a web page with the diferent name. Thanks, Paul -- PHP General Mailing List (http

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Paul Roberts
another one for you function removeaccents($string) { return strtr($string, "SOZsozY¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ", "SOZsozYYuAAACDNOOYsaaaconooyy"); } Best Wishes & Happy New Y

[PHP] SQL+php

2003-01-18 Thread Paul Marinas
Dose anyone know how to search and replace a string in a mysql_query output. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SQL+php

2003-01-18 Thread Paul Marinas
s wrote: > How about you describe exactly what you're trying to do and why and then > someone can help you. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > > -Original

RE: [PHP] SQL+php

2003-01-18 Thread Paul Marinas
ace command > > REPLACE(str,from_str,to_str) > > SELECT REPLACE(,,) FROM table > > or you can do it using PHP once the query has executed, on a record by > record basis, within a while/for loop or whatever. > > -Original Message- > From: Paul Marinas [mailto:[EMA

Re: [PHP] SQL+php

2003-01-18 Thread Paul Marinas
... On Sun, 19 Jan 2003, Justin French wrote: > where the F*** are you getting july from??? which number do you want to > convert to a month, or am i totally missing it? > > you need to be DESCRIPTIVE in what you want to acheive. > > we're not a mind readers! > > > J

Re: [PHP] files no longer upload!

2003-01-20 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sure...we could look at your code if you showed it to us. Other than seeing it I'd say check 'register_globals'... HTH! ~Paul On Monday 20 January 2003 05:27 pm, Phil Powell wrote: > I'm having a day, gang! > > I have do

Re: [PHP] is this better or is it still in html?

2003-01-20 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It is better:) On Sunday 19 January 2003 10:59 pm, Karl James wrote: > Karl - -- ~Paul Nicholson Design Specialist @ WebPower Design [EMAIL PROTECTED] www.webpowerdesign.net "The webthe way you want it!" "It said uses Window

[PHP] PHP vs Perl for system scripts (non-web)

2003-01-27 Thread Paul Chvostek
QL servers (I'm using MySQL at the moment), are there any compelling reasons I should write system stuff in Perl rather than PHP? Thanks. -- Paul Chvostek <[EMAIL PROTECTED]> Operations / Abuse / Whatever it.canada, hosting and devel

[PHP] Re: printing

2003-01-28 Thread Paul Chvostek
to a fax server elsewhere on the network. If you're doing this in a Microsoft environment, I have no clue how you'd even approach the problem, let alone solve it. -- Paul Chvostek <[EMAIL PROTECTED]> Operations / Abuse

Re: [PHP] MS Access

2003-01-28 Thread Paul Roberts
that means there's an error in your sql, what's the sql your using. Best Wishes Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Johannes Schlueter" <[EMAIL PROTECTED]> To: "Todd Barr" <[EMAIL PROTECTED]>; <

Re: [PHP] Installation & Configuration Question

2003-01-30 Thread Paul Marinas
did you check php.ini file? On Wed, 29 Jan 2003, Mike At Spy wrote: > > Has anyone ever had an issue where PHP, for whatever reason, stopped > .htaccess files from working? > > Thanks, > > -Mike > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.n

Re: [PHP] Re: Installation & Configuration Question

2003-01-30 Thread Paul Marinas
htacces it's use by apache when you whant to give distinct user privileges to a certain directory, also uses htpasswd, etc. more information you could find in apache documentation. On Thu, 30 Jan 2003, [ISO-8859-1] Götz Lohmsnn wrote: > Mike At Spy schrieb: > > Has anyone ever had an issue where

Re: [PHP] move a record into a different table

2003-01-31 Thread Paul Roberts
so how about With INSERT ... SELECT statement you can quickly insert many rows into a table from one or many tables. INSERT INTO tblTemp2 (fldID) SELECT tblTemp1.fldOrder_ID FROM tblTemp1 WHERE tblTemp1.fldOrder_ID > 100; from the mysql manual Best Wishes Paul Roberts [EMAIL PROTEC

Re: [PHP] listbox problems

2003-02-02 Thread Paul Chvostek
d; > echo ">{$account['username']}"; > > > } > > ?> > > > > This is good. I've always liked things like this: $query="SELECT ..."; if ($result=mysql_query($q)) { $sel[$user]=" selected"; print "\n&quo

[PHP] Powerpoint presentations?!?

2003-02-05 Thread Paul Chvostek
's Flash or PDF or find another developer? I'd *much* rather do this in pdflib or ming, but that may just not be possible -- Paul Chvostek <[EMAIL PROTECTED]> Operations / Abuse / Whatever it.canada, hosting and development

[PHP] Re: regex

2003-02-07 Thread Paul Chvostek
any of those characters. And to match any *except* those characters, use [^][.^$()|*+?-]. Check the re_format(7) man page for details. If you don't have a unix box handy, check http://www.freebsd.org/cgi/man.cgi?query=re_format . -- Paul Chvostek

[PHP] substr() help

2003-02-07 Thread Paul Reilly
e = substr ($temp, 0, 5); when I test for temp I get 30 responses - which is correct, but when I test for $line I get Zero responses. Did I make a mistake in my code Paul Reilly [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: issues with ksort()

2003-02-07 Thread Paul Chvostek
ells you the problem, as does a closer look at http://www.php.net/ksort . You're assuming ksort()'s return value is the sorted array. It is not. Try something more along the lines of: $testarray=array( "[three]" => 3,

Re: [PHP] mail() vs sockets

2003-02-07 Thread Paul Roberts
just post once - Original Message - From: "Jeff Busby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 9:30 PM Subject: [PHP] mail() vs sockets Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() fu

Re: [PHP] Beginners question

2003-02-09 Thread Paul Roberts
use html instead of \n or echo nl2br("This spans\nmultiple lines. The newlines will be\noutput as well."); Best Wishes Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Martin Purdy" <[EMAIL PROTECTED]> To: <[E

Re: [PHP] Testing..

2003-02-09 Thread Paul Marinas
working :) On Sun, 9 Feb 2003, Troy May wrote: > Just a quick test. I just re-signed up for this list after a 3 week > vacation and I haven't seen even one message yet. So, reply if you get it > please so I know this is working. > > Thanks, > Troy > > > -- > PHP General Mailing List (http://www

[PHP] Re: PHP-based SMS solution

2003-02-12 Thread Paul Chvostek
ports&query=qpage (2) http://www.freebsd.org/cgi/man.cgi?manpath=ports&query=sendpage -- Paul Chvostek <[EMAIL PROTECTED]> Operations / Abuse / Whatever it.canada, hosting and development http://www.it.ca/ -- PHP

[PHP] Echo # problem

2003-02-12 Thread Paul McQ
I am writing an application in which I need to redirect to an url using the Header function. This redirection must include the # character so that the user is taken to the relevant part of the following page. PHP sees the # as a comment no matter what I do and therefore the redirection doesn't wo

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Paul Dunkel
ERKELE\n'; $filename = 'teksti.txt'; $handle = fopen($filename, 'wb'); fwrite($handle, $somecontent); fclose($handle); I've tried this in two totally different servers, tomorrow I'll try on the third one. All help absolutely welcome! Paul Dunkel -- pdunkel.nic.fi

[PHP] pro-rated date

2003-02-17 Thread Paul Chvostek
e that flexible. Any advice? Is there an *elegant* way of doing this? -- Paul Chvostek <[EMAIL PROTECTED]> Operations / Abuse / Whatever it.canada, hosting and development http://www.it.ca/ -- PHP General Maili

[PHP] Re: file not opening in internet explorer

2003-02-19 Thread Paul Chvostek
x27;s happening, and where the system is looking for files. > the file permissions are "rw-r-r" No they're not. They might be "rw-r--r--", but not what you put. When you talk about file modes, it's safer to refer to them in octal. So "rw-r--r--" would

[PHP] Re: Cron Job help Needed

2003-02-19 Thread Paul Chvostek
interface, in case you need details which are operating system specific. (And if you don't know, you probably don't need 'em.) Most likely you will need unix shell access to set up and maintain your cron jobs. Your local unix system administrator (or consultan

[PHP] Re: search script

2003-02-24 Thread Paul Chvostek
ase insensitive, wrap the options in LCASE or UCASE. This sort of thing might be more likely to get a quick response on the php-db list, and a more concise response if you include the type of database you're using. -- Paul Chvostek <[

[PHP] Help needed - please check site

2003-02-24 Thread Paul Godard
My other concern is how do I secure the database? -- Kind regards, Paul. Gondwana [EMAIL PROTECTED] http://www.gondwanastudio.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: Editors

2003-02-26 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 26 February 2003 02:19 pm, James Hatridge wrote: [snip] > Thanks for the address. I looked into it closer and I find that it is only > for Windows. Pity. It will run on linux using wine. Yes, I've tried it...it works! ~Paul

[PHP] how do I strptime?

2003-02-27 Thread Paul Chvostek
ourse a non-existent function in PHP. I'd like to stop calling a subshell every time I process a date, but I'd also like to avoid jumping through hoops with mktime. Is there a better way? Tnx. -- Paul Chvostek <[EMAIL PR

[PHP] Re: Re: Re: Editors

2003-02-27 Thread Paul Nicholson
as to be able to 'see' an MS Windows binary (i.e. application) if it is to run it." You *might* need to download some of the common windows type dlls but thats about all. :) ~Paul On Thursday 27 February 2003 01:12 pm, James Hatridge wrote: [snip] > I stopped using Windows a

[PHP] Re: [PHP-DB] Making Join

2003-02-28 Thread Paul Burney
#x27;t know of a way for you to be specific). Hope that helps. Sincerely, Paul Burney <http://paulburney.com/> Q: Tired of creating admin interfaces to your MySQL web applications? A: Use MySTRI instead. Version 3.1 now available. <http://mystri.sourceforge.net

Re: [PHP] php and html differences

2003-03-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Use Smarty(http://smarty.php.net/) and Maguma Studio(http://www.maguma.com/). ~Paul On Sunday 02 March 2003 07:13 pm, Sunfire wrote: > where could i get a templet editor from that is good and fairly easy to > use? > [snip] - -- ~Paul

[PHP] fread problem

2003-03-02 Thread Paul Cohen
lly, if you respond to this, please copy me directly as I get the mailing list as a digest. Thx, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: seperate streetname from number

2003-03-11 Thread Paul Chvostek
f (ereg('^[0-9]+', $what)) { $temp = ereg_replace('^([0-9]+)(.*)','\\1__\\2', $what); list($number, $name)=explode('__', $temp); } else { $name=$what; $number="" } $retval[0]=trim($name); $retval[1]=trim($numb

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Paul Chvostek
a print_r($HTTP_SERVER_VARS); and there > wasn't a variable called HTTP_REFERER. I've heard that some servers disable > it. Since I have a dedicated server, how can I enable this variable again? -- Paul Chvostek <[EMAIL PRO

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Paul Chvostek
> > - Original Message - > From: "Paul Chvostek" <[EMAIL PROTECTED]> > To: "Stephen" <[EMAIL PROTECTED]> > Cc: "Niels Andersen" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> > Sent: Tuesday, March 11, 200

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Paul Chvostek
idemail($what) { if (!eregi('[a-z0-9][a-z0-9._=+-]*@([a-z0-9][a-z0-9-]*\.)+[a-z][a-z]+$',$what)) return(false); list($user,$domain) = explode("@",$what); if (!getmxrr($domain,$mxhosts)) return(false); if (!count($mxhosts) > 0) return(false);

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Paul Chvostek
t; > > function isvalidemail($what) { > > if > (!eregi('[a-z0-9][a-z0-9._=+-]*@([a-z0-9][a-z0-9-]*\.)+[a-z][a-z]+$',$what)) > return(false); > > list($user,$domain) = explode("@",$what); > > if (!getmxrr($domain,$mxhosts)) return(false); > >

Re: [PHP] Cannot execute... Cron jobs

2003-03-12 Thread Paul Chvostek
he can run a separate instance of his web server that binds only to 127.0.0.1, but even if the script is publically runable, it can check HTTP_HOST and REMOTE_ADDR before doing anything critical. Scott never mentioned the rest of his setup; judging its security is premature. -- Paul Chvoste

Re: [PHP] RSS

2003-03-13 Thread Paul Roberts
this months free sample article in PHP Architect - A monthly magazine for PHP Professionals. http://www.phparch.com/ - Original Message - From: "Sebi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 11:47 AM Subject: [PHP] RSS Hi, Does some one know where

[PHP] online file management

2003-07-01 Thread Paul Chvostek
PHP-based FTP client, but I'm open to that if nothing else is available. Before I write one myself, is there a package that has already been built that any one can recommend (or recommend against)? Thanks. :-) -- Paul Chvostek <[EMAIL PROTE

[PHP] safe_mode and file/directory ownership

2003-07-01 Thread Paul Chvostek
process running as uid 80 won't be able to suid to another user. If I make the directory owned by the user, the files will be inaccessible, but if I make the directory uid 80, then *it* will be inaccessible. Is there some other solution to storing (and then retrieving) files with safe_mode on?

Re: [PHP] online file management

2003-07-02 Thread Paul Chvostek
> - Original Message - > From: "Paul Chvostek" <[EMAIL PROTECTED]> > > > > I'm looking for a tool that will allow online file management, with a UI > > something like that of a traditional FTP client. > > > > The ideal candidate w

Re: [PHP] safe_mode and file/directory ownership

2003-07-02 Thread Paul Chvostek
king upon file access. > > http://www.php.net/manual/en/features.safe-mode.php > > Other than that consider turning off safe mode if you have access to it, > or turn it off for your virtual host. > > Paul Chvostek wrote: > >I've got a script whose configuration creates a

Re: [PHP] online file management

2003-07-02 Thread Paul Chvostek
es in blobs in db table. I wouldn't do it for anything high traffic, but for cases where a file will be uploaded once and downloaded once or twice then deleted, I won't have to deal with ongoing performance issues. -- Paul Chvostek &

[PHP] Re: [PHP-DB] Database question

2003-07-03 Thread Paul Chvostek
tabase link identifier cannot be stored in a session variable and then re-used by another session. Check out http://www.php.net/features.persistent-connections for details. -- Paul Chvostek <[EMAIL PROTECTED]> it.canada

[PHP] security question

2003-07-04 Thread Paul Chvostek
Can anyone think of any security caveats with regard to turning output_buffering on? I can't, but it's too hot to think straight these days Tnx. -- Paul Chvostek <[EMAIL PROTECTED]> it.canada

[PHP] simple query help

2003-07-05 Thread Paul Ferrie
Hi guys, I am working on a flash forum for my site. Came with the FOED book, anyways i am tyring to delete the threadCount by -1 from the db. could below does dlete the count but in multipules of 2. Anyone cheers $query = "UPDATE forumForums SET threadCount = threadCount -1 WHERE forumID = $fo

[PHP] Re: script not stopping

2003-07-07 Thread Paul Chvostek
On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote: > > if ($_POST["imgList"] = ""){ You're *assigning* a variable in this condition. -- Paul Chvostek <[EMAIL PROTECTED]> it.canada

[PHP] Re: script not stopping

2003-07-07 Thread Paul Chvostek
> "Paul Chvostek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote: > > > > > > if ($_POST["imgList"] = ""){ > > > > You're *assigning* a var

[PHP] Re: what's wrong with this?????

2003-07-08 Thread Paul Chvostek
x27;last_login DATETIME NULL)'; $result = mysql_query($q) or die("Create table Error: ".mysql_error()); It's a heck of alot easier to see errors when you space things out a bit. The investment of the extra CPU time for PHP to glue the pieces together probably makes sense in th

Re: [PHP] Regular Expression

2003-07-08 Thread Paul Chvostek
e brackets. In fact, the regexp you've built will also match an $address of "p\o box". -- Paul Chvostek <[EMAIL PROTECTED]> it.canadahttp://www.it.ca/ Free PHP web hosting!

[PHP] how to force variables declaration??

2003-07-08 Thread mack paul
hi to all. i would like to know how to force to php to declare everything variable, example var $var; $var = bla,bla.. var $var2 = array(); $var2 = bla,bla.. and issue error when a variable is instanced without declare, some idea???: -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] shoutcast communication

2003-07-09 Thread Ben Paul
really havent a clue how this is done. Thanks Ben Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Paul Hudson
likely, that I'm just misinterpreting the documentation! ;) If you have any insight, please CC me into your response to the list. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Paul Hudson
Alan, Yes, those are the same results I'm getting. I'm running the latest CVS. AFAIK, printing "Poppy" shouldn't happen - the variable should be private. --Paul On Friday 11 Jul 2003 11:19 pm, Alan D'Angelo wrote: > Hello, > In my PHP5 installation the

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Paul Hudson
Michael, Er, if you're saying that my private variable example shouldn't work, then I agree - that's the reason I'm confused. Or am I misunderstanding what you're saying? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Mind exploded on this one!

2003-07-11 Thread Paul Chvostek
each ($booleanVarsas $key => $value) ${$key} = $value; foreach ($profileVarArrayas $key => $value) ${$key} = $value; etc. Alternately, if $booleanNonFormVars are things for which you're just trying to test existence, you could: foreach ($booleanNonFormVars as $

[PHP] touch file on shared web server?

2003-07-12 Thread Paul O'Neil
you can only TOUCH a file that you own. Usually PHP is *nobody*. Is there a way for a script to create a file on the web server? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003 --

RE: [PHP] touch file on shared web server?

2003-07-12 Thread Paul O'Neil
Yes, create a temp directory like this -rw-rw-rw- 1 nobody nogroup -Original Message- From: Paul O'Neil [mailto:[EMAIL PROTECTED] Sent: Saturday, July 12, 2003 5:52 PM To: [EMAIL PROTECTED] Subject: [PHP] touch file on shared web server? you can only TOUCH a file that yo

[PHP] Re: Mailing list server with PHP frontend

2003-07-13 Thread Paul Chvostek
the envelope sender) to be the authoritative address of the sender, superceding the From and Reply-To headers. The only way around it is to "spoof" the envelope sender, thereby falsifying your headers. Gahgh. Now ... if you were to write a class to manage Mailman configs ... that wo

[PHP] Re: elegant way of doing something else the last time through a loop?

2003-07-15 Thread Paul Chvostek
ip = array( 'the' => 1, 'and' => 1, 'a' => 1, ); foreach (explode(' ', $string) as $val) { if (!$skip[$val]) { $sql .= $logic . " name like '%$val%'"; } } $sql .= ' ORD

[PHP] How unsafe is register_globals?

2003-07-16 Thread Paul Chvostek
ikely is php-nuke to get fixed?) Thoughts? -- Paul Chvostek <[EMAIL PROTECTED]> Operations / Abuse / Whatever it.canada, hosting and development http://www.it.ca/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How unsafe is register_globals?

2003-07-16 Thread Paul Chvostek
that function ... but is it possible to have fine-grained enough an AllowOverride statement that only register_globals can be changed? I wouldn't want a user to use his .htaccess file to turn off safe_mode or open_basedir. -- Paul Chvostek

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Paul Chvostek
ser to turn off safe_mode and open_basedir. I don't have a non-production machine to test it on at the moment. Any idea how I give the user local register_globals control without also letting them alter the other php.ini options? -- Paul Chvostek

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Paul Chvostek
not allow safe_mode and open_basedir to be altered by php_flag lines in .htaccess files? Thanks. On Thu, Jul 17, 2003 at 07:19:19AM -0700, Mark wrote: > > http://httpd.apache.org/docs-2.1/mod/core.html#allowoverride > > You can indicate which directives can be overrriden, and which &

[PHP] Re: Mail From option in PHP.ini

2003-07-18 Thread Paul Chvostek
rocesse launched would have the username in the envelope-from. You also might get a performance gain by doing things through FastCGI, though you'd lose some of the module-specific features like persistent database connections. Worth testing, anyway. Let us know how it goes. :) -- Paul

[PHP] Re: running SSH through a PHP script

2003-07-18 Thread Paul Chvostek
extensive format checks on them. Usernames should always match ^[a-z0-9]+$ . Nothing being used in the ssh command should be allowed to have [;&|] in it. Be so anal and paranoid that you risk compromising functionality, and you're less likely to screw yourself. -- Paul Chvostek

[PHP] Error - when trying to connect to postgresql

2003-07-20 Thread Paul Tun
When I try to connect to postresql with my php script below I got hhis eror: I can insert into the table from psql. Please help Thanks, --- Warning: pg_exec() query failed: ERROR: invention:

[PHP] Re: How to..

2003-07-21 Thread Paul Chvostek
27;re basing your include on something that you're already managing, perhaps as a form or session variable. YMMV. Don't forget to do your sanity checking. This method may be prone to security problems. -- Paul Chvostek <[EMAIL PROTEC

[PHP] Re: Hi

2003-07-22 Thread Paul Chvostek
club66.ro ). > What do u think? I think this doesn't sound like a problem with "Hi", as your subject line indicated. -- Paul Chvostek <[EMAIL PROTECTED]> it.canadahttp://www.it.c

[PHP] mail problem

2003-07-26 Thread Paul Marinas
Hi, i have to send some e-mails with pictures, in html format, i was wondering if anyone knows where to find a php class that dose this. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Your E-Book

2003-07-27 Thread Paul McNally
This is not spam. > Please stop responding to spam with spam! And if you really cannot resist the > urge to respond at least have the courtesy to trim your response so that we > don't have to see the spam over and over again. > */ > -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Including a https .aspx form/response in a PHP page - Tricky?

2003-07-27 Thread Paul Fitz
feeling I may have to use the CURL library here? Any suggestions are greatly appreciated. Cheers, Paul http://adsl-wholesale.datafast.net.au/EndUser/ADSLAvailability.aspx";; $file = fopen ($url, "r"); if (!$file) { echo "Unable to open remote fi

Re: [PHP] What is $$

2003-07-31 Thread Paul Marinas
http://www.php.net/manual/en/language.variables.variable.php On Fri, 1 Aug 2003, Ryan A wrote: > Hi, > I have just found this in my book: $$var = $value > what is the double dollar for? or is that a typo? > Thanks, > -Ryan > > > We will slaughter you all! - The Iraqi (Dis)information ministers s

[PHP] Re: subtracting dates...

2003-08-02 Thread Paul Chvostek
ime will give NEGATIVE TIMESTAMPS for dates earlier than Jan 1st 1970 at midnight GMT, so this still works for folks over 33. ;) -- Paul Chvostek <[EMAIL PROTECTED]> it.canadahttp://www.it.ca/ Free P

[PHP] Re: easier than switch

2003-08-04 Thread Paul Chvostek
x27;func'], like this: $typelist=array( 'thisone' => "This is one", 'thatone' => "That is one too", 'another' => "Another one here", ); $type=$typelist[$_POST['func']]; Is that long the lin

RE: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Paul Fitzpatrick
ODBC, the only issue is setting up an ACCESS DSN, which can't be done on a Unix box at this time. I have heard of tricky windows/linux bridging techniques though, but what ISP is going to set up an extra windows box for one Access db? Cheers, Paul -- PHP General Mailing List (http:

RE: [PHP] Session problem in back button

2003-08-26 Thread Paul Fitzpatrick
Hi, This will stop them seeing the login once they are in a registered session Only diplay the login form if NOT a registered session variable 'sessionname' (or some other session variable) If (!isset($_SESSION['sessionname'])) { //Display login form code goes here } Cheers. -Origin

RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick
Hi, Maybe.. $sql = "SELECT Title, SubT, Author, Story FROM SiteNews;" should be $sql = "SELECT Title, SubT, Author, Story FROM SiteNews"; -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] he

[PHP] RE: [SOAP] web services

2003-03-20 Thread Paul Miller
You could also check into a RSS implementation. Take the standardized approach to XML-RPC. http://backend.userland.com/rss - Paul -Original Message- From: Tony Bibbs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Merlin Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED

[PHP] detecting end of line - php 4.1.2

2003-03-21 Thread Paul Godard
ion,$Image_CodePrice) = explode("\t", $line); Please email me directly at [EMAIL PROTECTED] Thanks. -- Kind regards, Paul. Gondwana [EMAIL PROTECTED] http://www.gondwanastudio.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookies not being read - begging php 4 chapter 8 pg 283

2003-04-04 Thread Paul Kraus
rk. I thought I could just echo "face=$_POST['type_sel'] " <- but it does not work. if ( $_POST['type_sel'] ) echo "face=" . $_POST['type_sel'] . " "; if ( $_POST['size_sel'] ) echo "size=" . $_POST['size

RE: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283

2003-04-04 Thread Paul Kraus
the lines there do I need to turn of warnings or something? Paul -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:42 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283 I am working through the

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