RE: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Olivier Masudi
Personnaly i use this method with phpMyAdmin. I make a dump of each table Structure and data.copy and paste it into a txt file. You can also use de csv format. Hope you don't hae a lot of table :=) I know it's very simple but it work. -Message d'origine- De : Thomas Edison Jr.

Re: [PHP] Passing Logined in Name form One Form to other Page

2001-12-20 Thread Mehmet Kamil ERISEN
Hi, May I suggest that you take a look at the code library at zend.com, and devshed.com . I remember seeing a login application using the SESSIONS. Alternatively, you can use cookies to let your browser know who is browsing. Jack [EMAIL PROTECTED] wrote: Dear all I had create the Login

Re: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Mehmet Kamil ERISEN
Dear Friend, If I were you, I would take my biz elsewhere. BTW, which company is that? Anyway, I will recommend you to use the phpMyAdmin. It's a mysql database management tool written in PHP, free of charge of course, that lets you manage your database. One of the cool things it that it

TR: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Olivier Masudi
-Message d'origine- De : Olivier Masudi [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 20 décembre 2001 09:24 À : Thomas Edison Jr. Objet : RE: [PHP] How to backup records in mySQL DB? I think thirs you have to install phpMYAdmin in your server you can find it here :

[PHP] Signing Files with PGP

2001-12-20 Thread J.Mueller, pro.vider.de GmbH
Hello List, I try to setup a script which automatically signs a file with PGP. With the system command this looks like that: % /usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt A private key is required to make a signature. Need a pass phrase to decrypt private key: 1024 bits, Key

[PHP] Size of array in bytes

2001-12-20 Thread Stefan Rusterholz
Hi I have a rather large array in my script and I was interested how much memory it uses. Is there a way to get the size of an array in bytes? BTW: I did RTFM and didn't find an accomidating function, so if there is one, please point me to it... TIA Stefan Rusterholz -- PHP General Mailing

Re: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Jon Farmer
We're beggining again but i'm not scared about the Data. The data is posted online by users. I need to have a way to backup my mySQL data. If possible, on some other site location or in Hard Copy (As in a file) or something. I don't know how to do any of this. I have no idea what to do

[PHP] How to save the result page generated by a Form?

2001-12-20 Thread Joe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a simple question. My Scenario: Page a.php - The Form The user insert his data (ie name, address, city and so on...)Then he submit the $ to b.php. Page b.php now shows : Hello Mr. $name , etc etc ... I nedd now to save what I see on the sreen

Re: [PHP] How to save the result page generated by a Form?

2001-12-20 Thread Stefan Rusterholz
I don't know if it matches your needs but perhaps it helps: http://www.php.net/manual/en/ref.outcontrol.php http://www.php.net/manual/it/ref.outcontrol.php this page isn't translated, but perhaps some subpages... good luck Stefan Rusterholz - Original Message - From: Joe [EMAIL

[PHP] fatal error: out of dynamic memory in yy_create_buffer() in unknown on line 0

2001-12-20 Thread Henri
Hello, When I try to access my .php4 pages I get this error : fatal error: out of dynamic memory in yy_create_buffer() in unknown on line 0 These pages used to work before, but it seems that my Host has updated to PHP 4.0.6. Is there some relation ? Can you help me ? You can try this page :

[PHP] CRLF Problem writing ASCII Flat File

2001-12-20 Thread Bob Holden
Using Linux 7.2/PHP 4/Apache. I'm using the following code snippet to process the POST of a form that sends $UserID and $Password: ?php $CryptPassword = md5($Password); \\encrypt the password $TheFile = /path/.htpasswd; \\Set the file name/path $Data =

[PHP] How to convert OEM to ANSI character set

2001-12-20 Thread Alex Vargas
I have a PHP script that receives a CSV text file and inserts it into a MySQL database. My problem is that this CSV file is made using the OEM character set and I need it with the ANSI character set. The closest thing I've found is the convert_cyr_string() function, but there isn't a code

Re: [PHP] PHP3 NOT being parsed for SSI!! HELP!!

2001-12-20 Thread Steve Edberg
If you're using PHP as an Apache module, you can use virtual() - http://www.php.net/manual/en/function.virtual.php - to include the dynamic parts; vcstatic includes could be handled by virtual() or just a normal PHP include()/require(). - steve At 11:09 PM -0800 12/19/01,

php-general Digest 20 Dec 2001 11:49:00 -0000 Issue 1063

2001-12-20 Thread php-general-digest-help
php-general Digest 20 Dec 2001 11:49:00 - Issue 1063 Topics (messages 78267 through 78313): Re: Remote image 78267 by: David Piasecki Quanta IDE - PHP Highlighing for 4.0.1 78268 by: Mike Eheler 78269 by: Mike Eheler PHP 4.1.0 patch for Quanta IDE, The Sequel

Re: [PHP] PHP3 NOT being parsed for SSI!! HELP!!

2001-12-20 Thread dimok
Hello, For including file you can use function virtual() with the file to include as parameter. This work under Apache only. Hope, it'll be useful for you. dimok - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001

Re: [PHP] Size of array in bytes

2001-12-20 Thread Bogdan Stancescu
Had the same problem not long ago and I didn't find a simple solution either. My solution at the time was the painfully slow one - walking the array and storing strlen for both key and value. Since you have a large array, this probably doesn't do for you. A faster but less accurate solution

Re: [PHP] Size of array in bytes

2001-12-20 Thread Stefan Rusterholz
Hm, I thought about that way - technically it was indeed a way to go since I don't want to perform this action everytime but only for testing purposes (so time doesn't matter). But aren't arrays in PHP internally stored in a hash-like system which's size doesn't have to be equal to the sum of

[PHP] PHP / SSL

2001-12-20 Thread Richard Black
Hi, Bit off topic this, but I thought I'd ask anyway... I've been implementing a financial reporting system, in PHP, which will be running on the internet. Obviously, therefore, security is an issue. The system itself implements a username/password login system, but I want to be able to run

[PHP] Convert tif -- jpg

2001-12-20 Thread Roman
Please help me. I need convert image from tif format to the jpg format, exist any php function to do this ? Thank you Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] Convert tif -- jpg

2001-12-20 Thread Bogdan Stancescu
If you work under Linux you might want to check out the man page for mogrify and perform an ? exec(mogrify -format jpeg $filein $fileout); ? for example. Bogdan Please help me. I need convert image from tif format to the jpg format, exist any php function to do this ? Thank you

RE: [PHP] Convert tif -- jpg

2001-12-20 Thread Roman
No, I need convert format of image in windows system. -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 3:14 PM To: Roman; Php-General Subject: Re: [PHP] Convert tif -- jpg If you work under Linux you might want to check out the man

Re: [PHP] PHP / SSL

2001-12-20 Thread TD - Sales International Holland B.V.
On Thursday 20 December 2001 14:58, you wrote: I urge you strongly to advise against that. Although it might be possible to downgrade your encryption to 40bit I'd like to make you aware of the fact that DES which is 56 bit encryption if I'm not mistaken was cracked several times by brute

Re: [PHP] PHP / SSL

2001-12-20 Thread Shane Wright
Hang on, correct me if I'm wrong, but isn't 56bit DES significantly different from 40-bit SSL (which uses a 40bit key for the public key crypto and something like a 3000bit key for the symmetric cipher used for the actual data transfer). What I mean is, DES is significantly weaker than the

Re: [PHP] PHP / SSL

2001-12-20 Thread Jon Farmer
I urge you strongly to advise against that. Although it might be possible to downgrade your encryption to 40bit I'd like to make you aware of the fact that DES which is 56 bit encryption if I'm not mistaken was cracked several times by brute force in UNDER 22 hours by the distributed.net

Re: [PHP] Signing Files with PGP

2001-12-20 Thread Brian Clark
* J.Mueller, pro.vider.de GmbH ([EMAIL PROTECTED]) [Dec 20. 2001 04:17]: Hello List, Howdy.. I try to setup a script which automatically signs a file with PGP. [...] When I use something like $command=/usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt; exec($command,$answer);

[PHP] Uploading Word Document problem

2001-12-20 Thread Alexis Antonakis
Hi All, I have a site whereby you can upload a Resume in Word or Text format, but for certain Word documents, the upload process just times out. Has anyone else come across this problem, and if so any suggestions? Many Thanks Alexis -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Signing Files with PGP

2001-12-20 Thread Jon Farmer
The -z option allows you to pass the passphrase on the command line -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Brian Clark [EMAIL PROTECTED] To: PHP is not

[PHP] Limit script memory usage !!

2001-12-20 Thread Nicolas Guilhot
Hi all, I need to limit the amount of memory that a script can use. Is there a function that I can use to tell the script to die if its memory usage becomes greater than $MAX_MEMORY ! Or maybe, I could use a cron job to monitor processes and kill them if they become too big ? Thanks for your

RE: [PHP] Limit script memory usage !!

2001-12-20 Thread Jerry Verhoef (UGBI)
There is a setting in de php.ini called memory_limit. Remember it is in bytes! Jerry -Original Message- From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 4:09 PM To: Php General MailingList Subject: [PHP] Limit script memory usage !! Hi all, I need to

[PHP] Help with Sessions - Should be easy =]

2001-12-20 Thread Tomasz Jachimczak
I am coming from an asp background, and am used to setting session variables very easily, but I cannot work them out here with all the different commands. I would like to store in a session variable output from a mysql db (Got the db bit working fine) but cannot for the life of me store or

RE: [PHP] Convert tif -- jpg

2001-12-20 Thread Miles Thompson
Any number of image manipulation programs do that, However, try installing CygWin and see if mogrify will run. Miles Thompson At 03:20 PM 12/20/2001 +0100, Roman wrote: No, I need convert format of image in windows system. -Original Message- From: Bogdan Stancescu [mailto:[EMAIL

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Alawi
USE PHPSELF in windows not $PHP_SELF -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Alawi
sorry $PHPSELF not $PHP_SELF in windows I forget $ :) - Original Message - From: Alawi [EMAIL PROTECTED] To: PHP genral [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 6:34 PM Subject: [PHP] Re: $PHP_SELF not working -please help USE PHPSELF in windows not $PHP_SELF

[PHP] How can I have CVS ?

2001-12-20 Thread Alawi
and log to it from windows ?

[PHP] compressed content and output buffering

2001-12-20 Thread Shane Wright
Hi The way output buffering and output compression work, all the output is buffered until script termination, at which point it's compressed and then all sent to the browser. Is there any way having it compressed but not buffering it? gzip is a stream based algorithm, so there shouldn't be

[PHP] Need another verse

2001-12-20 Thread bill
To the tune of Let it Be, with apologies to the Beatles and all those who have gone before: When I find my code in tons of trouble, Then the newsgroups come to me, Speaking words of wisdom: PHP As the deadline fast approaches, And the bugs are all I see, Somewhere, someone whispers PHP PHP,

[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread J Smith
I sumbitted a similar patch to the Quanta team about a week ago. It may appear in an upcoming release, possibly Quanta 3, which will come with KDE 3.0. A few other additions I made: - highlighting is now case-insensitive for everything. I believe older versions were case-sensitive for

[PHP] rrd tool's graphing and png

2001-12-20 Thread Lancashire, Pete
I must be doing something wrong that is really simple hence I can't figure out what I'm doing wrong. I'm using a package called rrd tool, one of its (unix) command line programs has the option to output to stdout a png image. I'm trying to get that output feed in to ImagePNG to display the

[PHP] Re: Help with Sessions - Should be easy =]

2001-12-20 Thread Fred
Why don't you give us a code snippet so we know how you are trying to do it. Fred Tomasz Jachimczak [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am coming from an asp background, and am used to setting session variables very easily, but I cannot work them

[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Mike Eheler
Cool, however PHP is not case sensitive, nor is ASP or HTML for that matter, therefore case sensitive syntax highlighting will not be good for these languages. Mike J Smith wrote: I sumbitted a similar patch to the Quanta team about a week ago. It may appear in an upcoming release,

[PHP] fsockopen / fopen

2001-12-20 Thread James Cox
Anyone know what errno 0 is for fsockopen? Thanks, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . James Cox :: Senior Support Engineer Wherewithal, Inc. e: [EMAIL PROTECTED] Wherewithal. Capture Creative Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . --

Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Jack Dempsey
really? ? $THIS_IS_A_VARIABLE=1; $this_is_a_variable=2; echo $THIS_IS_A_VARIABLE\n; echo $this_is_a_variable\n; ? seems sensitive to me... Mike Eheler wrote: Cool, however PHP is not case sensitive, nor is ASP or HTML for that matter, therefore case sensitive syntax highlighting will not be

RE: [PHP] How can I have CVS ?

2001-12-20 Thread Nathan Cassano
And the answer is... WinCVS Check it our at. http://www.cvsgui.org/ -Original Message- From: Alawi [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 7:51 AM To: PHP genral Subject: [PHP] How can I have CVS ? and log to it from windows ? -- PHP General Mailing List

Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Mike Eheler
? echo (null == Null); eCho (NULL == NuLl); eCHo (FALSE == false); prINt(pre); Print_R(GET_defined_VaRs()); sPrinTF('%s','/pre'); ? Variable names are the *only* exception. So yes, $var != $Var; And variable names are not syntax highlighted specifically (other than the fact that variables

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Phillip Oertel
Alawi wrote: use $PHPSELF not $PHP_SELF in windows BAD IDEA. what happens if one day you (or even worse: someone else) wants to run your scripts on a different server? one of the nicest things about PHP that you can run it on many different any OS's. phil. -- PHP General Mailing List

Re: [PHP] Need another verse

2001-12-20 Thread Kevin Stone
Okay you need to interject some emotion into your song... try something like... Now PERL's been sending emails, She sais she's feeling jealousy, Because I have a new friend, PHP -Kevin - Original Message - From: bill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 20,

[PHP] Images

2001-12-20 Thread PHP List
Hi, I am trying to do something like this: img src=image.php?image=1 The code is like this: script language=php $szPicture = myimage.gif; $url = http://www.mysite.com/; . $szPicture; header(Content-type: image/gif); header(Content-Length: . strlen($url)); echo $url; /script But nothing

[PHP] undefined function: ftp_connect()

2001-12-20 Thread Sam Schenkman-Moore
I've compiled php 4.0.6 on Darwin as CGI. --with-ftp shows up in the php configuration display but I still get this message: undefined function: ftp_connect() I've read a couple past articles with people having this problem but I did not spot a solution. Any suggestions? Thanks, Sam --

Re: [PHP] Quanta IDE - PHP Highlighing for 4.0.1

2001-12-20 Thread Austin Gonyou
So is glimmer. On Wed, 2001-12-19 at 17:27, Mike Eheler wrote: Attached is a text file that will update Quanta IDE 2.0.1 syntax highlighting for PHP. Simply use your favourite text edit quanta/kwrite/highlight.cpp in your quanta-2.0.1 source tree, and paste the text from this attached

[PHP] List all session currently associated with a web site

2001-12-20 Thread Alex Shi
Hi, I 'd like to know how can we list all the sessions concurrently active on a web site. If anyone out there knows how to do the trick please help. Thanks in advance! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Images

2001-12-20 Thread PHP List
Thanks, but my html is valid, and what you are doing is not what I want to do. I want to display a random image included in the page, just like a banner program would work. I do not allow php execution on the page so the only way to get the image is to call the script with the img src tag, just

Re: [PHP] Need another verse

2001-12-20 Thread bill
Ooh, good. That's what it needed. Maybe even some tragedy: How-to books mourn unused, dusty, having ceased with Java Beans, Now I program quickly, PHP Kevin Stone wrote: Okay you need to interject some emotion into your song... try something like... Now PERL's been sending emails, She

Re: [PHP] Images

2001-12-20 Thread Joel Boonstra
img src=image.php?image=1 The code is like this: script language=php $szPicture = myimage.gif; $url = http://www.mysite.com/; . $szPicture; header(Content-type: image/gif); header(Content-Length: . strlen($url)); echo $url; /script You're properly printing

[PHP] Re: undefined function: ftp_connect()

2001-12-20 Thread Chris Lee
run phpinfo() is ftp support in there? if not run configure like you normally do and scroll up to the ftp section, are there any errors in there? if so what are they? -- Chris Lee [EMAIL PROTECTED] Sam Schenkman-Moore [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] SSL Connection with cURL

2001-12-20 Thread Roman Eich
Hi NG, i want to establish an SSL connection with cURL. I used two different scripts, 1) $URL=ssl.server.com/path/file.ext; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,https://$URL;); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS , $data); curl_setopt($ch,

Re: [PHP] SSL Connection with cURL

2001-12-20 Thread Gerard Onorato
Roman, This is certainly not the exact answer you are looking for however... We had a lot of trouble using the PHP curl commands directly. We are currently doing a large volume of transactions using cURL with great success by shelling to it. I am attaching a very simple example of what we are

[PHP] none

2001-12-20 Thread Arsen Kirillov
Ok i am in test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: undefined function: ftp_connect()

2001-12-20 Thread Mike Eheler
You need to compile with ftp support. --with-ftp is not the right command, it should be --enable-ftp Mike Sam Schenkman-Moore wrote: I've compiled php 4.0.6 on Darwin as CGI. --with-ftp shows up in the php configuration display but I still get this message: undefined function:

[PHP] Issues with fopen long file names?

2001-12-20 Thread Javier Muniz
I'm trying to open a file using php 4.1.0 under windows 2k server. The script uses fopen and the filename is long (approx 40 characters + extension). I'm getting the error: Warning: fopen(c:\_file_345176fo90301b70374d2f30e5a11d5b.ext , r) - Invalid argument in file.php on line 127 can fopen

[PHP] web server crashing with either 4.1.0 or 4.0.6

2001-12-20 Thread Ian McNish
when trying at access any php scripts my web server is crashing. i'm experiencing this problem with both php 4.0.6 and 4.1.0 on iplanet enterprise 6.0sp1 on solaris 8. my web server is logging the following error: catastrophe (21929): Server crash detected (signal SIGSEGV) info (21929): Crash

[PHP] Suggestions for the next php

2001-12-20 Thread Stephano Mariani
Hi! I have been a PHP user since version 3.0 came out, and have seen it develop a lot along the way, but theres some things I find it lacks that it really should not. If people agree, I'll glady contribute to the PHP codebase. For example, multi-threading. Looking at the PHP sources, I can see

[PHP] Translate question

2001-12-20 Thread Mehmet Kamil ERISEN
Hello, I am trying to transalte entry in Turkish Characters to English Characters. I wrote the following code. function translate_turkish($string) { $estring = strtr($string, ç, c); $estring = strtr($string, ç, c); $estring = strtr($estring, ð, g); $estring = strtr($estring, G, G);

[PHP] MS Word text pasted into forms

2001-12-20 Thread jimtronic
Occasionally, I have a problem dealing with some of the special characters from text authored in MS Word, and then pasted into a web form. It seems that somewhere something bad happens and what eventually gets put into mysql via php is not correct. In particular, I have trouble with

Re: [PHP] MS Word text pasted into forms

2001-12-20 Thread Gerard Onorato
Jim, Have you tried a regular expression. Something like ereg_replace([^[:alnum:]|[:space:]|[:punct:]@], , $string); to clean the string? Gerard O On Thu, 20 Dec 2001 17:02:58 -0500, jimtronic wrote: Occasionally, I have a problem dealing with some of the special characters from text

[PHP] How to check if a session exists

2001-12-20 Thread Alex Shi
If a sesson_id is known, how can check if the session exists? Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
Hi all, I've got an array in the global scope called $g_months which oddly enough contains the names of the months. Now when I try to import this into a function as global $g_months; it doesn't work. When php prints out the array as an option box I just wind up with no options. Any ideas why

[PHP] New Object Oriented Programming (OOP) mailing list for PHP programmers

2001-12-20 Thread Manuel Lemos
Hello, Despite I already created this list a long time ago, only now I am announcing it as a general purpose forum for discussing matters related with Object Oriented Programming done in PHP. Everybody is invited and to join all you need to do is to send a message to [EMAIL PROTECTED] or go to

Re: [PHP] Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
Sounds quite odd - you may try an echo(serialize($g_months)) in the function and see what you get... It may be that the code generating the option box has problems - this way you make sure $g_months is empty indeed. Bogdan Jason Rennie wrote: Hi all, I've got an array in the global scope

Re: [PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
Sounds quite odd - you may try an echo(serialize($g_months)) in the function and see what you get... It may be that the code generating the option box has problems - this way you make sure $g_months is empty indeed. Thanks for that. IT appears to be a problem with the function itself, as the

php-general Digest 20 Dec 2001 23:58:35 -0000 Issue 1064

2001-12-20 Thread php-general-digest-help
php-general Digest 20 Dec 2001 23:58:35 - Issue 1064 Topics (messages 78314 through 78368): Re: PHP3 NOT being parsed for SSI!! HELP!! 78314 by: dimok Re: Size of array in bytes 78315 by: Bogdan Stancescu 78316 by: Stefan Rusterholz PHP / SSL 78317 by:

Re: [PHP] Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
The first thing that comes to mind - if you say it's working with local variables - is trying to set it local prior to using it (i.e. insert a $loc_months=$g_months just below global $g_months and use the local variable from then on). It may be a bug in your PHP - walking an array with each

Re: [PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
It may be a bug in your PHP - walking an array with each probably sets some internal position marker which may be buggy for your very situation (global variable in local function - something like that). Thanks for that. I tried it with foreach and it works now. Jason -- Hofstadter's Law :

[PHP] Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
Add a reset($g_months) right before your while(...) statement. On Fri, 21 Dec 2001, Jason Rennie wrote: Sounds quite odd - you may try an echo(serialize($g_months)) in the function and see what you get... It may be that the code generating the option box has problems - this way you make

[PHP] Re: Number Format

2001-12-20 Thread Philip Hallstrom
Like the other guy said or take a look at the sprintf() function. On Thu, 20 Dec 2001, phantom wrote: I would like to format numbers to be a fixed width. I want all numbers to be 2 characters in width to the left of the decimal point. 1 should be 01 2 should be 02 3 should be 03 How

Re: [PHP] Re: Global Arrays ?

2001-12-20 Thread Bogdan Stancescu
Why is this needed in this case an not for local variables? You probably are right, I don't imply you aren't, but why is a reset needed in local scope when using global variables? Is it possible to start an each() in a function and continue it in another for global arrays? Philip Hallstrom

Re: [PHP] Number Format

2001-12-20 Thread Steve Edberg
Or http://www.php.net/manual/en/function.sprintf.php or http://www.php.net/manual/en/function.printf.php At 04:45 PM 12/20/01 , Bogdan Stancescu [EMAIL PROTECTED] wrote: if ($i10) { $i=0.$i } ? :-) phantom [EMAIL PROTECTED] wrote: I would like to format numbers to be a

[PHP] Bookmarking pages

2001-12-20 Thread Jason Rennie
Hi all, again, I need to be able to have working bookmarkable pages in a system. The user has session ID's which have to time out, so when they do the user is kicked out of the system. But i've been asked to set it up so that after a user gets kicked to a login screen becasue they have an

Re: [PHP] Help with Sessions - Should be easy =]

2001-12-20 Thread Michael Sims
At 01:53 AM 12/21/2001 +1100, Tomasz Jachimczak wrote: I am retreiving user information from a database after verification, and would like to place certain feilds into a session variable for easy access/retreival. I can get the information out of the database, but cannot place it into any sort of

[PHP] Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
Hi everybody! Two things I consider urban myths about PHP (plus MySQL) - please let me know what you think of these: 1. The evil global variables Ok, the classic ? if ($pwd==GOODPASSWORD) { $lethimin=1; } [bullshit code] if ($lethimin) { echo(fread(fopen(/etc/passwd,r)));

RE: [PHP] How can I have CVS ?

2001-12-20 Thread Michael Sims
At 10:19 AM 12/20/2001 -0800, Nathan Cassano wrote: And the answer is... WinCVS Check it our at. http://www.cvsgui.org/ And don't forget TortoiseCVS. http://www.cvsgui.org/TortoiseCVS/index.shtml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[Fwd: [PHP] Number Format]

2001-12-20 Thread Bogdan Stancescu
Inadvertedly sent to me: Bas van Rooijen wrote: sprintf(%02d, $i); but you should indeed check out how this function works.. phantom wrote: I would like to format numbers to be a fixed width. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 03:39 AM 12/21/2001 +0200, Bogdan Stancescu wrote: Hi everybody! Two things I consider urban myths about PHP (plus MySQL) - please let me know what you think of these: 1. The evil global variables [...] My question to you guys is this: does anybody know of a real example of reasonably

[PHP] Re: Re: Global Arrays ?

2001-12-20 Thread Philip Hallstrom
I don't think it has to do with local/global variables... it's more likely that he's already looped through a global array in which case the next call to each() will fail because it's already at the end. On Fri, 21 Dec 2001, Bogdan Stancescu wrote: Why is this needed in this case an not for

[PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Philip Hallstrom
2. Please enter your age: 25; drop database mysql Does this actually work? [...] So I decided I had to test this: I wrote the code exactly as in the example; I provided the exact dangerous input (well, to be honest, I tried a select instead of drop mysql). When I tried it, the presumably

[PHP] Positioning HTML output in browser window

2001-12-20 Thread Leland
Hi Folks, I have a script that outputs a large data list to the web browser. When the user clicks the link for a particular data item they are taken to a new script to modify the record and then when the post the changes they are taken back to the original data list. (no problem so far) What I

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 06:03 PM 12/20/2001 -0800, Philip Hallstrom wrote: I've done something similar in the past just for kicks, and I got the same result you did (i.e. an error). I believe this is because mysql_query() expects ONE query at a time and will break if you send two or more. I could be

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Philip Hallstrom
At 06:03 PM 12/20/2001 -0800, Philip Hallstrom wrote: I've done something similar in the past just for kicks, and I got the same result you did (i.e. an error). I believe this is because mysql_query() expects ONE query at a time and will break if you send two or more. I could be

Re: [PHP] Positioning HTML output in browser window

2001-12-20 Thread Bogdan Stancescu
Well, you can always code in a little Javascript, such as window.location='#lastpos'... Leland wrote: I tried generating a A NAME=lastpos/A in the orginal list, but I haven't been able to create the return link on the other page that will refrence this. I tried A

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
Philip Hallstrom wrote: A definite possibility, but it does depend on the hacker in question knowing exactly how your script is written... True, but in a shared hosting environment this is very likely. ...not to mention open source code. However, the discussion was indeed oriented towards

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Joelmon2001
how does one prevent a hacker deleting tables or what not? This is a topic I do not know enough about, thanks for opening my eyes to this matter joel

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
Well, the official point is rather obvious from my original e-mail. What I personally do is either forget about it -- again, see the original e-mail -- or, if for some reason high security is needed, I simply add 0 (zero) to numeral input fields and addslashes to strings. Bogdan [EMAIL

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 04:26 AM 12/21/2001 +0200, Bogdan Stancescu wrote: Philip Hallstrom wrote: A definite possibility, but it does depend on the hacker in question knowing exactly how your script is written... True, but in a shared hosting environment this is very likely. ...not to mention open source

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Bogdan Stancescu
True, but in a shared hosting environment this is very likely. ...not to mention open source code. Oh yeah. Guess I had a mental lapse there. If you are using, say, a script downloaded from freshmeat.net and it happens to be poorly secured then obviously the entire free world is going

[PHP] Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-20 Thread Lara J. Fabans
Hi, I need an algorithm for paging. If I have 100 pages of results, I only want to show Prev 1 2 3 4 5 6 7 8 9 10 Next Where I limit the number to 10 results of pages, but I cannot figure it out for the life of me. for ($i = $page; $i = ($page+10); $i++) { if ($i != $page) {

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 04:51 AM 12/21/2001 +0200, Bogdan Stancescu wrote: True, but in a shared hosting environment this is very likely. ...not to mention open source code. Oh yeah. Guess I had a mental lapse there. If you are using, say, a script downloaded from freshmeat.net and it happens to be

RE: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Martin Towell
My 2c worth... IMO, If you download a script and just blindly copy it to your system, then you're just asking for trouble, period - I think you should ALWAYS check code for anything that could be malicious and also check for any loopholes that need to be closed before using it. This might mean

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Billy Harvey
Freshmeat.net is a very popular database of linux software and includes a wide variety of PHP scripts. My point was that if you downloaded an insecure script from such a popular site then you are asking for trouble because chances are thousands of would-be hackers have ALSO downloaded the

Re: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Michael Sims
At 11:28 PM 12/20/2001 -0500, Billy Harvey wrote: Freshmeat.net is a very popular database of linux software and includes a wide variety of PHP scripts. My point was that if you downloaded an insecure script from such a popular site then you are asking for trouble because chances are

RE: [PHP] Re: Mommy, is it true that...?

2001-12-20 Thread Martin Towell
another 2c worth... So it's the programmer's responsibility to ensure all his/her code is as secure as possible. If it can be shown that it isn't secure, then the programmer should endevour to close that hole. This goes for any area that hackers can exploit, software and hardware...

Re: [PHP] How to save the result page generated by a Form?

2001-12-20 Thread Webleycity
When one sends an email to an address in PHP, does any one out there no how to send to two or more email addresses. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED]

  1   2   >