Re: [PHP] Build Problem??

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 11:03 pm, [EMAIL PROTECTED] wrote: > Building PHP 4.3.4 with Apache 1.3, SAPI and CLI versions (no CGI) ... > > Now that I found the config command used for the last build, I rebuilt > PHP (config, make, make install) with one change -- at the end of the > config line I add

Re: [PHP] PHP Search Engine

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 11:20 pm, Leonard Burton wrote: > Has anyone on here created a search engine in PHP? Sure, of sorts, now and again, here and there, to some degree. Though it was at the lower end of search engine, possible devolving to web-scraping, when you get right down to it... > I h

Re: [PHP] comment more than a question

2005-11-08 Thread Terence
matt VanDeWalle wrote: I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured out

Re: [PHP] PHP Search Engine

2005-11-08 Thread Philip Hallstrom
HI All, Has anyone on here created a search engine in PHP? I have project to create a search engine that will search about 50K or so pages of information on 100 or so various domain names. What have you all done in the past? PHPdig was a failure. Do you recommend any of the ones that are for

Re: [PHP] No forums?

2005-11-08 Thread Vizion
On Tuesday 08 November 2005 17:32, the author Richard Lynch contributed to the dialogue on- Re: [PHP] No forums?: >On Fri, November 4, 2005 10:22 pm, John Nichel wrote: >> Larry E. Ullman wrote: >> >> >>> All that being said, I think everyone should send me $5. I've >>> monitored >>> this lis

Re: [PHP] security code

2005-11-08 Thread Chris
Try searching for CAPTCHA, that's what it's called. You should be able to find several PHP implementations, most likely requiring the GD library. Chris Clive wrote: Hi does any one have a class/function to generate those security code images. Yhe ones that you see on website that you must

[PHP] security code

2005-11-08 Thread Clive
Hi does any one have a class/function to generate those security code images. Yhe ones that you see on website that you must enter to submit a form thanks clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Search Engine

2005-11-08 Thread Nadim Attari
> HI All, > > Has anyone on here created a search engine in PHP? > > I have project to create a search engine that will search about 50K or > so pages of information on 100 or so various domain names. > > What have you all done in the past? PHPdig was a failure. > > Do you recommend any of the

Re: [PHP] comment more than a question

2005-11-08 Thread Leonard Burton
HI Matt, > i > would get the "unexpected $ on line > error, I've figured out that actually means you are missing a closing } or > a few > also tonight, I was working on a script, It will do this when you are missing a semi colon ";" at the end of a line. The error is happening when PHP is repor

[PHP] comment more than a question

2005-11-08 Thread matt VanDeWalle
I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured out what this meant, i would

[PHP] PHP Search Engine

2005-11-08 Thread Leonard Burton
HI All, Has anyone on here created a search engine in PHP? I have project to create a search engine that will search about 50K or so pages of information on 100 or so various domain names. What have you all done in the past? PHPdig was a failure. Do you recommend any of the ones that are for s

Re: [PHP] $pieces = explode(",", $_POST["fieldtype1"]);

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 12:00:06AM -0500, John Taylor-Johnston wrote: > Hi, > $pieces = explode(",", $_POST["fieldtype1"]); > > What is a way to echo each pieces[x] separately so I can echo them like > this: > > while(x=0 to xMax) > { > $sql .= "`".$pieces[x]."` \r\n"; > } Well, explode() retur

[PHP] Build Problem??

2005-11-08 Thread trlists
Building PHP 4.3.4 with Apache 1.3, SAPI and CLI versions (no CGI) ... Now that I found the config command used for the last build, I rebuilt PHP (config, make, make install) with one change -- at the end of the config line I added --enable-dbase. If I look at the phpinfo() output now, in both

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:52 PM, Ben Ramsey wrote: I know this is off-topic for this thread, but just as I see isset() misused (as in this case), I often see empty() misused. For example, when using empty(), the following all return TRUE: On second thought, "misused" is the wrong word. I mean "misundersto

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:38 PM, Richard Lynch wrote: If you want to stuff NULL into something, and then use is_null() that makes sense. If you want to stuff NULL in there, and then use isset(), I'm not quite sure why you'd put NULL in there in the first place, but I don't rightly know what I'd expect isset

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Chris Shiflett
Ben Ramsey wrote: To me, it's not a question of whether the sites are physically located on the same machine, and it's not a question of encrypting the session id. Anyone who even knows the encrypted session id could then POST it to the form in a replay attack, authenticating themselves as the in

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 11:32:33PM -0500, Ben Ramsey wrote: > On 11/8/05 10:27 PM, Tony Di Croce wrote: > > > >The sites are both physically located on the same machine. > > > >What if I encrypt the session_id, and put it in a "hidden" text input > >box in a form, that is delivered via POST to the

Re: [PHP] No forums?

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 10:00:27PM -0600, Richard Lynch wrote: > On Tue, November 8, 2005 9:47 pm, Curt Zirzow wrote: > > Richard Lynch: > > http://news.zirzow.dyndns.org/news.php/php.general/user/dbe152a0d3b3e8284b39cab6b1fdde7d/ > > Add in richard-AT-zend.com and rlynch-AT-ignitionstate.com and

Re: [PHP] Type of form element

2005-11-08 Thread Richard Lynch
On Mon, October 31, 2005 4:56 pm, Marcus Bointon wrote: > Yesterday I encountered an error in a large commercial php script and > it turned out that it was looking in $_SERVER['SERVER_NAME'] which > was there but set to NULL for some reason, and their test with isset > was failing. So it's not just

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
On 11/8/05 10:27 PM, Tony Di Croce wrote: The sites are both physically located on the same machine. What if I encrypt the session_id, and put it in a "hidden" text input box in a form, that is delivered via POST to the other site. This way, the session id is passed, but it is encrypted? To

Re: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 10:03 pm, David Tulloh wrote: > Richard Lynch wrote: > >>On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: >> >> >>>By setting the file readable only by root this problem is completely >>>eliminated. Unless a hacker has the root password, they will not be >>>able to com

Re: [PHP] No forums?

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 10:55:57PM -0500, Chris Shiflett wrote: > Curt Zirzow wrote: > >Here are some counts (per email address): > > Is this thing back? :-) > > It would be cool to see a top 10 or something. Almost. I ended up re-doing all the code, it took like 4 days just to fetch all the pos

Re: [PHP] Type of form element

2005-11-08 Thread Richard Lynch
On Mon, October 31, 2005 2:53 pm, Marcus Bointon wrote: > Take apart this operation: > > $a = isset($myarray['a']); > > Implicit in this simple line is a 'hidden' step which is to look up > the index 'a' in $myarray to get its value before testing if it is No. I don't care what the value is, and

[PHP] Re: CascadeSelectAssoc

2005-11-08 Thread Vedanta Barooah
sure go ahead, just respect the GPL, thanks, vedanta barooah On 11/9/05, Thomas Preuss <[EMAIL PROTECTED]> wrote: > Hello Vedanta, > > thanks for your nice php cascade menu class. Can we use this class in our > projects? > Roberto agreed on his part. > > Thanks, Thomas > > -Ursprüngliche Nachr

Re: [PHP] performance suggestions

2005-11-08 Thread James Benson
Thanks Richard Lynch wrote: On Thu, November 3, 2005 8:29 am, James Benson wrote: Dear group, can someone suggest the best way to do the following without writing some lengthy script that (possibly) could lead to performance issues, I have three DB fields in MySQL, each has a unique ID, I

[PHP] Re: Session's across Domains...

2005-11-08 Thread James Benson
Take a look at the PEAR sessionServer class http://pear.php.net/package/HTTP_SessionServer Tony Di Croce wrote: I have a server with a few virtual hosts. All of my scripts use "session_start()", and $_SESSION[] to share data between invocations of different scripts. The problem I'm having

Re: [PHP] No forums?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 9:47 pm, Curt Zirzow wrote: > Richard Lynch: > http://news.zirzow.dyndns.org/news.php/php.general/user/dbe152a0d3b3e8284b39cab6b1fdde7d/ Add in richard-AT-zend.com and rlynch-AT-ignitionstate.com and rlynch-AT-nwu.edu and rlynch-AT-ils.nwu.edu and rlynch-AT-cognitivearts.c

Re: [PHP] protect password?

2005-11-08 Thread David Tulloh
Richard Lynch wrote: On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: By setting the file readable only by root this problem is completely eliminated. Unless a hacker has the root password, they will not be able to compromise the information in this file. This is how I understand it, a

Re: [PHP] No forums?

2005-11-08 Thread Chris Shiflett
Curt Zirzow wrote: Here are some counts (per email address): Is this thing back? :-) It would be cool to see a top 10 or something. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP and MSSQL on Linux

2005-11-08 Thread Richard Lynch
On Tue, November 1, 2005 8:03 pm, Robbert van Andel wrote: > A few months back I wrote the list asking for help making a connection > to a > MS SQL database from our linux webserver. At that time I was able to > make a > successfull connection on Fedora Core 1 after installing php-mssql.rpm > and

Re: [PHP] protect password?

2005-11-08 Thread Chris Shiflett
Richard Lynch wrote: > By setting the file readable only by root this problem is > completely eliminated. Unless a hacker has the root password, > they will not be able to compromise the information in this > file. > > This is how I understand it, at least. If Chris reads this > perhaps he can co

Re: [PHP] creating images using php

2005-11-08 Thread Richard Lynch
On Wed, November 2, 2005 5:31 am, bala chandar wrote: > i know there is a support for Imagemagick in php. I have a doubt. Could be. > Please help me out. > I have to create a image in which a text which should insert a texture > withing it something like what we do with powerpoint word art. for e

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 8:16 am, Richard Heyes wrote: > Marcus Bointon wrote: >> The PEAR rfc822 class is pretty good, but it should be noted it's >> designed for parsing entire to, cc, bcc fields which may contain >> multiple addresses, and it's not quite as simple as asking it 'is >> this >> add

Re: [PHP] No forums?

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 07:32:06PM -0600, Richard Lynch wrote: > On Fri, November 4, 2005 10:22 pm, John Nichel wrote: > > Larry E. Ullman wrote: > > > >> All that being said, I think everyone should send me $5. I've > >> monitored > >> this list long enough to predict the most probable replies...

Re: [PHP] Reset STDIN pointer

2005-11-08 Thread Richard Lynch
On Wed, November 2, 2005 2:20 pm, John Nichel wrote: > There has to be a way to do thisreset the internal STDIN pointer > to > the begining but I'll be damned if I can find it. > > reset ( STDIN ); > > returns an error. No can do. It's a stream, not a file. You can't step in the same stream

Re: [PHP] performance suggestions

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 8:29 am, James Benson wrote: > Dear group, can someone suggest the best way to do the following > without > writing some lengthy script that (possibly) could lead to performance > issues, > > > I have three DB fields in MySQL, each has a unique ID, I cannot think > of > any

Re: [PHP] SSL & normal sessions stored differently?

2005-11-08 Thread Richard Lynch
Go through all the hoops to END the old session. Then start your new one. This *MIGHT* work to over-ride the auto_start in php.ini On Thu, November 3, 2005 8:42 am, Jesse Guardiani wrote: > Hello, > > I'm running php-4.3.2-19.ent under httpd-2.0.46-44.ent on Red Hat > Enterprise > Linux ES rel

Re: [PHP] Register Globals

2005-11-08 Thread Ben Ramsey
On 11/8/05 10:20 PM, Richard Lynch wrote: I change this line to: mail($to, stripslashes($_POST["subject"]), wordwrap($_POST["message"], 60), "From: $_POST["from"]\r\n"); "From: $_POST[from]\r\n" No quotes. No apostrophes. Nothin but index. You can also use curly braces: "From: {$_POST["fro

Re: [PHP] to the freelancers!!

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 7:15 pm, bruce wrote: > Just a quick question. Had a conversation with a person who works for > a > non-profit, and she was describing some of her dealings with obtaining > grants for the development of 'open source' apps.Got me to thinking. > If a > company sponsored the i

Re: [PHP] Register Globals

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 8:17 pm, John Taylor-Johnston wrote: > Ok, you are all used to working with register_gloabsl=off. > > mail($to, stripslashes($subject), wordwrap($message, 60), "From: > $from\r\n"); > > I change this line to: > > mail($to, stripslashes($_POST["subject"]), wordwrap($_POS

Re: [PHP] Register Globals (more)

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 10:00 pm, John Taylor-Johnston wrote: > Patience please :) > > See my html below. Basically, if type=checkbox is checked, I'm trying > to build $to string in mail(). > >>parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING >> or T_VARIABLE or T_NUM_STRING l

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
On 11/8/05 9:32 PM, Richard Lynch wrote: Call me crazy, but the session_id is already going in/out through Cookie headers. So, really, it's not THAT much less secure for it to go in POST, and only nominally less secure to go in GET, is it?... Okay, you're crazy. ;-) j/k [Hey, Richard!] Yeah,

Re: [PHP] match by relevancy

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 1:03 am, John Taylor-Johnston wrote: > I'm using PHP Version 4.3.9 and MySQL 4.1.12. I recently upgraded from > PHP 4.1.x and MySQL 4.0.x. > Basically my SQL below now render empty set. It worked until my > upgrade. > Basically "ORDER BY relevancy DESC" no longer works, I t

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 12:22 pm, Max Belushkin wrote: > On Saturday 05 November 2005 17:49, James Benson wrote: >> > I've had a different set of scripts employing a different >> "func.php". >> > However, in both of those, mquery() is defined. But >> > they do *not* include anything else, and the

Re: [PHP] PHP 4.4.1 on Apache 2.0.x issue

2005-11-08 Thread Richard Lynch
It SOUNDS like you have func.php including something that includes func.php... On Fri, November 4, 2005 5:16 am, Max Belushkin wrote: >Hi list, > > after upgrading to PHP 4.4.1, I'm having the following problem: > Apache is > running in prefork mode. index.php includes func.php, which defin

Re: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 8:59 am, Leonard Burton wrote: > What do I need to do to extract foo.bar from path/to/file.php/foo.bar > > $_SERVER['REQUEST_URI'] will return the whole string but is there > anything more direct than doing a regex and 'REQUEST_URI'? http://php.net/basename http://php.net/

Re: [PHP] [php] dependable combo boxes with mysql database

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 11:24 am, Bhoomi Vora wrote: > I have a php page which contains three combo boxes. > The first one will have the value > > from the mysql database table on page load itself. > > Then depending upon the value selected in the first > combobox the second combo box > > should b

Re: [PHP] reg ex help

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 12:09 pm, conditional motion wrote: > New to php so please bear with me. I'm trying to parse through a > field that has some information in it, the information is stored with > other information and is delimited in a certain pattern so I figure > using reg ex I can get the

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 7:32 pm, Ben Ramsey wrote: > I think the approach here will need to err on the site of caution. You > don't want to pass the session identifier through the URL (or POST) > too > much because it risks exposure and the possibility for session > hijacking, though it should be

Re: [PHP] Session's across Domains...

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 6:50 pm, Tony Di Croce wrote: > I have a server with a few virtual hosts. All of my scripts use > "session_start()", and $_SESSION[] to share data between invocations > of > different scripts. > > The problem I'm having is that if a form on site A submits to a script > on >

RE: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: > By setting the file readable only by root this problem is completely > eliminated. Unless a hacker has the root password, they will not be > able to compromise the information in this file. > > This is how I understand it, at least. If Chris

RE: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 5:36 pm, bruce wrote: > pablo... > > i fail to see how your suggestion is much more secure than placing the > user/passwd information in a file that's outside the web access space, > and > then including the file. > > in either case, the user wouldn't be able to read the in

Re[2]: [PHP] No forums?

2005-11-08 Thread Richard Davey
Hi Murray, Wednesday, November 9, 2005, 1:34:12 AM, you wrote: > Hmmm, thank you for mentioning this forum, I wasn't previously aware > of it. I know phpBB has been criticized previously for > behind-the-scenes code quality, though it seems like a fairly mature > online forum package while using

Re: [PHP] Determining Built Configuration

2005-11-08 Thread trlists
On 8 Nov 2005 Richard Lynch wrote: > You should run it from the browser, and from the CLI separately, as > they could be different builds. I had wondered about that but they are the same build. I was planning to double-check anyway. > There is also config.nice if it was installed from source.

RE: [PHP] protect password?

2005-11-08 Thread Richard Lynch
Ooooh! We both forgot to warn you: Be VERY careful with and var_dump($_SERVER) and similar coding practices. You're dumping out your username/password in plaintext at that point with this technique! TANSTAAFL! On Fri, November 4, 2005 5:16 pm, Pablo Gosse wrote: > [snip] > Some functions ne

Re: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 2:36 pm, Bing Du wrote: > Some functions need you to provide username and password, for instance > odbc_connect. Even though the username/password just has minimum > access > privileges to the resource, putting it there in clear text in a script > gives > me heartburn. Ho

Re: [PHP] No forums?

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 10:22 am, Death Gauge wrote: > Forums and mailinglists like this are about the same. Forums has image > content though while mailing lists just have text content. You get the > same > replies as you would with the other so be happy that they at least > have this > mailing l

Re: [PHP] No forums?

2005-11-08 Thread Murray @ PlanetThoughtful
Richard Davey wrote: I agree 99% with you, the majority are (excuse my French) utter shite. *but* the code quality, features and stability of the excellent FUD Forum thankfully doesn't fall into the camp you describe. While I don't use it myself, you only need to take a quick look at the code a

[PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
On 11/8/05 7:50 PM, Tony Di Croce wrote: I have a server with a few virtual hosts. All of my scripts use "session_start()", and $_SESSION[] to share data between invocations of different scripts. The problem I'm having is that if a form on site A submits to a script on site B the values stashed

Re: [PHP] No forums?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 10:22 pm, John Nichel wrote: > Larry E. Ullman wrote: > >> All that being said, I think everyone should send me $5. I've >> monitored >> this list long enough to predict the most probable replies... > > Bah, I've got 10 times the posts you do since 2002, just from this > e

Re: [PHP] Template style question

2005-11-08 Thread Robert Cummings
On Tue, 2005-11-08 at 20:21, Richard Lynch wrote: > On Tue, November 8, 2005 6:23 pm, Robert Cummings wrote: > > > > I don;t think your the target audience, you don't see the need for OOP > > either :/ > > au contraire! > > I see [have seen] many needs for OOP. > > The largest group of those nee

Re: [PHP] Template style question

2005-11-08 Thread Leonard Burton
HI All, Here is what I have done for now. title [[header]] [[sql sql="select user, level, ts from users order by user"]] UserClearanceTimestamp @[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED] [[footer]] Fist I preg_split the template on each tag designed for the template (i.

Re: [PHP] Using the echo tag...

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 5:52 pm, Curt Zirzow wrote: > On Tue, Nov 08, 2005 at 06:32:00PM -0500, Paul Williams wrote: >> Nope sorry. It says this error " >> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, >> expecting >> T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Aby

Re: [PHP] Using the echo tag...

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 5:32 pm, Paul Williams wrote: > Nope sorry. It says this error " > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting > T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web > Server\htdocs\document1.php on line 6 > " Show us EXACTLY

Re: [PHP] Template style question

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 6:23 pm, Robert Cummings wrote: > On Tue, 2005-11-08 at 19:04, Richard Lynch wrote: >> On Sat, November 5, 2005 5:03 pm, Leonard Burton wrote: >> > On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote: >> >> On Sat, 2005-11-05 at 14:55, James Benson wrote: >> >> > Give sma

Re: [PHP] PGP 5 start up issue

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 8:46 pm, Vizion wrote: > php 5 on windows xp with apache 2 and mysql 5. > > Php start up unable to load dynamic library: > E:\php\ext\php_bz2.dll with error 'The specified module could not be > found' > same for and php_yaz.dll > I have php5ts.dll in both E:\php\ and E:\ph

Re[2]: [PHP] No forums?

2005-11-08 Thread Richard Davey
Hi Richard, Wednesday, November 9, 2005, 12:40:12 AM, you wrote: > There are no decent PHP forum software packages that aren't riddled > with security problems and really nasty PHP code. I sincerely wish > the preceding statement were false, as my clients ask me for forums > and I just say "No."

Re: [PHP] Re: No forums?

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 6:34 am, Finner, Doug wrote: > Wow, go away for a few days and holy war breaks out...cool! > > Why not one system that supports both without extra work? The model > I'm > thinking of is Google or Yahoo groups(*). You can access any 'forum' > via a web browser, search, pos

[PHP] Session's across Domains...

2005-11-08 Thread Tony Di Croce
I have a server with a few virtual hosts. All of my scripts use "session_start()", and $_SESSION[] to share data between invocations of different scripts. The problem I'm having is that if a form on site A submits to a script on site B the values stashed in $_SESSION[] appear to be lost... Should

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
Thanks once again, Chris. I must read that guide. Have a nice day! Chris Shiflett wrote: Gustavo Narea wrote: I found a document titled "A Guide to Building Secure Web Applications" while I was reading one of the documents you suggested us,

Re: [PHP] No forums?

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 9:09 pm, GamblerZG wrote: > AFAIK, there are no "official" forums for PHP. Considering the fact > that > PHP is a web development tool, such distaste for message boards is > ironic at the least. So why exactly there aren't any forums on > php.net? There are no decent PHP f

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
Thanks for the explanation, Richard. I'll definitely take it into account. So, let's distrust *everything*. Best regards. Richard Lynch wrote: On Tue, November 8, 2005 9:43 am, Gustavo Narea wrote: *Distrust everything coming from your users, even their user agents* *I

Re: [PHP] Template style question

2005-11-08 Thread Robert Cummings
On Tue, 2005-11-08 at 19:04, Richard Lynch wrote: > On Sat, November 5, 2005 5:03 pm, Leonard Burton wrote: > > On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> On Sat, 2005-11-05 at 14:55, James Benson wrote: > >> > Give smarty a try rather than re-inventing the wheel > >> > > >> > http

Re: [PHP] How to read Byte Stream

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 2:11 am, kumar kumar wrote: > I am Software Engineer in hyderabad . if possible i > need some help in PHP. > > we are developing one applet that will upload the > files/folders upto 2gb . the applet will send the file > in bytes stream via http . At server side the PHP has

Re: [PHP] How can I track the value in php

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 3:44 am, shining wrote: > I am php beginner, I have a question: > in my index page, I firstly inlcude_once a A.php file, where i defined > an > array, secondly I include another .php file named B.php, where I want > to use > the array, I have claimed it as global type, but

Re: [PHP] Template style question

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 5:03 pm, Leonard Burton wrote: > On 11/5/05, Robert Cummings <[EMAIL PROTECTED]> wrote: >> On Sat, 2005-11-05 at 14:55, James Benson wrote: >> > Give smarty a try rather than re-inventing the wheel >> > >> > http://smarty.php.net > > Reinventing the wheel is much better tha

Re: [PHP] Template style question

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 1:10 pm, Leonard Burton wrote: > Greetings, > > HI All, I hope all is well. > > I have set up a template parser. Basically, it parses the template > and finds tags with tag_name.dat file and then includes the > tag_name.dat file. I have considered a few other options but

Re: [PHP] php mac folder

2005-11-08 Thread Richard Lynch
Find the "terminal" program and open it up. It will be kind of like an MS-DOS prompt, only it's more like FreeBSD/OpenBSD which is like Linux/Unix... At any rate, you'll need these to get started: cd (same as MS-DOS) ls (dir on MS-DOS) .. (same as MS-DOS) / (directory separator, sort of like n

Re: [PHP] preg for unicode strings?

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 3:02 pm, Andy Pieters wrote: > Hi List > > I am doing some data validation and the following regexp fails > > [\W] > > When using characters like £ or € > > Obviously because they are technically more then one character, even > though > they are only displayed as one. >

Re: [PHP] phpmyadmin problems with quoting exported text

2005-11-08 Thread Richard Lynch
On Sun, November 6, 2005 2:17 am, Chris W wrote: > I just tried to use the output of the export function on phpmyadmin > and > got a million errors. After looking at the file I found that certain > columns that are strings were not quoted at all. I can't find any > reason why some are and some ar

Re: [PHP] Using the echo tag...

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 06:32:00PM -0500, Paul Williams wrote: > Nope sorry. It says this error " > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting > T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web > Server\htdocs\document1.php on line 6 > " Acutall

Re: [PHP] filemtime doesn't always copy correctly

2005-11-08 Thread Richard Lynch
On Sun, November 6, 2005 7:37 am, David T. Kotchen wrote: > I am backing up a file (the path & filename of which are stored in > $original; the path & filename of the copy are stored in $bkup). I > would also like to copy the file modification time of $original, so, > after copying the file itself

Re: [PHP] use SMB share to run php files

2005-11-08 Thread Richard Lynch
On Sun, November 6, 2005 1:32 pm, Ross wrote: > Ok been looking into in and know a bit of terminology now. > > I have an SMB share on my mac which is my WWWROOT folder on my windows > computer. These files have all permissions enabled so I can edit in > dreamweaver (on mac). All I want to so is set

Re: [PHP] Using the echo tag...

2005-11-08 Thread Paul Williams
Nope sorry. It says this error " Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web Server\htdocs\document1.php on line 6 " Thank you. Sincerely, Paul Lee Williams III From: "Richard Lynch" <[

Re: [PHP] Creating PDF from a Image

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 9:20 am, Manoj Kr. Sheoran wrote: > PNG doen't support CMYK color scheme that's why I want to convert it > in JPG > first and then I want to create pdf file from that PJG file. I created > pdf > file from PJG using fpdf but no idea that how to I convert PNG to jpg > file >

Re: [PHP] Creating PDF from a Image

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 2:06 am, Manoj Kr. Sheoran wrote: > Hi All, > To create fdf with text info is very simple but I am wondering how to > convert a PNG image into pdf file? As I recall... You don't. You convert it to JPEG and pull that in. Actually, libPDF may support PNG now, and maybe e

Re: [PHP] Using the echo tag...

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 11:31 am, Paul Williams wrote: > I'm relatively new at coding PHP but I was hoping someone can help me > with > this. > > > > I'm trying to write the following code into my program but each time > it > runs, I get an error message. Can anyone help? > > > > print EOF Y

Re: [PHP] FileExists?

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 1:45 pm, Gustav Wiberg wrote: > File_exists doesn't seem to work with URLs that point to another > domain. > What to use? > > $x = fopen(http://www.stammis.com/getstart.php); There are no quotes on that URL... I'd be surprised if this doesn't error out, but maybe you just

Re: [PHP] Re: Attachments and SendMail()

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 4:00 pm, Todd Cary wrote: > I figured it out! The base location for SendMail is the php > directory. > Now that I think about it, that makes sense. Personally, I would recommend finding out what the absolute path is anyway. You'll need it sooner or later. Unfortunatel

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 2:55 pm, Gustavo Narea wrote: > I found a document titled "A Guide to Building Secure Web > Applications" > while I was reading > one of the documents you suggested us, and I would like to know what > do > you think about i

[PHP] Re: php5 / php4 - MySQL/SQLite

2005-11-08 Thread Petr Smith
Danny wrote: Hi, Let me open a discussion about php5 / php4 Why upgrade? It worth? Benefits? Code programming changes? Is there and end-of-life for php4, in the near/medium future? What about MySQL and SQLite. What is the future of both? I would like to open a discussion about the future of b

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 9:43 am, Gustavo Narea wrote: > *Distrust everything coming from your users, >even their user agents* > >*If you make your scripts taking this into account, > they'll be pretty secure* > > > Actually, I believe that the one thing you c

Re: [PHP] Security Issues - Where to look?

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 3:50 pm, Richard wrote: > I've heard that php is not particularly secure, making it problematic > if you > intend to create a web site with commerce, etc. Is there a particular > news > group that addresses security issues? I'm looking for some guidlines > on > ensuring tha

[PHP] Re: Attachments and SendMail()

2005-11-08 Thread Todd Cary
I figured it out! The base location for SendMail is the php directory. Now that I think about it, that makes sense. Todd Todd Cary wrote: I have had to move an application for a client from a dedicated server to a shared server. On the dedicated server, the path to the attachements was an

Re: [PHP] Query regarding total count of pages in a site....

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 7:28 am, Suresh Pandian wrote: > I need to find the number of webpages in a site.. > is there any inbuilt variables in php to find it. > Reply , if u have any valuable suggessions.. > thanks. In your own site? Or in somebody else's? And what counts

[PHP] Attachments and SendMail()

2005-11-08 Thread Todd Cary
I have had to move an application for a client from a dedicated server to a shared server. On the dedicated server, the path to the attachements was an absolute address of "/home/sites/home/web/php/images/raceschd.pdf"; and all worked fine when I gave that as the location of the attachement:

Re: [PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Dan Trainor
Dan Trainor wrote: > Curt Zirzow wrote: > >>On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote: >> >> >>>Dan Trainor wrote: >>> >>> Good afternoon, all - I've had problems with auto_prepend_file off and on for as long as I can remember. It's hit or miss, and browsing the

Re: [PHP] Fixing ID's in mySQL Table

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 7:37 am, Rahul S. Johari wrote: > Is there a way to fix ID sequence in a MySQL table using PHP? > Basically I have some tables with a lot of records, 1000 to 5000. > ŒID¹ is > the Primary Key column in these tables, and at the time the code was > originally written, there

Re: [PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 02:25:03PM -0700, Dan Trainor wrote: > Curt Zirzow wrote: > > On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote: > >>... > >> > >> > >>DocumentRoot /var/www/virtual > >>... > >># begin dan's protected directory stuff > >> > >>

Re: [PHP] mail return-path problem

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 9:47 am, Eric Butera wrote: > I was just curious if there was a way to set the return path of an > email > dynamically. I've looked around and all I could find was a Zend > tutorial > running sendmail from the command line, which I don't want to do. :) > > I tried setting "

  1   2   >