[PHP] TAR Error - 'Invalid block size'

2003-09-23 Thread Tohar Trabinovitch
I use the TAR.php file for extract tar.gz file. The tar file extracted fine, but the tar class raises the 'Invalid block size 351'. Why? And how can I discard this error. Thanks, === Tohar Trabinovitch Software Engineer [EMAIL PROTECTED] Tel: 972-3-9008200 Ext: 269

php-general Digest 23 Sep 2003 07:13:39 -0000 Issue 2313

2003-09-23 Thread php-general-digest-help
php-general Digest 23 Sep 2003 07:13:39 - Issue 2313 Topics (messages 163514 through 163550): Re: PHP Editor - which to use? 163514 by: jsWalter 163525 by: Jason Sheets 163526 by: Chris W. Parker 163535 by: Ray Hunter 163537 by: NukedWeb.aol.com

[PHP] Re: Recursive class trouble

2003-09-23 Thread Christoffer Enedahl
I had to rewrite my class so it parsed all data in the constructor. I'm still wondering about this though. I't seems like a bug, however I don't know enough about PHP to report bugs yet. I'm used to program in ASP. I'm very pleased with PHP so far, this quirk is the first negative issue I've found

Re: [PHP] Mail problem

2003-09-23 Thread Trevor Dowling
All, Many thanks for you thoughts, I will take a look at your suggestions, I hope they fix the issue, others suggested the same things so I think we can assume your all correct, (I hope so!) Once again, thanks Trevor "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > *

[PHP] RE : [PHP] Start php-script with exec()?

2003-09-23 Thread BENARD Jean-philippe
Maybe you'll need to add " >/dev/null &" at the end of your execution command. Adding this will put your script to background and php wouldn't wait for this script end before terminate http process (=> no browser timeout). For example : exec("/logiciel/php/bin/php /tmp/toto.php >/dev/null &"); Co

[PHP] php4ts.dll and Win2000 IIS server

2003-09-23 Thread Astron of BrOnX
Dear Marek Kilimajer and others, I have done all thing that you told me.. In my local (winXP, IIS5.1) SSL is working fine now.. I have replaced php4ts.dll Manuzhai suggested to use php4ts.dll from http://ftp.proventum.net/pub/php/win32/misc/openssl/ and it is okay now.. But, windows2000 IIS give

Re: [PHP] speaking of php editors

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 12:28:12AM +, Curt Zirzow wrote: : * Thus wrote Chris W. Parker ([EMAIL PROTECTED]): : > : > I am looking for an editor that will highlight the string : > "{$array['index']['index']}" within a string. : > : > For example: : > : > +- gray --

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Gal
The Best is the GTK verstion of the classic VI editor (latest VI 6.2 - uses GTK 2 on Linux) and there is also a Windows version. It's the best and you don't have to pay for licenses. http://www.vim.org/index.php Notepad - is very poor. you can not controle tabs spaces, see white space and syntax

[PHP] determine resolution that client is running

2003-09-23 Thread Angelo Zanetti
Hi ppl, how do you determine the resolution that a client is running? because if I make a webpage for 800 X 600 then a user is running a res. of 1024 X 768 then the page will be smaller in his browser, therefore how do I determine what resolution its being run at, therefore the appropriate sized w

[PHP] Running system commands

2003-09-23 Thread Nitin
Hi all, I was wondering, if anyone can help me with running system commands from within php. Actually I have a script which deletes users from my database (which is of course MySQL), now I want to delete those users from system level also, as they are authenticated users of my OS also. Now, t

Re: [PHP] determine resolution that client is running

2003-09-23 Thread Becoming Digital
This is something probably best handled by Javascript. There are many resolution re-direct scripts out there that will, at the very least, give you an idea of what you need to do. A link to those available at HotScripts is below. http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Redirec

[PHP] RE : [PHP] Redirect URL

2003-09-23 Thread Youri B .
Thank you very much, This was the reason I figured it out now. Thank you for good advise. Yury On 22 Sep 2003 at 14:39, BENARD Jean-philippe wrote: > Headers must be sent before anything else (text, html ...). If you put > somewhere something like : echo "test";, php will send standard HTML >

Re: [PHP] Shopping Cart Solutions

2003-09-23 Thread pete M
loads at hotscripts.com http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html Adrian Teasdale wrote: Charles Try oscommerce.org - it's an open source app written in PHP that has a fantastic community and is incredibly feature-rich. I'm not associated with the project, but I ha

Re: [PHP] CAN I CASH the output of PHP SCRIPT?

2003-09-23 Thread nabil
thanks for the spell correction :)) "Becoming Digital" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The correct spelling is "cache." I'm not trying to be a spelling and grammar freak (though I am), simply aiding your future searches on the topic. PEAR has a very nice output cachin

[PHP] Creating Objects!

2003-09-23 Thread Webmaster
HI, let us say there is Class A. In the constructor of this class I create an Object B of Class B. Now what is the difference between these two ? this->B = new B; and B = new B; Thank you very much! Wenmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Creating objects

2003-09-23 Thread Webmaster
Hi, let us say there is Class A. In the constructor of this class I create an Object B of Class B. Now what is the difference between these two ? this->B = new B; and B = new B; Thank you very much! Wenmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Shopping Cart Solutions

2003-09-23 Thread Becoming Digital
I'll give a big "+2" to all of this. I spent a great deal of time writing a program for customizing various aspects of osCommerce. After a while, I just dropped the project because it was becoming a tangled web of code and not at all my style. Edward Dudlik Becoming Digital www.becomingdigital

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Evan Nemerson
In you php.ini, set error_append_string to "... you loser!" On Monday 22 September 2003 07:56 pm, [EMAIL PROTECTED] wrote: > >You must either be insane, a genius, or joking. > > Some of the most gifted people in the world are all three! Not that I'm > claiming to be one, but yes I'm all three. :

Re: [PHP] javascript open window and a PHP script...

2003-09-23 Thread Marek Kilimajer
You should use: Add or Update Your Event Propably won't fix your problem but this will help javascript disabled browsers. jsWalter wrote: I have a link on a page... Add or Update Your Event This open the PHP file just fine and passes the vars fine. But I need a new window to

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Marek Kilimajer
Javier Muniz wrote: interface BoardMember { function position(); // used to set board position of board member } interface Employee { function position(); // used to set job title of employee } class BusyBoardMember implements Employee, BoardMember { function position(); // what d

Re: [PHP] Creating Objects!

2003-09-23 Thread Evan Nemerson
Well in the first one the property of A named "B" will be an instance of B. In the second one a local variable in the constructor function named "B" which is an instance of B, and that variable will not be accessible from any function other than the constructor (unless you're playing w/ the refl

Re: [PHP] Running system commands

2003-09-23 Thread Evan Nemerson
google for openssh or lsh. I dunno if you'd be able to input the password through PHP, but if not you could telnet over an SSH encrypted tunnel... Or if you have absolutely no worries about security you could use telnet, but that would be, IMHO, a Bad Idea(TM). On Tuesday 23 September 2003 02:

Re: [PHP] php4ts.dll and Win2000 IIS server

2003-09-23 Thread Marek Kilimajer
Check these out for solutions: http://bugs.php.net/bug.php?id=13383 http://bugs.php.net/bug.php?id=12358 And other suggestions will come up if you google: http://www.google.com/search?q=The%20specified%20CGI%20application%20misbehaved%20by%20not%20returning%20a%20complete%20set%20of%20php Astron of

Re: [PHP] bugs.php.net

2003-09-23 Thread Marek Kilimajer
http://cvs.php.net/cvs.php/php-bugs-web?login=2 Amith Varghese wrote: Can anyone tell me where I can download the bug tracking system used for bugs.php.net? I don't see any links on the PHP site (or i'm probably missing something quite obvious) Thanks Amith -- PHP General Mailing List (http://www

[PHP] How to update url on server side...php header func?

2003-09-23 Thread Mike Klein
I have written a database explorer/update program and when the user successfully updates/inserts a new record I would like to have the url updated to reflect new query (in addition to returning form w/new values). I am using url/get for all data transfer rather than post. Maybe this is a proble

Re: [PHP] Formatting a string for entry into MySQL

2003-09-23 Thread Burhan Khalid
James Johnson wrote: Hi, I'm trying to generate a string that contains a , to insert into a MySQL table. It appears the is being stripped out either just before or during the update. http://www.php.net/mysql-escape-string -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PH

RE: [PHP] Calling PHP shell scripts with exec from within PHP goes awry?

2003-09-23 Thread Jay Blanchard
[snip] The example that I'm really trying to do might be too complicated for presentation here, but here's a simplified version. Take the shell script "helloWorld.php": #!/usr/local/bin/php -q [/snip] I could not replicate your problem on a 4.2.n or 4.3.n box but I will say thi

RE: [PHP] Calling PHP shell scripts with exec from within PHP goes awry?

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 07:47, Jay Blanchard wrote: > [snip] > The example that I'm really trying to do might be too complicated for > presentation here, but here's a simplified version. > > Take the shell script "helloWorld.php": > > #!/usr/local/bin/php -q > > [/snip] > > I could n

RE: [PHP] How to update url on server side...php header func?

2003-09-23 Thread Jay Blanchard
[snip] Basically original url is (pseudo) "select * from table where rec=5" ... any ideas of how to better go about this? [/snip] The query is in the URL? Really? You have just asked for a security problem (google for "sql injection" and you'll see what I am talking about). If you have anything th

RE: [PHP] Calling PHP shell scripts with exec from within PHP goesawry?

2003-09-23 Thread Jay Blanchard
[snip] I've never had a problem with not putting an extra blank line between binary path and the actual script. Actually I would say that would break the output since an extra line would be printed in the case of a PHP script. [/snip] Very true Robert, it can break the output. I generally avoid th

RE: [PHP] How to update url on server side...php header func?

2003-09-23 Thread Mike Klein
The word (pseudo) implied that my url metadata effectively generates a sql statement. Query metadata in the url on the server side is generated as sql. This is exactly what phpMyAdmin does...my app presents no more a security problem than theirs. The script runs as guest/guest against mysql unles

[PHP] php and checkboxes

2003-09-23 Thread Angelo Zanetti
Hi all, I have a table that gets populated from records of a DB. every row in the table has a checkbox and the items desc. I want the user to select the items they want and then they click on a link which registers the items they've selected in a session variable. Firstly I am not sure if this can

[PHP] problem passing variable between forms.

2003-09-23 Thread Angelo Zanetti
Hi John, therefore I can register this variable on the same page as the checkboxes? So therefore is it posssible for php to determine which checkboxes have been selected (or are the ones that are selected added to the array)? TIA -Original Message- From: CPT John W. Holmes [mailto:[EMA

RE: [PHP] How to update url on server side...php header func?

2003-09-23 Thread Jay Blanchard
[snip] Unless someone's auth'd with my personal credentials, all they can do is query a stupid quotations table in a database of mine. No deletes, inserts, or updates. [/snip] OK. [quote] This url returns an editable detail form from server. User changes rec=5 to 6 in the form, and additional ur

Re: [PHP] php and checkboxes

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 08:17, Angelo Zanetti wrote: > Hi all, > > I have a table that gets populated from records of a DB. every row in the > table has a checkbox and the items desc. I want the user to select the items > they want and then they click on a link which registers the items they've > se

Re: [PHP] problem passing variable between forms.

2003-09-23 Thread CPT John W. Holmes
From: "Angelo Zanetti" <[EMAIL PROTECTED]> > therefore I can register this variable on the same page as the checkboxes? > So therefore is it posssible for php to determine which checkboxes have been > selected (or are the ones that are selected added to the array)? The ones that are selected are a

Re: [PHP] speaking of php editors

2003-09-23 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): > On Tue, Sep 23, 2003 at 12:28:12AM +, Curt Zirzow wrote: > : * Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > : > > : > I am looking for an editor that will highlight the string > : > "{$array['index']['index']}" within a string. > : > > : > F

Re: [PHP] TAR Error - 'Invalid block size'

2003-09-23 Thread Ray Hunter
> I use the TAR.php file for extract tar.gz file. The tar file extracted > fine, but the tar class raises the 'Invalid block size 351'. Why? And > how can I discard this error. Basically, tar writes in block sizes of 512 bytes so you are receiving an invalid block size smaller than 512 which has

Re: [PHP] Mail problem

2003-09-23 Thread Trevor Dowling
Fixed! Thanks Trevor "Trevor Dowling" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > All, > > Many thanks for you thoughts, I will take a look at your suggestions, I hope > they fix the issue, others suggested the same things so I think we can > assume your all correct, (I hope s

Re: [PHP] TAR Error - 'Invalid block size'

2003-09-23 Thread Ray Hunter
> > I use the TAR.php file for extract tar.gz file. The tar file extracted > > fine, but the tar class raises the 'Invalid block size 351'. Why? And > > how can I discard this error. > > Basically, tar writes in block sizes of 512 bytes so you are receiving > an invalid block size smaller than 51

[PHP] PHP class and extends

2003-09-23 Thread BENARD Jean-philippe
Hi ! I've got a problem with class extends. I've a "top" class which name is cl_app. xxx_cl_app is an extend of cl_app. Cl_app define a function called "ExecuteQuery". xxx_cl_app define this function too but this one is obsolete. Now, I want to use the cl_app "ExecuteQuery" function in my

[PHP] $_SERVER['UNIQUE_ID'] question

2003-09-23 Thread Susan Ator
I have looked and cannot find any information on this particular variable. How unique is this id and when does it get generated? I'm looking to use this as a session identifier. Susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SERVER['UNIQUE_ID'] question

2003-09-23 Thread Curt Zirzow
* Thus wrote Susan Ator ([EMAIL PROTECTED]): > I have looked and cannot find any information on this particular variable. > How unique is this id and when does it get generated? I'm looking to use > this as a session identifier. This is a variable created by the webserver, it is unique per page r

Re: [PHP] when clients go bad

2003-09-23 Thread Raditha Dissanayake
Hi Jay and everyone, Sorry about the belated reply but i do believe that "Work product for the customer belongs to the customer unless specifically stated differently in the contract" does not apply to source code. Obviously we are all programmers and not lawyers in this group but i stand by th

RE: [PHP] Formatting a string for entry into MySQL

2003-09-23 Thread James Johnson
Ok, thanks. It took a little bit of experimenting with printf(), sprintf() and quotes, but I got it to work. mysql_select_db($database_CCB, $CCB); $ad_contact = "[EMAIL PROTECTED]909-555-1212"; $esAdContact = mysql_escape_string($ad_contact); $q = sprintf("UPDATE subscriber_ads SET ad_contact = '%

[PHP] SEssion error

2003-09-23 Thread Stephen Schneider
I am getting the following error: SESS: [TID: 5F0],.\src\tp0tcp_s.c:668: TP0: tp0tcp_conn_req() Connect Socket# [2700] is too high. The supported socket range is 0-1024 It only appears on one page on our web site. I am using sessions for login tracking. If they aren't logged in we get the mes

Re[2]: [PHP] CAN I CASH the output of PHP SCRIPT?

2003-09-23 Thread Tom Rogers
Hi, Wednesday, September 24, 2003, 1:36:26 AM, you wrote: RR> On Tue, 23 Sep 2003 05:27:12 + RR> Curt Zirzow <[EMAIL PROTECTED]> wrote: >> * Thus wrote Nabil ([EMAIL PROTECTED]): >> > Hi all; >> > >> > I would like to cash all the output of PHP files on my apache .. >> > to increase the perf

[PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Roger Spears
Hello, I've googled to try to find an answer to this. I've also checked the php.net site. Perhaps I'm not using the correct search parameters. The only suggestion I've found is the following code: But this doesn't seem to solve my problems. My problem/question is as follows. I have an ema

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Didier McGillis
http://www.php.net/manual/en/function.header.php // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-ca

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread jeffrey pearson
I like to use Edit Plus. www.editplus.com It has the syntax highlighting for php, perl, java, and many others through modules that are downloadable from their web site, DOESNT change code like dreamweaver does and its cheap ($25). Jeff Pearson - Original Message - From: "Ruessel, Jan"

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Roger Spears
Sorry Didier, your suggestion did not solve the problem. I appreciate the information though! I'm still having the "back" button problem in the middle of using the script. Thanks, Roger Didier McGillis wrote: http://www.php.net/manual/en/function.header.php // always modified header("Last-M

RE: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Jay Blanchard
[snip] 1) How can I prevent the use of the browser "back" button after someone logs out? [/snip] Set a cookie on login, unset the cookie on logout. Check for cookie, if it doesn't exist display login mechanism. [snip] 2) If, after a user has attained step 3, they use their back button to change

[PHP] GD problem

2003-09-23 Thread Ignacio Correa
Hi, I´m new in PHP+GD. I have install all library (PHP4-gd2, libgd2, etc, etc, etc.) and when I use gd functions no errors or warning are displayed, but when I use imagepng() or imagejpeg() no images are displayed in my browser, and in this place extrage symbols are displayed. You can see my bad

[PHP] XQL module ?

2003-09-23 Thread Gal
Does anyone know if PHP has module for XQL - XML Queary Language ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jim Lucas
I like NoteTab from www.notetab.com It doesn't do syntax highlighting, but if you need that, then you need to learn to code better. And best of all, there is a free version that does most everything the full priced copy does. Plus, one added feature is, is that it will allow you to do internal s

Re: [PHP] GD problem

2003-09-23 Thread Pete James
You're outputting a blank PNG image, in binary form. In order to display it (not that you'd see anything since it's blank), you need to output a Content-Type header first, like so: header("Content-Type: image/png"); THis will instruct the browser to treat the incoming data as image data. HTH.

RE: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Chris W. Parker
Jim Lucas on Tuesday, September 23, 2003 9:56 AM said: > Plus, one added feature is, is that it will allow you to do internal > scripting. What are you able to do with "internal scripting"? chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] GD problem

2003-09-23 Thread Andrew Brampton
ImagePNG() ouputs to the browser unless you specify the filename parameter So those funny symbols you are seeing is the PNG file but displayed as text. To fix this you need to add a Header("Content-type: image/png"); somewhere in your PHP (preferably before ImagePNG), and it will tell your browse

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jason Wong
On Wednesday 24 September 2003 00:56, Jim Lucas wrote: > I like NoteTab from www.notetab.com > > It doesn't do syntax highlighting, but if you need that, then you need to > learn to code better. Does that mean php shouldn't have any error reporting whatsoever, because it encourages bad incompete

RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jay Blanchard
[snip] > It doesn't do syntax highlighting, but if you need that, then you need to > learn to code better. Does that mean php shouldn't have any error reporting whatsoever, because it encourages bad incompetent coders who rely on being mollycoddled? [/snip] Mollycoddled indeed! I remember when

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
What I meant was not the implementation, what I meant was that there was no way for the compiler/parser to know whether I was implementing position() from the Employee interface or the BoardMember interface, the declaration was ambiguous. If I implement the function there, then (from what I can te

[PHP] preg_match_all

2003-09-23 Thread Floris
hi, I have this piece of code. but the problem is that he also links parts of words (like: credits) and i wnat only standalone words (like: edit) Does someone have i idea to correct this piece of code? Floris -

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Ryan A
> It doesn't do syntax highlighting, but if you need that, then you need to > learn to code better. O holy genius coder, we bow to you, forgive uswhy did we take the straight and easy path instead of the rough and true path... -Ryan -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] preg_match_all

2003-09-23 Thread Curt Zirzow
* Thus wrote Floris ([EMAIL PROTECTED]): > hi, > I have this piece of code. but the problem is that he also links parts of > words (like: credits) and i wnat only standalone words (like: edit) > Does someone have i idea to correct this piece of code? > > Floris > > { > $regex1 = ">[^<]*("; > $reg

RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Chris W. Parker
Ryan A on Tuesday, September 23, 2003 11:10 AM said: > O holy genius coder, we bow to you, forgive uswhy did we take the > straight and easy path instead of the rough and true path... Because we are not ereet. -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Ryan A > on Tuesday, September 23, 2003 11:10 AM said: > > > O holy genius coder, we bow to you, forgive uswhy did we take the > > straight and easy path instead of the rough and true path... > > Because we

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote: > What I meant was not the implementation, what I meant was that there was no > way for the compiler/parser to know whether I was implementing position() > from the Employee interface or the BoardMember interface, the declaration > was ambiguous. I

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
So does this mean that I can then do: Class BusyBoardMember implements Employee, BoardMember { function position() { // code for Employee implementation; } function position() { // code for BoardMember implementation; } } And if I only implemen

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Jay Blanchard
[snip] So does this mean that I can then do: Class BusyBoardMember implements Employee, BoardMember { function position() { // code for Employee implementation; } function position() { // code for BoardMember implementation; } } And if I only i

[PHP] Document Management App

2003-09-23 Thread Jay Blanchard
Howdy & Good Afternoon! I am about to run off to a project's development group meeting (the general audience kind, requestors and developers) and this question came up this morning for a potential answer in this afternoon's meeting. I have googled, searched, poked and prodded...but I need to see i

[PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Joe Harman
Is there a CSV file out there for this Does anyone know where I can aquire a file that has IP address with the corresponding Postal Code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript open window and a PHP script...

2003-09-23 Thread jsWalter
That's it! It works like a charm! Thank you very, very much! Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jim Lucas
you can create so-called assistants... You can create a loop that asks in a table how many rows and columns do you want in that table. Then you can have it create the table with all your favorite default table settings, but while it is generating it, you could have it prompt you for any additiona

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jim Lucas
Who did I say was incompetent? I don't think I said that. Maybe you took it that way, but that I did not say. I never said that I was better at writing code then anybody else, as a matter a fact I get stumped on many things. I love this list because without having to ask any questions, all my qu

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread CPT John W. Holmes
From: "Roger Spears" <[EMAIL PROTECTED]> > 1) How can I prevent the use of the browser "back" button after someone > logs out? You don't. You never prevent the use of the back button. When someone logs in, then a session should be started with some content, like you've already mentioned. So, thou

[PHP] date conflict with old news archive

2003-09-23 Thread \[ PAUL FERRIE \]
God i hope this is simple :) I have news bloggs section on my site. At present the news is loaded in from a txt file, most of the site is now running with most sections being loaded via mysqldb's. I would like to add the old entries to the new db that i have setup for the bloggs. My problem is co

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Jeremy Johnstone
I doubt you will find such a thing. The closest you will probably find is doing it in a two step approach: IP Address to approx Lat/Long Lat/Long to Zipcode The second database is easy to find, the first one you usually have to pay money for. If you find a good public free resource whi

Re: [PHP] date conflict with old news archive

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 09:01:19PM +0100, [ PAUL FERRIE ] wrote: : : God i hope this is simple :) It is. I think. :-) : I have news bloggs section on my site. At present the news is loaded in : from a txt file, most of the site is now running with most sections being : loaded via mysqldb's.

Re: [PHP] Running system commands

2003-09-23 Thread Mike Migurski
>I was wondering, if anyone can help me with running system commands from >within php. Actually I have a script which deletes users from my database >(which is of course MySQL), now I want to delete those users from system >level also, as they are authenticated users of my OS also. > >Now, the prob

[PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Hey people. I've got an array like this: [0] => Array ( [0] => j [fname] => j [1] => j [lname] => j [2] => jj [state] => jj [3] => [EMAIL PROTECTED] [email] => [EMAIL PROTECTED]

RE: [PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, September 23, 2003 1:38 PM said: > Someone have a clue? Hmm... maybe www.php.net/array_keys will help me out here. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
It doesn't get much simpler :) foreach( $data as $key => $value ) { if( $value == '' ) { $data[$key] = ' ' } } Cheers, Rob. On Tue, 2003-09-23 at 16:38, Chris W. Parker wrote: > Hey people. > > I've got an array like this: > > > [0] => Array > ( > [

Re: [PHP] date conflict with old news archive

2003-09-23 Thread PAUL FERRIE
Cheers your a star :) "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, Sep 23, 2003 at 09:01:19PM +0100, [ PAUL FERRIE ] wrote: > : > : God i hope this is simple :) > > It is. I think. :-) > > : I have news bloggs section on my site. At present the news is load

Re: [PHP] Running system commands

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 16:34, Mike Migurski wrote: > >I was wondering, if anyone can help me with running system commands from > >within php. Actually I have a script which deletes users from my database > >(which is of course MySQL), now I want to delete those users from system > >level also, as th

RE: [PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Robert Cummings on Tuesday, September 23, 2003 1:43 PM said: > It doesn't get much simpler :) Doh!! > foreach( $data as $key => $value ) I don't use that syntax much so I'm not familiar with it. Maybe I should start eh? Thanks, Chris. -- PHP General Mailing Lis

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Dan Anderson
> If you find a good public free resource which is > frequently updated (as it would need to be as the Internet is always > changing) then please let me know. I have been unable to find something > and have looked on multiple occasions. Please let me know too. I think that the resources

[PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
Hi! I am kind of newbie coming from ASP and I came upon some hindrances, which could be because of not knowing enough of PHP The problem is: I am trying to make a form with good and user-friendly validation. After failure to validate properly some of the fields and going to another page i.e. the

Re: [PHP] help with arrays

2003-09-23 Thread Pete James
Of course, you could do it in a much more cryptic way... just for fun. :-) INPUT: $a = array( '0' => 'j', 'fname' => 'j', '1' => 'j', 'lname' => 'j', '2' => 'jj', 'state' => '', '3' => '[EMAIL PROTECTED]', 'ema

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:06, Pete James wrote: > Of course, you could do it in a much more cryptic way... just for fun. > AKA Perl style ;) -- .. | InterJinn Application Framework - http://www.interjinn.com | :-

RE: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Javier Muniz
Hi Martin, When they say at the top of the page before anything else, they mean before any other output. Just make sure that you don't have any HTML/text before the header("Location: ...") that's outside of your 's, and that you don't echo anything before your header call. -Javier -Origin

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Robert Cummings
On Wed, 2003-09-24 at 16:22, Martin Raychev wrote: > Hi! > > I am kind of newbie coming from ASP and I came upon some hindrances, which > could be because of not knowing enough of PHP > > The problem is: > I am trying to make a form with good and user-friendly validation. After > failure to valid

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Jason Wong
On Thursday 25 September 2003 04:22, Martin Raychev wrote: > I am kind of newbie coming from ASP and I came upon some hindrances, which > could be because of not knowing enough of PHP > > The problem is: > I am trying to make a form with good and user-friendly validation. After > failure to valida

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : : Robert Cummings said: : > : > foreach( $data as $key => $value ) : : I don't use that syntax much so I'm not familiar with it. Maybe I should : start eh? Another caveat: it works on a *copy* of the ar

[PHP] Php returns wrong content-type (one php, two apaches)

2003-09-23 Thread Jan Vitek
Hello, I installed Apache 2.0.47 with PHP 4.3.3 (as Apache module). Everything worked fine, until I decided that I will install one more Apache. I installed the second apache (again Apache 2.0.47 and PHP 4.3.3) and configured it in a same way as the first apache, only the port (directive Listen

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: > : > : Robert Cummings said: > : > > : > foreach( $data as $key => $value ) > : > : I don't use that syntax much so I'm not familiar with it. Maybe I shoul

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote: : On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: : > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : > : : > : Robert Cummings said: : > : > : > : > foreach( $data as $key => $value ) : >

[PHP] How can I auto upload a file to the server?

2003-09-23 Thread jane
I have a .txt file on my local Windows 2000 box that i want uploaded to a remote L.A.M.P. server with only one click. I want to have a link (shortcut) on my desktop when clicked it launches a web browser loaded with a remote .php script that automatically goes into C:\data\upload_me.txt and upload

[PHP] reading files through ssl protocal

2003-09-23 Thread Chris Edwards
Hi Trying to read a file via ssl. It seems to read the file ok. The content is correct. But I get this when using the https protocol. Warning: fgets(): SSL: fatal protocol error or Warning: fread(): SSL: fatal protocol error When I use regular http, I do not get the warning. Anyone observed

[PHP] Full view of active sessions

2003-09-23 Thread Ney André de Mello Zunino
Hello. Is there any facility in PHP's session management library which allows one to have a full view of the active sessions? In other words, is it possible to check the existance and value of a given session variable in any of the active sessions? My goal is to make sure a user's access infor

Re: [PHP] Full view of active sessions

2003-09-23 Thread Jeremy Johnstone
Here is a possible solution, but I don't know if it will work for your purposes: When a user logs in to your site, as part of the session store a random string (say a logincheck). Also insert this value into the database on the same row as the username/password is stored. Then on every page load c

  1   2   >