Re: [PHP] Catch the WMV first frame picture in PHP script?

2005-11-08 Thread M
張 峰銘 wrote: > Hello: > > I'm try to design WMV movie upload system im my school. > > when teachers upload the wmv movie to the web , > I hope I can grab the first frame picture of wmv > and save it to a jpeg file. > > Dose any one do that before ? Is is difficult to implement in PHP ? >

[PHP] Command line vs Cron

2005-11-08 Thread Dan Seibert
I have a script that connects to a sybase server. It works fine if I launch it from a shell script however, if I try to launch the same script through a cron, I get the message "PHP Fatal Error: call to undefined function sybase_connect..." Why can I not connect to sybase through a cron but I

Re: [PHP] Command line vs Cron

2005-11-08 Thread Richard Heyes
Dan Seibert wrote: I have a script that connects to a sybase server. It works fine if I launch it from a shell script however, if I try to launch the same script through a cron, I get the message "PHP Fatal Error: call to undefined function sybase_connect..." Why can I not connect to sybase

[PHP] php5 / php4 - MySQL/SQLite

2005-11-08 Thread Danny
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 both related to

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

2005-11-08 Thread Jochem Maas
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] Security Issues - Where to look?

2005-11-08 Thread Paul Waring
On Mon, Nov 07, 2005 at 01:50:59PM -0800, 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 t

[PHP] Re: phpmyadmin problems with quoting exported text

2005-11-08 Thread David Robley
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 are not quoted. Anyone have any idea

Re: [PHP] Command line vs Cron

2005-11-08 Thread Dan Seibert
Richard Heyes wrote: Dan Seibert wrote: I have a script that connects to a sybase server. It works fine if I launch it from a shell script however, if I try to launch the same script through a cron, I get the message "PHP Fatal Error: call to undefined function sybase_connect..." Why can I

Re: [PHP] Command line vs Cron

2005-11-08 Thread Richard Heyes
Dan Seibert wrote: Richard Heyes wrote: Dan Seibert wrote: I have a script that connects to a sybase server. It works fine if I launch it from a shell script however, if I try to launch the same script through a cron, I get the message "PHP Fatal Error: call to undefined function sybase_co

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

2005-11-08 Thread Robbert van Andel
I recently upgraded to PHP5 and had no issues with code incompatibilities. I believe we ran PHP 4.10 (I don't remember the exact version). Honestly, I haven't seen that many benefits but I don't write that many scripts that use advanced OOP methodology. -Original Message- From: Danny [ma

Re: [PHP] is there a number translation function?

2005-11-08 Thread Danny
http://www.phpguru.org/TextualNumberExample.php?number=3450 Regards. Salu2 On 10/29/05, Linda H <[EMAIL PROTECTED]> wrote: > > Hi, > > Does anyone know of a function for translating a decimal number into an > English number. In other words, if you pass it 1 it will return 'one', if > you pass it

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

2005-11-08 Thread Suresh Pandian
Hello, I need to find the number of webpages in a site.. is there any inbuilt variables to find it. Reply , if u have any valuable suggessions.. thanks. Suresh.P - Enjoy this Diwali with Y! India Click here

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

2005-11-08 Thread Suresh Pandian
Hello, 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. Suresh.P - Enjoy this Diwali with Y! India Click here

[PHP] Fixing ID's in mySQL Table

2005-11-08 Thread Rahul S. Johari
Ave, 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 weren¹t much verification of data being input going on. Thus

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

2005-11-08 Thread Gustav Wiberg
- Original Message - From: "Rahul S. Johari" <[EMAIL PROTECTED]> To: "PHP" Sent: Tuesday, November 08, 2005 2:37 PM Subject: [PHP] Fixing ID's in mySQL Table Ave, 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

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

2005-11-08 Thread Miles Thompson
At 09:37 AM 11/8/2005, Rahul S. Johari wrote: Ave, 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 weren¹t mu

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

2005-11-08 Thread Rahul S. Johari
Ave, This is what I need to do. Let's say, my ID's in a table look like this: 1 7 9 11 12 19 26 27 29 30 I need to alter the table so that the ID's are in a sequence like this: 1 2 3 4 5 6 7 8 9 10 It's easy to manually do this if you have a table with 10 records, but you can't do it manually

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

2005-11-08 Thread Larry E. Ullman
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 weren’t much verification of data being input going on. Thus

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

2005-11-08 Thread Gustav Wiberg
- Original Message - From: "Larry E. Ullman" <[EMAIL PROTECTED]> To: "Rahul S.Johari" <[EMAIL PROTECTED]> Cc: "PHP" Sent: Tuesday, November 08, 2005 3:38 PM Subject: Re: [PHP] Fixing ID's in mySQL Table Is there a way to fix ID sequence in a MySQL table using PHP? Basically I have s

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

2005-11-08 Thread Richard Davey
Hi Suresh, Tuesday, November 8, 2005, 1:28:47 PM, you wrote: > I need to find the number of webpages in a site.. is there any > inbuilt variables in php to find it. I need to find the number of socks in my washing basket. Does PHP have an inbuilt function to do it? No, of course it does

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

2005-11-08 Thread Gustavo Narea
*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 can trust in, is their IP addresses. Isn't it? By the way, I liked th

[PHP] mail return-path problem

2005-11-08 Thread Eric Butera
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 "Return-Path:" in the mail() headers, but that didn't seem to make

Re: [PHP] mail return-path problem

2005-11-08 Thread Richard Heyes
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 "Return-Path:" in the mail() headers, but that

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

2005-11-08 Thread Georgi Ivanov
You van do this : 1.Create new table with exactly the same structure as orig table. 2.Create little php script which does this : select * from origTBL while($line=mysql_fecth_array($res)){ insert into newtbl values() } In the new tbl yuo will have the records ordered. Than just

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

2005-11-08 Thread Rahul S. Johari
Thanks! On 11/8/05 11:49 AM, "Georgi Ivanov" <[EMAIL PROTECTED]> wrote: > You van do this : > 1.Create new table with exactly the same structure as orig table. > 2.Create little php script which does this : > select * from origTBL > while($line=mysql_fecth_array($res)){ > insert into newtbl val

[PHP] Determining Built Configuration

2005-11-08 Thread trlists
I need to rebuild PHP on a Linux box (RHEL). It has been built there before but I cannot locate the proper command line for configure -- config.status is no longer accurate as configure was run with no arguments. Is the old configure command line saved in a log somewhere? If not is there a si

Re: [PHP] Determining Built Configuration

2005-11-08 Thread Minuk Choi
can you get the output from phpinfo()? That is, create a file, phpinfo.php with the following and then put that in your htdocs/html directory so you can browse it with your internet browser... there should be a configure block on that page with all the options listed -Minuk [EMAIL PROTECT

Re: [PHP] Determining Built Configuration

2005-11-08 Thread trlists
On 8 Nov 2005 Minuk Choi wrote: > can you get the output from phpinfo()? Thanks. I've used phpinfo() many times but never looked at that bit of the output. It's exactly what I needed. -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

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

2005-11-08 Thread Geert Booster
On 2005-11-05, Max Belushkin <[EMAIL PROTECTED]> wrote: > How can this be happening? I do not know, but since a downgrade to 4.4.0 > fixed it all back proper, I am seriously beginning to suspect a problem or > undocumented (widely documented, at least) change in PHP 4.4.1 on FreeBSD > ports.

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

2005-11-08 Thread Chris Shiflett
Gustavo Narea wrote: By the way, I liked the link that Pablo suggested: http://www.devshed.com/c/a/PHP/PHP-Security-Mistakes/ Be careful. There is a lot of misinformation out there regarding PHP security, and this article is a good example. Here's something that caught my eye: "The second s

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

2005-11-08 Thread bruce
if you really want to get into a conversation about security... it might be time to try to figure out how to create a security app/process which could be used to validate that an app is secure. the process could be a function of an automated app that looks/inspects code, as well as a manual process

[PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Dan Trainor
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 archives, it looks like I'm not alone. I've even written to the list on several occasions looking for a solution, to no avail. I think that auto_{prepend,a

[PHP] PEAR on PHP 5+?

2005-11-08 Thread Minuk Choi
I can't seem to get pear to work correctly. if I type [/]# pear install DB I get the usage printed out back(no error message, no action) and if I go to the PHP-5.0.4/lib/php directory, I get [PHP-5.0.4/lib/php]# pear install DB Fatal error: Call to undefined function: getoptions() in /usr/b

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

2005-11-08 Thread Dan Trainor
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 archives, it looks like > I'm not alone. I've even written to the list on several occasions > looking for a solution, to no avail

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

2005-11-08 Thread Jasper Bryant-Greene
On Tue, 2005-11-08 at 13:36 -0700, Dan Trainor wrote: [snip] > > So, as you can see, nothing completely out of the 'norm. The examples > > given in the manual are not all that clear, so by using absolute path > > names, I'm just guessing. I have used relative paths as well - same thing. > > > >

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

2005-11-08 Thread Gustavo Narea
Hello, Chris. I will take into account what you said. It is right what you mentioned regarding that example. We have to take into account that cookies can be stolen. Thanks for the URLs, I will visit them. Cheers. Chris Shiflett wrote: Gustavo Narea wrote: By the way, I liked the link th

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

2005-11-08 Thread Dan Trainor
Jasper Bryant-Greene wrote: > On Tue, 2005-11-08 at 13:36 -0700, Dan Trainor wrote: > [snip] > >>>So, as you can see, nothing completely out of the 'norm. The examples >>>given in the manual are not all that clear, so by using absolute path >>>names, I'm just guessing. I have used relative paths

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

2005-11-08 Thread Jasper Bryant-Greene
On Tue, 2005-11-08 at 13:43 -0700, Dan Trainor wrote: > Well, the problem is simple; it just doesn't work. No script is > prepended to the page that I access from within /demo/protected. My > prepend script consists of the following line of code: > > "; ?> > > Sorry about that. Thanks. Have y

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

2005-11-08 Thread Dan Trainor
Jasper Bryant-Greene wrote: > On Tue, 2005-11-08 at 13:43 -0700, Dan Trainor wrote: > >>Well, the problem is simple; it just doesn't work. No script is >>prepended to the page that I access from within /demo/protected. My >>prepend script consists of the following line of code: >> >>"; ?> >> >>

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

2005-11-08 Thread Gustavo Narea
Hello. 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 it? -- Best regards, Gustavo Narea. PHP Documentation

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

2005-11-08 Thread Chris Shiflett
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 it? The OWASP Guide is good, but that site

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

2005-11-08 Thread Curt Zirzow
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 archives, it looks like > > I'm not alone. I've even writt

[PHP] A question...

2005-11-08 Thread Tony Di Croce
Are variables that are stored in the $_POST[] array ever communicated to the browser? Im using PHP sessions, and I store lots of variables in $_POST[]... If I use $_POST[] to communicate variables from 1 php script to another, is that insecure? -- for only the most hard core geekstas... http://ge

Re: [PHP] A question...

2005-11-08 Thread Chris Shiflett
Tony Di Croce wrote: Are variables that are stored in the $_POST[] array ever communicated to the browser? It's quite the opposite. $_POST is populated with data from the content of a POST request sent by the browser. Im using PHP sessions, and I store lots of variables in $_POST[]. Can y

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

2005-11-08 Thread Dan Trainor
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 archives, it looks like >>>I'm not a

Re: [PHP] A question...

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 3:10 pm, Tony Di Croce wrote: > Are variables that are stored in the $_POST[] array ever communicated > to the > browser? > > Im using PHP sessions, and I store lots of variables in $_POST[]... If > I use > $_POST[] to communicate variables from 1 php script to another, is

Re: [PHP] Determining Built Configuration

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 11:36 am, [EMAIL PROTECTED] wrote: > I need to rebuild PHP on a Linux box (RHEL). It has been built there > before but I cannot locate the proper command line for configure -- > config.status is no longer accurate as configure was run with no > arguments. Is the old confi

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 "

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

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

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

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

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

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

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

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

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

  1   2   >