[PHP] Skipping function arguments!

2005-04-27 Thread Vedanta Barooah
Hello All, Cosider this : function add($a=1,$b=2,$c=3){ return $a + $b + $c; } how do i skip the second argument while calling the function, is there a process like this: echo add(1,,1); # where i expect 2 to be printed, how do i xcheive this m totally lost ! :(( Thanks, Vedanta --

Re: [PHP] User Logout system advice needed...

2005-04-27 Thread Petar Nedyalkov
On Thursday 28 April 2005 08:48, William Stokes wrote: > Hello, > > I need to write some sort of a user logout system for my web application. > It needs to be a solid system so that if the user presses the Logout button > there's no way of returning to the password protected area without logging >

[PHP] User Logout system advice needed...

2005-04-27 Thread William Stokes
Hello, I need to write some sort of a user logout system for my web application. It needs to be a solid system so that if the user presses the Logout button there's no way of returning to the password protected area without logging in again. At the moment my "system" only tries to close browse

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Mark Sargent
Richard Lynch wrote: http://php.net/register_globals On Wed, April 27, 2005 12:20 am, Mark Sargent said: Petar Nedyalkov wrote: On Wednesday 27 April 2005 08:54, Mark Sargent wrote: Hi All, this page, http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin g has c

Re: [PHP] Avoiding Error : Maximum execution time of 30 seconds exceeded

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 9:00 pm, Andri Heryandi said: > I Have a script that need more than 30 second to complete. > > How to avoid "*Fatal error*: Maximum execution time of 30 seconds > exceeded in *\det.php* on line *66". http://php.net/set_time_limit -- Like Music? http://l-i-e.com/artists.htm

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Richard Lynch
http://php.net/register_globals On Wed, April 27, 2005 12:20 am, Mark Sargent said: > Petar Nedyalkov wrote: > >>On Wednesday 27 April 2005 08:54, Mark Sargent wrote: >> >> >>>Hi All, >>> >>>this page, >>> >>>http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin >>>g >>> >>>h

Re: [PHP] beginner volunteer

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 4:17 am, Malcolm Mill said: > I've been reading up on php for a while now and would like to get > involved in a small open source LAMP project. I don't have any real > coding experience to speak of but could bring proofreading, > bug-reporting, testing and documentation skill

Re: [PHP] Mac OS X compilation problem

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 4:53 am, Marcus Bointon said: > In the past I've had success compiling PHP4 on OS X. However, now I'm > trying to get PHP5 working and not having much luck. I'm getting > configure to work, and make goes ok until the final linking stage at > which point I get this error: > >

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 12:08 pm, Bret Walker said: > Well, the download.php script would allow me to protect certian files, > but is there a way to protect all files? For example, images that I > would like to include in my php pages. As noted, you could put your images outside the webtree and th

Re: [PHP] temp tables

2005-04-27 Thread Joshua D. Drake
Cima wrote: hi, im working with php 4 and postgresql 8 and in my php script id like to create a temp table on my database server. how do i do this? how do i verify it was created? Well if the creation fails pg_query will throw an error. However temp tables are only good for the life of the conne

Re: [PHP] Retrieving query from MSSQL Table

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 1:29 pm, Mike Smith said: > I have a form where I can submit a Query to be run against a MSSQL 2000 > Server. > The query is stored correctly in a text (DataType) column. I can > retrieve it echo it back to the screen, copy-n-paste into Query > Analyzer and the query work

[PHP] Avoiding Error : Maximum execution time of 30 seconds exceeded

2005-04-27 Thread Andri Heryandi
I Have a script that need more than 30 second to complete. How to avoid "*Fatal error*: Maximum execution time of 30 seconds exceeded in *\det.php* on line *66". Thanks * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] editor that typesets the php code

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 5:09 pm, Rob Agar said: > hi Dasmeet > >> From: Dasmeet Singh >> I have just completed coding for a script... i want to take a >> printout >> of the code.. but the code is very hotch potch.. >> >> Is there any software to automatically set the code with proper >> spacing/tabs

Re: [PHP] temp tables

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 9:45 pm, Cima said: > im working with php 4 and postgresql 8 and in my php script id like to > create a temp table on my database server. how do i do this? how do i > verify it was created? > > i tried the following: > > $sql = "create temp table s_info(a int, b text) on comm

[PHP] temp tables

2005-04-27 Thread Cima
hi, im working with php 4 and postgresql 8 and in my php script id like to create a temp table on my database server. how do i do this? how do i verify it was created? i tried the following: $sql = "create temp table s_info(a int, b text) on commit delete rows "; pg_query($dbh,$sql); $dbh i

[PHP] Re: What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

2005-04-27 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I've used the simple password script in the past to password protect > pages with a session. http://www.phpbuddy.com/article.php?id=23 > Now that I have installed Fedora Core 2 and 3 the new version of php > (4.3.4) doesn't like this script any more.

[PHP] What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

2005-04-27 Thread mwestern
I've used the simple password script in the past to password protect pages with a session. http://www.phpbuddy.com/article.php?id=23 Now that I have installed Fedora Core 2 and 3 the new version of php (4.3.4) doesn't like this script any more. Any ideas why? Thanks Matthew

RE: [PHP] editor that typesets the php code

2005-04-27 Thread Rob Agar
hi Dasmeet > From: Dasmeet Singh > I have just completed coding for a script... i want to take a > printout > of the code.. but the code is very hotch potch.. > > Is there any software to automatically set the code with proper > spacing/tabs extra..and possibly give colors to it too...?? Che

Re: [PHP] Simple Question: Reading exec(locate) results into an array

2005-04-27 Thread John Nichel
Karl Fry wrote: Hello all, I'm sure this is very rudimentary, sorry if this sounds ignorant. I've only dabbled a bit in other languages and I'm working with a small knowledge of php since I only use it on-and-off at my job. I scribbled up this script today at work off the top of my head for a cus

[PHP] Retrieving query from MSSQL Table

2005-04-27 Thread Mike Smith
I have a form where I can submit a Query to be run against a MSSQL 2000 Server. The query is stored correctly in a text (DataType) column. I can retrieve it echo it back to the screen, copy-n-paste into Query Analyzer and the query works. What I cannot do is get the query to be returned from the r

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Kenny Austin
Bret Walker wrote: > Well, the download.php script would allow me to protect certian files, > but is there a way to protect all files? For example, images that I > would like to include in my php pages. you can serve images through through download.php.. but that's just a bad idea :) > Could I s

[PHP] Simple Question: Reading exec(locate) results into an array

2005-04-27 Thread Karl Fry
Hello all, I'm sure this is very rudimentary, sorry if this sounds ignorant. I've only dabbled a bit in other languages and I'm working with a small knowledge of php since I only use it on-and-off at my job. I scribbled up this script today at work off the top of my head for a customer who was l

Re: [PHP] MySQL PHP issue?

2005-04-27 Thread John Nichel
Dustin Wish wrote: It is version 3.23.56 Know thy software. 3.x doesn't support sub-queries. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL PHP issue?

2005-04-27 Thread Dustin Wish
SH^*&^t Thanks guys. Figured something like that. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 2:53 PM To: Dustin Wish; php-general@lists.php.net Subject: RE: [PHP] MySQL PHP issue? [snip] It is version 3.23.56 [/snip] Sub-queries ar

RE: [PHP] MySQL PHP issue?

2005-04-27 Thread Jay Blanchard
[snip] It is version 3.23.56 [/snip] Sub-queries are not supported in that version of MySQL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL PHP issue?

2005-04-27 Thread Dustin Wish
It is version 3.23.56 -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 2:44 PM To: php-general@lists.php.net Subject: Re: [PHP] MySQL PHP issue? Jay Blanchard wrote: > Asking a MySQL question on a PHP list? *slaps knee!* I bet you think

RE: [PHP] MySQL PHP issue?

2005-04-27 Thread Jay Blanchard
[snip] Jay Blanchard wrote: > Asking a MySQL question on a PHP list? *slaps knee!* I bet you think you're funny. ;) [/snip] I know that you think I am. Yuk-yuk! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL PHP issue?

2005-04-27 Thread John Nichel
Jay Blanchard wrote: Asking a MySQL question on a PHP list? *slaps knee!* I bet you think you're funny. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL PHP issue?

2005-04-27 Thread John Nichel
Dustin Wish wrote: Anyone have any idea what I'm doing wrong? Asking on the wrong list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] editor that typesets the php code

2005-04-27 Thread Dasmeet Singh
Hi! I have just completed coding for a script... i want to take a printout of the code.. but the code is very hotch potch.. Is there any software to automatically set the code with proper spacing/tabs extra..and possibly give colors to it too...?? Thanks in advance :) SayOrange.com How to choo

[PHP] Re: Creating ERD from an existing MySQL Table

2005-04-27 Thread Dasmeet Singh
Dasmeet Singh wrote: Hi! I need to create an ERD from an existing MySQL table. Is there any such tool/script to do it automatically? Thanks in advance :) SayOrange.com How to choose the best web hosting? http://www.sayorange.com Just an update.. i was able to do what i want through dbvisualizer

Re: [PHP] Mailform and mailit.php problem.

2005-04-27 Thread Cas
Your PHP server could be wrong configured. Open your php.ini and check the mail settings. If you run a homeserver the easiest way is to set it to your smtp server. Greeting, Cas On 4/27/05, Jim van den Noort <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a problem. I downloaded the form mai

RE: [PHP] MySQL PHP issue?

2005-04-27 Thread Jay Blanchard
[snip] OK, I have check all the mysql doc and php docs on using exists in the query, but it seems I still can not get the query to work. Here it is: SELECT * FROM icisp.account WHERE id in (select oldaccountID from BillMax.account) Or Using sELECT * FROM icisp.account WHERE id exists(select ol

[PHP] Mailform and mailit.php problem.

2005-04-27 Thread Jim van den Noort
Hello, I have a problem. I downloaded the form mailer dynaform1.4 and it looks like it works perfectly. I mad a form en adjusted te mailit scrit to my mailadress. When i test the form it is send eand i get the thanks message. But the mail will never come in to my mailbox? what shout i do???

[Fwd: Re: [PHP] LDAP and .htaccess]

2005-04-27 Thread Bret Walker
Re: John Hinton Perhaps my S/MIME cert. was preventing the text from coming through. This message is unsigned. Bret Original Message Subject: Re: [PHP] LDAP and .htaccess Date: Wed, 27 Apr 2005 14:08:14 -0500 From: Bret Walker <[EMAIL PROTECTED]> To: php-general@lists.php.net

[PHP] MySQL PHP issue?

2005-04-27 Thread Dustin Wish
OK, I have check all the mysql doc and php docs on using exists in the query, but it seems I still can not get the query to work. Here it is: SELECT * FROM icisp.account WHERE id in (select oldaccountID from BillMax.account) Or Using sELECT * FROM icisp.account WHERE id exists(select oldaccou

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread John Hinton
Bret Walker wrote: I'm not too sure, but it seems to be having an effect you any text showing up in your emails. John Hinton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Bret Walker
Well, the download.php script would allow me to protect certian files, but is there a way to protect all files? For example, images that I would like to include in my php pages. Could I silently pass a username and password to htaccess? Can htaccess be set to use a php script instead of a htpass

RE: [PHP] Re: handling a user pressing browser's back button

2005-04-27 Thread Chris W. Parker
Richard Lynch on Tuesday, April 26, 2005 10:03 PM said: > Or, with some browsers, you can't get "back" to page 1 AT ALL, unless > you hit "back" twice rapidly in succession, or use the popup back > menu to "skip" the middle page that does the re-direct. I think that

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Kenny Austin
Bret Walker wrote: > Hello all- > > I am looking for a way to protect a directory's contents by > authenticating against Active Directory via LDAP. I currently have a > nice little php script that tries to bind to LDAP via a username and > password entered in a form. If it fails to bind, the use

[PHP] LDAP and .htaccess

2005-04-27 Thread Bret Walker
Hello all- I am looking for a way to protect a directory's contents by authenticating against Active Directory via LDAP. I currently have a nice little php script that tries to bind to LDAP via a username and password entered in a form. If it fails to bind, the user is denied access. If it succ

Re: [PHP] step by step learning

2005-04-27 Thread Jochem Maas
Paul Kain wrote: Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning I already know and understand html maybe start here: http://php.net/tut.php also google for tutorials, there are plenty out t

Re: [PHP] Re: beginner volunteer

2005-04-27 Thread Jochem Maas
Jason Barnett wrote: Malcolm Mill wrote: Hi, I've been reading up on php for a while now and would like to get involved in a small open source LAMP project. I don't have any real coding experience to speak of but could bring proofreading, bug-reporting, testing and documentation skills to the proje

[PHP] Re: XML language for database schema definitions

2005-04-27 Thread Manuel Lemos
Hello, on 04/27/2005 10:04 AM Nsk said the following: I am developing a PHP-implemented library which would allow a PHP programmer to write pre-defined data to a database. The library would be able to work with different database schemas and I need a way to "inform" the library with what kind of

Re: [PHP] PHP Designer 2005

2005-04-27 Thread The Disguised Jedi
Thanks for all the suggestions, I think I've fixed the problem. I downloaded and licensed PHPEdit by waterproof. Just in case you were wondering, i have a P4 2.8 GHz system with 512 MB of RAM. WinXP Home & Fedora Core 3 Dual-Boot. I couldn't find any settings that needed changing, so I just got

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Marek Kilimajer
Giulio wrote: I tryied using ftp_put() with startpos parameter, but I receive an error Appen/Restart not permitted, try again http://www.proftpd.org/docs/faq/linked/faq-ch4.html#AEN408 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Marek Kilimajer
Giulio wrote: I tryied using ftp_put() with startpos parameter, but I receive an error Appen/Restart not permitted, try again I tryed both FTP_AUTOSEEK on and off, and both pasv true and false I imagine that this is an ftp server error message, and not a php error, since I have searched it on php

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Giulio
I tryied using ftp_put() with startpos parameter, but I receive an error Appen/Restart not permitted, try again I tryed both FTP_AUTOSEEK on and off, and both pasv true and false I imagine that this is an ftp server error message, and not a php error, since I have searched it on php documentation

Re: [PHP] Getting Credit card details

2005-04-27 Thread John Nichel
Ross wrote: Here's what I want to do.. Uh-Oh, here we go again. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML language for database schema definitions

2005-04-27 Thread NSK
Hello I am developing a PHP-implemented library which would allow a PHP programmer to write pre-defined data to a database. The library would be able to work with different database schemas and I need a way to "inform" the library with what kind of database schema it has to work with. I thought

[PHP] Re: beginner volunteer

2005-04-27 Thread Jason Barnett
Malcolm Mill wrote: Hi, I've been reading up on php for a while now and would like to get involved in a small open source LAMP project. I don't have any real coding experience to speak of but could bring proofreading, bug-reporting, testing and documentation skills to the project. What I'd like to

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Giulio
Marek, thank you for your answer, Il giorno 27/apr/05, alle 1:28 PM, Marek Kilimajer ha scritto: Giulio wrote: My problem is that I'm using, to make the system as general as possible, and make it work even on servers where php doesn't have write privileges, ftp functions instead of filesystem fun

[PHP] Mac OS X compilation problem

2005-04-27 Thread Marcus Bointon
In the past I've had success compiling PHP4 on OS X. However, now I'm trying to get PHP5 working and not having much luck. I'm getting configure to work, and make goes ok until the final linking stage at which point I get this error: ld: unknown flag: -export-symbols make: *** [libs/libphp5.bun

Re: [PHP] appending to a file using ftp functions

2005-04-27 Thread Marek Kilimajer
Giulio wrote: Hi, I'm developing an application that uploads file to a server using http. the app calls a php on the server sending all the data just like a web form post. It works just fine uploading little files, now i'm concerning about having the apllication split large files in little chunk

[PHP] beginner volunteer

2005-04-27 Thread Malcolm Mill
Hi, I've been reading up on php for a while now and would like to get involved in a small open source LAMP project. I don't have any real coding experience to speak of but could bring proofreading, bug-reporting, testing and documentation skills to the project. What I'd like to get out of working

[PHP] appending to a file using ftp functions

2005-04-27 Thread Giulio
Hi, I'm developing an application that uploads file to a server using http. the app calls a php on the server sending all the data just like a web form post. It works just fine uploading little files, now i'm concerning about having the apllication split large files in little chunks ( about 256

RE: [PHP] Re: handling a user pressing browser's back button

2005-04-27 Thread Mark Rees
Perhaps it might help to think about this from the point of view of what you are trying to prevent. Is the most important thing to make sure that your data integrity is intact? For example, - you allow users to add a record on page 1 - on page 2, check that the record does not already exist, if

Re: [PHP] JavaScript - object property

2005-04-27 Thread Jochem Maas
Richard Lynch wrote: On Tue, April 26, 2005 7:51 pm, Eli said: I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new MyCls('PHP');

Re: [PHP] Dates problem

2005-04-27 Thread Mario de Frutos Dieguez
Petar Nedyalkov escribió: On Wednesday 27 April 2005 09:17, Mario de Frutos Dieguez wrote: Hi! I have a problem with dates. I have a function that sum a duration in laboral days to an initial date. The problem come when the function reaches the last sunday of October, the data remains in the las

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Mark Sargent
Petar Nedyalkov wrote: On Wednesday 27 April 2005 08:54, Mark Sargent wrote: Hi All, this page, http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin g has code that is supposed to pass an id via the url string to the same page, and display info of a particular product, bas

[PHP] Creating ERD from an existing MySQL Table

2005-04-27 Thread Dasmeet Singh
Hi! I need to create an ERD from an existing MySQL table. Is there any such tool/script to do it automatically? Thanks in advance :) SayOrange.com How to choose the best web hosting? http://www.sayorange.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] JavaScript - object property

2005-04-27 Thread Marek Kilimajer
Eli wrote: Hi, I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new MyCls('PHP'); obj.name='JavaScript'; //this will call SayH

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Petar Nedyalkov
On Wednesday 27 April 2005 08:54, Mark Sargent wrote: > Hi All, > > this page, > > http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin >g > > has code that is supposed to pass an id via the url string to the same > page, and display info of a particular product, based on the