Re: [PHP] Thumbnail Problem

2004-08-13 Thread Jason Wong
On Thursday 12 August 2004 21:05, Me2resh wrote: > i have a class that generates thumbnails without making actual file on the > server > it works good on my local server > but on my web hosting it gives me " > Fatal error: Call to undefined function: exif_imagetype() in > /home/me2resh/public_html

Re: [PHP] Looking for article]

2004-08-13 Thread EE
Sorry I did not send it to the list --- Begin Message --- Check out phpbuilder; the article is named Building Dynamic Pages With Search Engines in Mind http://phpbuilder.com/columns/tim2526.php3?aid=20 Hope this helps On Fri, 2004-08-13 at 07:44, Curt Zirzow wrote: > * Thus wrote Ashley M.

Re: [PHP] Looking for article

2004-08-13 Thread Philip Olson
Read this faqts: How can I pass variables to a script in the url like /script/var1/var2 http://www.faqts.com/knowledge_base/view.phtml/aid/124/fid/6 Regards, Philip On Thu, 12 Aug 2004, Ashley M. Kirchner wrote: > > Anyone have an article written, or can point me to one that talk

Re: [PHP] Template Question

2004-08-13 Thread John Holmes
Jonathan Hadddad wrote: if there's any PHP code in the template file, it just gets echoed to the page. is there any way to have the code between the evaluated instead of just echoed?? I realize an include would work, but the goal is to use a single file as the template. anyone got any suggestion

[PHP] PHP bug tracker, it is freely available

2004-08-13 Thread Jean-Christian Imbeault
I absolutely love the PHP bug tracker and was wondering if it freely available software or software internal to php.net only? I've looked around but can't find a link to it anywhere. -- Jean-Christian Imbeault Assistant Manager Technology Department _ Mizuho S

[PHP] access a file

2004-08-13 Thread Curlys
hi , when run this script from the command prompt, it is working. Terminated the application ... but , when it is put this file in a apache web server run via web browser ( accessing a URL with a Link ) it doesn't work . what should i have to do ? thanx curlys -- PHP General

RE: [PHP] Help SQLServer connection: What's "server_name"??

2004-08-13 Thread Fernando Verdu Castillo
> [snip] > Hi all, that's my first question here, I'm not subscribed. > > I'm tring to connect a local DB (Apache+sqlserver2K), but when I execute > this > simple example: > > $conectID = mssql_connect(,"SA",""); > mssql_select_db("Northwind"); > $result=mssql_query("select * from products",

Re: [PHP] access a file

2004-08-13 Thread raditha dissanayake
Curlys wrote: hi , when run this script from the command prompt, it is working. shell_exec ('killall -HUP abc.pl'); ?> Terminated the application ... but , when it is put this file in a apache web server run via web browser ( accessing a URL with a Link ) it doesn't work . what sho

Re: [PHP] access a file

2004-08-13 Thread John Holmes
Curlys wrote: when run this script from the command prompt, it is working. shell_exec ('killall -HUP abc.pl'); ?> Terminated the application ... but , when it is put this file in a apache web server run via web browser ( accessing a URL with a Link ) it doesn't work . what should i

Re: [PHP] access a file

2004-08-13 Thread Curlys
-rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php group and owner like this , how does it workable plz help thanx curlys - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "Curlys" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Friday, August 1

Re: [PHP] PHP bug tracker, it is freely available

2004-08-13 Thread Christian Stocker
http://cvs.php.net/php-bugs-web/ chregu On Fri, 13 Aug 2004 18:18:45 +0900, Jean-Christian Imbeault <[EMAIL PROTECTED]> wrote: > I absolutely love the PHP bug tracker and was wondering if it freely > available software or software internal to php.net only? > > I've looked around but can't find a

Re: [PHP] access a file

2004-08-13 Thread Hannes Magnusson
Web server user & group, not the file. what user own the file "abc.pl" ? is it the same user as is running httpd ? - Hannes On Fri, 13 Aug 2004 16:14:55 +0600 [EMAIL PROTECTED] (Curlys) wrote: > -rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php > > group and owner like this , >

Re: [PHP] Thumbnail Problem

2004-08-13 Thread Hannes Magnusson
On Fri, 13 Aug 2004 15:18:20 +0800 [EMAIL PROTECTED] (Jason Wong) wrote: > On Thursday 12 August 2004 21:05, Me2resh wrote: > > i have a class that generates thumbnails without making actual file on the > > server > > it works good on my local server > > but on my web hosting it gives me " > > Fa

[PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Harlequin
Can someone help with this please...? if( strlen( $UserID ) != 0 & strlen( $UserPassword ) != 0 & strlen( $SecretPassword ) != 0 & strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0 or strlen( $SecretPassword ) == 0 or strlen( $UserMail ) ==

Re: [PHP] weird error, might be javascript?

2004-08-13 Thread Harlequin
I have had similar problems in the past Angelo and viewing the source of the HTML file usually helps identify and localise the problematic line. -- - Michael Mason Arras People www.arraspeople.co.uk - "John Holmes" <[EMAIL PROTECTED]> wro

[PHP] ello! =))

2004-08-13 Thread thies
Argh, i don't like the plaintext :) ..btw, "02017" is a password for archive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jason Wong
On Friday 13 August 2004 19:33, Harlequin wrote: > Can someone help with this please...? > > if( strlen( $UserID ) != 0 > & strlen( $UserPassword ) != 0 > & strlen( $SecretPassword ) != 0 > & strlen( $UserMail ) != 0 ) > { > Do something > } > elseif ( strlen( $UserID ) == 0 > or strlen( $UserPassw

RE: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jay Blanchard
[snip] Can someone help with this please...? if( strlen( $UserID ) != 0 & strlen( $UserPassword ) != 0 & strlen( $SecretPassword ) != 0 & strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0 or strlen( $SecretPassword ) == 0 or strlen( $UserMa

Re: [PHP] weird error, might be javascript?SOLVED

2004-08-13 Thread Angelo Zanetti
Hi, Well I had to basically reconstruct my Javascript file by uncommenting a function and testing that it didnt give an error. I eventually found a small error. It was a really long process and the line numbers in the errrors didnt help. So, thanks to those that contributed anyway. Angelo >>>

[PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... Anyhoo, In the mail() function, if I use the final field for the From: attribute. I'm having probs... HAving: ..."From: [EMAIL PROTECTED]"); doesn't work on all recipients... BUT.. ..." From: justana

[PHP] PHP 5.0.1 is out, so is WAMP5 1.2 for Windows !

2004-08-13 Thread Romain Bourdon
The new version of WAMP5 is now online. WAMP5 now includes PHP 5.0.1, the PECL extensions, sqlitemanager 0.9.8. Many other new features have been added, to know them see the changelog on the wampserver web site : http://www.en.wampserver.com Of course you can directly upgrade from version 1.0 or

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
[EMAIL PROTECTED] wrote: I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... You could send out just one mail, and put all the names in the BCC field. Save yourself a few SMTP connections. I think there's a limit to how many addresses you can have in a

Re: [PHP] access a file

2004-08-13 Thread Peter Risdon
Curlys wrote: -rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php group and owner like this , how does it workable plz help chown www /path/to/zeed.php Peter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] access a file

2004-08-13 Thread raditha dissanayake
Curlys wrote: -rwxr-xr-x1 root root 133 Aug 13 15:48 zeed.php group and owner like this , how does it workable plz help thanx curlys The fact that root owns the php script does not mean it runs as root - you need the suexec or sudo mechanism for that and it's described in t

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
[EMAIL PROTECTED] wrote: I've tried just having a name, and it still doesn't reach my notes based E-mail... :-( Hmmm, also, how do you specify to send in the BCC field, using the mail() function? In the headers http://us4.php.net/manual/en/function.mail.php mail ( to, subject, message [, addi

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I've tried just having a name, and it still doesn't reach my notes based E-mail... :-( Hmmm, also, how do you specify to send in the BCC field, using the mail() function? All in all, we're getting there..! -John Nichel <[EMAIL PROTECTED]> wrote: - To: [EMAIL PROTECTED] From: John N

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Stephan Fiedler
Hi Tristan, [EMAIL PROTECTED] wrote: HAving: ..."From: [EMAIL PROTECTED]"); doesn't work on all recipients... BUT.. ..." From: justaname"); Works on others... but not all...? Surely this can't be? I've never come accross this before? Any ideas what's up? Well, what I do when sending mail with a

RE: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Ford, Mike [LSS]
On 13 August 2004 12:52, Jay Blanchard wrote: > if( strlen( $UserID ) != 0 > && strlen( $UserPassword ) != 0 > && strlen( $SecretPassword ) != 0 > && strlen( $UserMail ) != 0 ) > { > Do something > } > elseif ( strlen( $UserID ) == 0 > > > strlen( $UserPassword ) == 0 > > > strlen( $SecretPassword

[PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
OK, so it wasn't the nut behind the wheel after all. I am still having problems with sessions after upgrading to PHP 4.3.8. The test code below works as expected on server equipped with PHP 4.3.6 and keeps the session start time the same no matter what link you click on. However with version 4.

[PHP] Email Address Testing

2004-08-13 Thread CSS
Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Email Address Testing

2004-08-13 Thread Jay Blanchard
[snip] Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? [/snip] Do you mean using PHP? -- PHP General Mailing List (http

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo("\n Session Reset"); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called $_SESSION[''start_time'} nor, for that matter, have you 'saved' it usin

Re: [PHP] Email Address Testing

2004-08-13 Thread John Nichel
CSS wrote: Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? See, you have to write a Perl script to access a PostgreSQL d

Re: [PHP] Email Address Testing

2004-08-13 Thread raditha dissanayake
Jay Blanchard wrote: [snip] Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? [/snip] Do you mean using PHP? if you do

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: > Hi James, > > Well for what it's worth: > > Your code in Test1 sets the paraemters - > if(!$_SESSION['start_time']){ > echo("\n Session Reset"); > $_SESSION['start_time'] = time(); > > yet when Test2 loads, you haven't called $_SES

Re: [PHP] Template Question

2004-08-13 Thread Jonathan Haddad
eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML. I've designed it this way because I work with guys that are dreamweaver crazy and want to do all their layout there. Maybe I should parse the file, and eval() the PHP and ech

Re: [PHP] Template Question

2004-08-13 Thread Stephan Fiedler
Hi Jonathan, Jonathan Hadddad wrote: > [code in a template] Think you're right this IS a problem. Use Templates to seperate code from the ouput 'layer'. If you still have code in your template, maybe it's bad design. why don't you simply add some more variables to your template and tell the templa

RE: [PHP] Email Address Testing

2004-08-13 Thread Ed Lazor
Aren't there PHP SMTP classes that allow you to verify the validity of an email address? > -Original Message- > >[snip] > >Question: Is it possible to know which one of my hundreds if not > >thousands of email addresses are invalid without ever going through my > >return to sender addres

RE: [PHP] Email Address Testing

2004-08-13 Thread Jay Blanchard
[snip] Aren't there PHP SMTP classes that allow you to verify the validity of an email address? [/snip] Well, there is valid e-mail address formation and then valid, working, e-mail addresses. I think he is asking about the latter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I'm trying to write data to a file from a Postgres database using the following code EOF) { //CREATE CSV //OPEN DUMP FILE $fp = fopen("./dump.sql", "w"); //WRITE DATA TO DUMP fwrite($fp, "$rsITEMS->Fields('item_id')\n"); //LOOP $rsITEMS->MoveNext();

RE: [PHP] Email Address Testing

2004-08-13 Thread Ed Lazor
Right. It's been a while, but I vaguely remember playing an SMTP class a while back that would actually establish a connection with the remote server and verify whether the address was a valid recipient. Of course, I also seem to recall that it took forever and bogged up a lot on addresses like A

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread riese
Hi Vern, Vern wrote: I'm trying to write data to a file from a Postgres database using the following code while (!$rsITEMS->EOF) { $fp = fopen("./dump.sql", "w"); fwrite($fp, "$rsITEMS->Fields('item_id')\n"); $rsITEMS->MoveNext(); > [shortened] I wouldn't do, if I were you. It

[PHP] Problem querying postgres

2004-08-13 Thread Joshua Capy
Hi, I am new to postgres using PHP. I have gotten PHP POSTGRES and PHPADMIN installed and have a database setup using PHPADMIN. The problem that I am having is that when I connect to postgres outside of PHPADMIN and try use pg_query() to do a select such as "SELECT PersonID FROM person" the str

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
Sorry the previous post got sent prematurely. It does work, however, the problem is in the fwrite($fp, "$rsITEMS->Fields('item_id')\n"); what gets written to the file is exactly "$rsITEMS->Fields('item_id')" for as many records are return when I want the value to be inserted in the fi

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I got it. In case anyone is interested. I changed the code so that the field value was a became the variable $name and it worked. $name = $rsITEMS->Fields('item_id'); fwrite($fp, "$name\n"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread riese
Hi Vern, Vern wrote: Sorry the previous post got sent prematurely. this one, too. # It does work, however, the problem is in the fwrite($fp, "$rsITEMS->Fields('item_id')\n"); I KNOW, this was the 2nd change in my code-sniplet ;o) what gets written to the file is exactly "$rsITEMS->Field

RE: [PHP] Problem querying postgres

2004-08-13 Thread Michael Sims
Joshua Capy wrote: > of PHPADMIN and try use pg_query() to do a select such as "SELECT > PersonID FROM person" > > the string that is sent is "select personid from person". Now this is > a problem because in the data base the field PersonID is not the same > case as in the select that is sent and I

[PHP] PHP Security Workbook

2004-08-13 Thread Chris Shiflett
This news is a bit old, but I have made the workbook for my OSCON tutorial freely available from this URL: http://shiflett.org/php-security.pdf It's a 55 page PDF that has a lot of information (more than the slides) about some of the more important security topics. I hope you find it helpful. C

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
On Friday 13 August 2004 11:19 am, you wrote: > On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: > > Hi James, [snip] .for thatt matter, have you 'saved' it using session_write_close(); > > From the Manual: > Session data is usually stored after your script terminated without the > need to

Re: [PHP] Kerberos authentication

2004-08-13 Thread Justin Patrin
On Thu, 12 Aug 2004 21:15:40 -0700, Matthew Runo <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello- > > I am working on a project that requires Kerberos authentication, > however - we are unable to use the apache module that one would > normally use [sys admin

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Torsten Roehr
Hi Andre, hi James, please see below "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 13 August 2004 11:19 am, you wrote: > > On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: > > > Hi James, > [snip] > > .for thatt matter, have you 'saved' it using sess

Re: [PHP] Email Address Testing

2004-08-13 Thread Curt Zirzow
* Thus wrote Ed Lazor: > Right. It's been a while, but I vaguely remember playing an SMTP class a > while back that would actually establish a connection with the remote server > and verify whether the address was a valid recipient. Of course, I also > seem to recall that it took forever and bogg

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Jason Wong
On Saturday 14 August 2004 00:31, Vern wrote: > I got it. In case anyone is interested. I changed the code so that the > field value was a became the variable $name and it worked. > > $name = $rsITEMS->Fields('item_id'); > fwrite($fp, "$name\n"); But did you take the fopen() out of the while-loo

Re: [PHP] Email Address Testing

2004-08-13 Thread John Nichel
Curt Zirzow wrote: The only sure way, to ensure an email is valid is by tricking the user to click on a link, like for example.. a spamcease link :) Curt Not truethose links are not to validate your email address...those links are to actually remove you from the SPAM list. SPAMMERS would not

[PHP] PHP 5.0.1 Released!

2004-08-13 Thread Andi Gutmans
The PHP Development Team is glad to announce the release of PHP 5.0.1. This release is a maintenance release consisting mainly of bug fixes. It also includes new installation docs which are now auto-generated directly from the PHP Manual (INSTALL in the UNIX source package, install.txt in the Win

RE: [PHP] Problem querying postgres

2004-08-13 Thread Jay Blanchard
[snip] I am new to postgres using PHP. I have gotten PHP POSTGRES and PHPADMIN installed and have a database setup using PHPADMIN. The problem that I am having is that when I connect to postgres outside of PHPADMIN and try use pg_query() to do a select such as "SELECT PersonID FROM person" the

[PHP] Re: Email Address Testing

2004-08-13 Thread Manuel Lemos
Hello, On 08/13/2004 12:04 PM, Css wrote: Question: Is it possible to know which one of my hundreds if not thousands of email addresses are invalid without ever going through my return to sender address unknown emails or the receiver of the email ever responding? You may want to try this class

[PHP] PHP 5.0.1 cli with mysqli on FreeBSD core dump

2004-08-13 Thread Unreal HSHH
try FreeBSD 4.x and 5.x cli with mysqli usage,core dump -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP in a Masters of Computer Science Program

2004-08-13 Thread Michael Seely
HI Anyone know of a graduate masters program in computer science that is focused on PHP? Thanks - Mike _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely (408) 353-9008

Re: [PHP] PHP in a Masters of Computer Science Program

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 11:03:52 -0700, Michael Seely <[EMAIL PROTECTED]> wrote: > HI > > Anyone know of a graduate masters program in computer science that is > focused on PHP? > Bwahahahaha! Wouldn't that be funny! I seriously doubt you'll find anything like this. Not only is PHP relatively new

[PHP] Re: mail() and the From: attribute...

2004-08-13 Thread Manuel Lemos
Hello, On 08/13/2004 09:23 AM, Tristan Pretty wrote: I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... Anyhoo, In the mail() function, if I use the final field for the From: attribute. I'm having probs... HAving: ..."From: [EMAIL PROTECTED]"); doesn'

[PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
I'm getting an error... And I have no idea how to fix it. I've never been able to get PHP to work. --- Warning: Unknown(/var/www/test.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)(): Failed opening '/var/www/test.php' for inclusion (include_path='.:/var/ww

RE: [PHP] Newb PHP Question

2004-08-13 Thread Jay Blanchard
[snip] I'm getting an error... And I have no idea how to fix it. I've never been able to get PHP to work. [/snip] Andy do a small page with only this in it and see if it will load. No HTML or anything else, just this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] PHP 5.0.1 cli with mysqli on FreeBSD core dump

2004-08-13 Thread Curt Zirzow
* Thus wrote Unreal HSHH: > try FreeBSD 4.x and 5.x > cli with mysqli usage,core dump catch(question) { echo 'non existent.'; } Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP Gener

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Andy do a small page with only this in it and see if it will load. phpinfo(); ?> That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure... -Andy -- PHP Ge

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I did. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 01:14 pm, Torsten Roehr wrote: > James, have you tried with manually calling session_start() and setting > auto_start = 0? If not, please try this. > > Haven't followed your previous thread so please forgive me if I'm asking > something you already wrote. Are you using cook

RE: [PHP] Newb PHP Question

2004-08-13 Thread Jay Blanchard
[snip] That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure... [/snip] Can we see some of the code throwing the error? PHP is working correctly if you go

Re: [PHP] Newb PHP Question

2004-08-13 Thread John Nichel
Andy Moore wrote: Andy do a small page with only this in it and see if it will load. phpinfo(); ?> That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure.

Re: [PHP] Newb PHP Question

2004-08-13 Thread Hannes Magnusson
Are you trying to include or fopen file? httpd have access to that file? - Hannes On Fri, 13 Aug 2004 11:37:08 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > > Andy do a small page with only this in it and see if it will load. > > > > > > > phpinfo(); > > > > ?> > > That churned out a rather

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Vern
I knew that ;) Some times it takes another set of eyes... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using Post like Get

2004-08-13 Thread Joshua D. Drake
Dennis Gearon wrote: What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.. Basically, to keep separate 'user trails and in process variables' f

Re: [PHP] Newb PHP Question

2004-08-13 Thread Curt Zirzow
* Thus wrote Andy Moore: > I'm getting an error... And I have no idea how to fix it. I've never > been able to get PHP to work. > > --- > Warning: Unknown(/var/www/test.php): failed to open stream: Permission > denied in Unknown on line 0 > > Warning: (null)(): Failed opening '/var/www/test.php

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Can we see some of the code throwing the error? PHP is working correctly if you got the page above (a handy thing to keep around BTW). I assumed it was a configuration error because the error occured on line 0. But in any case, here's some lowdown. main.php - the file everyone will be seeing, and

[PHP] Ignoring carriage returns from data field

2004-08-13 Thread Vern
I am creating a datadump to a csv file and have noticed that text fields that contain carriage returns are causing trouble when opening the csv file in an Excel spreadsheet. I'm sure there's a away to ignore those extra characters but for the life of me I can't recall what it is. Anyone know how th

[PHP] Securing Forms???

2004-08-13 Thread Gerard Samuel
I've read (at least on 2 occasions) that one can secure their forms, to ensure that the form came from the site, and not via a script kiddie. Not the method where one puts a graphic of random text to copy to the form, but via a hidden field. It has to do with having a hidden field of data, that mu

Re: [PHP] Newb PHP Question

2004-08-13 Thread Hannes Magnusson
httpd got access to all the files? If the include path is wrong include() will rase error, I'm guessing httpd don't got permission to read one ( or more ) of the files. On Fri, 13 Aug 2004 11:53:46 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > > Can we see some of the code throwing the error? P

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Curt Zirzow
* Thus wrote Vern: > I am creating a datadump to a csv file and have noticed that text fields > that contain carriage returns are causing trouble when opening the csv file > in an Excel spreadsheet. I'm sure there's a away to ignore those extra > characters but for the life of me I can't recall wha

RE: [PHP] Securing Forms???

2004-08-13 Thread Jay Blanchard
[snip] I've read (at least on 2 occasions) that one can secure their forms, to ensure that the form came from the site, and not via a script kiddie. Not the method where one puts a graphic of random text to copy to the form, but via a hidden field. It has to do with having a hidden field of data,

Re: [PHP] Kerberos authentication

2004-08-13 Thread matthew
Well, UC Santa Cruz uses a Kerberos server to authenticate students and faculty onto their network. We need to create a login form that will allow various departments to use a web-based-interface to log into their websites, and they'd all like to use the pre-existing Kerberos server to do so. That

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Vern
Sorry, I must be somewhat dense today but I can't make heads nor tails of your response. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing Forms???

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 02:57 pm, Gerard Samuel wrote: > I've read (at least on 2 occasions) that one can secure their forms, to > ensure that the form came from the site, and not via a script kiddie. > Not the method where one puts a graphic of random text to copy to the > form, but via a hidden

RE: [PHP] Securing Forms???

2004-08-13 Thread Chris Shiflett
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I've read (at least on 2 occasions) that one can secure their forms, to > ensure that the form came from the site, and not via a script kiddie. > Not the method where one puts a graphic of random text to copy to the > form, but via a hidden f

Re: [PHP] Securing Forms???

2004-08-13 Thread Curt Zirzow
* Thus wrote Gerard Samuel: > I've read (at least on 2 occasions) that one can secure their forms, to > ensure that the form came from the site, and not via a script kiddie. > Not the method where one puts a graphic of random text to copy to the > form, but via a hidden field. > It has to do with

[PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
Thanks to this newsgroup I finally overcame one of my biggest errors in PHP. But it still doesn't work completely. :) --- Fatal error: Call to undefined function: pg_connect() in /var/www/include/db.php on line 30 --- Undefined function? Isn't it a standard command? - Andy Moore -- PHP General

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
httpd got access to all the files? Ah! I fixed it now. Ok, this problem is solved, thanks all :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Yet another Newb Question - error

2004-08-13 Thread Jay Blanchard
[snip] Thanks to this newsgroup I finally overcame one of my biggest errors in PHP. But it still doesn't work completely. :) --- Fatal error: Call to undefined function: pg_connect() in /var/www/include/db.php on line 30 --- Undefined function? Isn't it a standard command? [/snip] >From http:/

Re: [PHP] Kerberos authentication

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 12:26:45 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Well, UC Santa Cruz uses a Kerberos server to authenticate students and faculty > onto their network. We need to create a login form that will allow various > departments to use a web-based-interface to log into thei

[PHP] Re: Yet another Newb Question - error

2004-08-13 Thread Hannes Magnusson
No, PostgreSQL is not build in by default. see http://www.php.net/manual/en/ref.pgsql.php On Fri, 13 Aug 2004 12:36:26 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > Thanks to this newsgroup I finally overcame one of my biggest errors in > PHP. But it still doesn't work completely. :) > > --- >

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
Does PostGres show up in the test page we did earler? If not PHP needs to be compiled as stated above No, PG doesn't show up... What do you mean, "compiled?" Do you mean installed? I used # apt-get install postrgesql Are you saying I should say # apt-get install postgresql --with-pgsql ? Or, [sni

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Hannes Magnusson
On Fri, 13 Aug 2004 13:06:58 -0700 [EMAIL PROTECTED] (Andy Moore) wrote: > > Does PostGres show up in the test page we did earler? If not PHP needs > > to be compiled as stated above > > No, PG doesn't show up... What do you mean, "compiled?" Do you mean > installed? I used http://www.php.net/m

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 14:54:28 -0400, Vern <[EMAIL PROTECTED]> wrote: > I am creating a datadump to a csv file and have noticed that text fields > that contain carriage returns are causing trouble when opening the csv file > in an Excel spreadsheet. I'm sure there's a away to ignore those extra > cha

Re: [PHP] Securing Forms???

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 15:36:34 -0400, James E Hicks III <[EMAIL PROTECTED]> wrote: > On Friday 13 August 2004 02:57 pm, Gerard Samuel wrote: > > I've read (at least on 2 occasions) that one can secure their forms, to > > ensure that the form came from the site, and not via a script kiddie. > > Not th

[PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
is there a way to always have a certain script evaluate at the start of every page? Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unexpected T_VARIABLE

2004-08-13 Thread Dustin Krysak
Hi there, I am working with a script that I found online to export a SQL statement (results) to an excel file., now everytime i run the script, i get the error: Parse error: parse error, unexpected T_VARIABLE in /var/www/html/siteadmin/mysql_export/export.php on line 11 Now the code that is lo

Re: [PHP] auto include?

2004-08-13 Thread Chris Shiflett
--- Jonathan Hadddad <[EMAIL PROTECTED]> wrote: > is there a way to always have a certain script evaluate at the start of > every page? Yes, the auto_prepend_file configuration directive. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fa

Re: [PHP] auto include?

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 16:23:26 -0400, Jonathan Hadddad <[EMAIL PROTECTED]> wrote: > is there a way to always have a certain script evaluate at the start of > every page? > Look in the php.ini settings for "auto prepend". -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.p

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Matthew Weier O'Phinney
* Andy Moore <[EMAIL PROTECTED]>: >> Does PostGres show up in the test page we did earler? If not PHP needs >> to be compiled as stated above > > No, PG doesn't show up... What do you mean, "compiled?" Do you mean > installed? I used > ># apt-get install postrgesql > > Are you saying I should say

Re: [PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
Is there any reason why values I attempt to set in .htaccess wouldn't work? this is what I have: php_value auto_prepend /Users/jhaddad/Sites/oldirtyhaddad.com/public_html/connection.php php_value include_path .:/Users/jhaddad/Sites/oldirtyhaddad.com/libraries is there a server variable that m

Re: [PHP] unexpected T_VARIABLE

2004-08-13 Thread Curt Zirzow
* Thus wrote Dustin Krysak: > Hi there, I am working with a script that I found online to export a > SQL statement (results) to an excel file., now everytime i run the > script, i get the error: > > Parse error: parse error, unexpected T_VARIABLE in > /var/www/html/siteadmin/mysql_export/export

  1   2   >