[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-05 Thread Gerard Samuel
I just sent an email just before reading this, to the developers I report to. I suggested that we take out the nice little feature I worked so hard on. I dont think it would be benificial to people Im writing it for, if it doesn't work for a great number of people who have their websites on

Re: [PHP] ereg checking if its only numbers

2001-10-05 Thread Rasmus Lerdorf
http://php.net/is_numeric On Fri, 5 Oct 2001, Chris Aitken wrote: Ive been playing around with ereg for about half an hour and having no joy because I dont really understand the medhod behind it and how it all works. But what im trying to do is check to see if a 9 digit string is all

[PHP] Re: How can I simulate the login process?

2001-10-05 Thread _lallous
what if they were session variables...how can i fake that out? can you plz give me an example on how to make a header with cookies before requesting a page? Richard Lynch [EMAIL PROTECTED] wrote in message

Re: [PHP] Downloading Images

2001-10-05 Thread _lallous
I suggest you call: readfile() instead of include() at the end of your script! David Otton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: I have added a download button to a web-site that enables users to

Re: [PHP] ereg checking if its only numbers

2001-10-05 Thread _lallous
That's not regexps Rasmus! :) I always see you referring us the the manual! sometimes you refer to a function i never say in my life! ;) Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://php.net/is_numeric On Fri, 5 Oct 2001, Chris Aitken

[PHP] Re: Session ID

2001-10-05 Thread Rosen
Sorry, I can't access php.ini. It's on server, outside !!! Thanks, Rosen Richard Lynch [EMAIL PROTECTED] wrote in message 046301c14d62$865a8ea0$c801a8c0@Lynchux100">news:046301c14d62$865a8ea0$c801a8c0@Lynchux100... Read php.ini Not sure you can set it on a site-by-site basis or within

[PHP] Another Header headed nowhere

2001-10-05 Thread Hugh Danaher
What I want to do is to open a new browser page after some data is entered in a form. I have a $php_self that enables $high_value and $low_value to become set and the code snip comes after the end of the form. From reading a help book and looking at the on-line manual, I think I need to send

[PHP] RE: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Jerome Ponsin
For me this really a bug in php compilation with oracle 8.1.7 within apache 1.3.20 : The problem occurs with php 4.0.5, php4.0.6 but also with latest snapshot... For Php - ./configure --with-apache=/root/apache_1.3.20 --with-mysql --enable-ftp --en able-inline-optimization --disable-debug

Re: [PHP] Another Header headed nowhere

2001-10-05 Thread Naintara Jain
Use JavaScript within PHP. If you want to open a new browser window, add the following to the script ?php echo script language=javascript window.open('url','winname','window features');/script ; ? look up the 'open' method in JavaScript. - Original Message - From: Hugh Danaher

[PHP] What is wrong (was: How to simulate any browser)

2001-10-05 Thread Kamil Nowicki
Hello again I had a problem: 1. I was able to open one certain web page with any normal browser and got proper output 2. I was able to open the same page with cURL and got the same proper output 3. When I used fopen("http://server.com/","r") or file("http://server.com","r") I

[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Markus Fischer
Again, is this patch against some kind of libc problem? Because standard 8.1.7 does not support glibc 2.2.x, only 2.1.(x|3) ? But there is little from php that can be done I think. For testing try to build a cgi module and see if that works. If so IMHO its not a php problem. I always took

Re: [PHP] System(), exec(), Passthru(), etc

2001-10-05 Thread David Robley
On Fri, 5 Oct 2001 13:54, ReDucTor wrote: - Original Message - From: David Robley [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 05, 2001 2:21 PM Subject: Re: [PHP] System(), exec(), Passthru(), etc On Fri, 5 Oct 2001 13:19, ReDucTor

[PHP] PHP is NOTa Bloated Kludge, end of discusion?

2001-10-05 Thread Ben . Edwards
Maxim Maletsky \(PHPBeginner.com\) [EMAIL PROTECTED] on 05/10/2001 01:43:57 To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject: RE: [PHP] PHP is a Bloated Kludge, discuss! Firstly let me say that you lot have been great. Lots of useful stuff and no flame, big Respect! Sorry about

Re: [PHP] cgi bug workaround

2001-10-05 Thread David Robley
On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote: hi all, I've been asked to do some work on some servers where php can only run as cgi. Unfortunately it seems that php has a bug which means that #!/usr/local/bin/php gets printed out at the top of each page if I do this. Are there

Re: [PHP] cgi bug workaround

2001-10-05 Thread James Peter Gregory
On Fri, 5 Oct 2001, David Robley wrote: On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote: hi all, I've been asked to do some work on some servers where php can only run as cgi. Unfortunately it seems that php has a bug which means that #!/usr/local/bin/php gets printed out

Re: [PHP] php in css not working with IF's

2001-10-05 Thread Jon Farmer
Budweiser if ( A != 10 or A != 9 ) -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Adding zeros to date

2001-10-05 Thread Daniel Alsén
Hi, is there a easier way to add zeros to date than the script below? (ie to get 20011005 instead of 2001105). I wrote a long string replace. But it seems kind of unecessary to me. Is it? $date_time_array = getdate (time()); $date = $date_time_array[ mday]; $month = $date_time_array[ mon

Re: [PHP] Adding zeros to date

2001-10-05 Thread Negrea Mihai
if you can't do it with date() use substr(0.$month, -2, 2) On Friday 05 October 2001 09:44, Daniel Alsén wrote: Hi, is there a easier way to add zeros to date than the script below? (ie to get 20011005 instead of 2001105). I wrote a long string replace. But it seems kind of unecessary to me

[PHP] Re: Adding zeros to date

2001-10-05 Thread _lallous
low? (ie to get 20011005 instead of 2001105). I wrote a long string replace. But it seems kind of unecessary to me. Is it? $date_time_array = getdate (time()); $date = $date_time_array[ mday]; $month = $date_time_array[ mon]; $year = $date_time_array[ year]; if ($month 10) { $month = str_r

Re: [PHP] Adding zeros to date

2001-10-05 Thread Dimitris Kossikidis
zeros to date Hi, is there a easier way to add zeros to date than the script below? (ie to get 20011005 instead of 2001105). I wrote a long string replace. But it seems kind of unecessary to me. Is it? $date_time_array = getdate (time()); $date = $date_time_array[ mday]; $month

[PHP] RE: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Jerome Ponsin
Thanks for your response, Yes it is a patch for glibc greater 2.1.3 (for me it's 2.2). The problem doesn't appear with the cgi compilation... Does that mean I can't install php module with Redhat 7.1 for example, or is there something to do ? But I think I heard about people installing

[PHP] read_exif_data crashes when reading image

2001-10-05 Thread Matthias Cramer
Hi When I use the followin code snippet whe webbrowser tells me that the page is empty ... $exif = @ read_exif_data($pictureroot . $PATH_INFO); if ($exif) { while(list($k,$v)=each($exif)) { if ($k != 'Thumbnail' !ereg('Raw', $k)) { echo $k: $vbr\n; } } } This happens not on

[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Markus Fischer
On Fri, Oct 05, 2001 at 01:10:17PM +0200, Jerome Ponsin wrote : Yes it is a patch for glibc greater 2.1.3 (for me it's 2.2). The problem doesn't appear with the cgi compilation... Does that mean I can't install php module with Redhat 7.1 for example, or is there something to do ? No it

[PHP] Database editor

2001-10-05 Thread -:-Doigy-:-
Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much like you would in ms excel. I'm thinking I'll do it with forms... Is there a non-commerical solution in existance already? Cheers, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Database editor

2001-10-05 Thread Girish Nath
Hi Take a look at phpMyAdmin at : http://phpwizard.net/projects/phpMyAdmin/ -- phpMyAdmin is intended to handle the adminstration of MySQL over the web. Currently it can: - create and drop databases - create, copy, drop and alter tables - delete, edit and add fields - execute any

[PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan
Hi For some reasons I need to execute a Perl-CGI from within PHP. I tried it that way: $command = C:\\Perl\\bin\\Perl.exe .$basedir.myperl.pl; $result = @passthru($command, $status); now my Problem: the perl prints its output immidiatly to the browser and $result is empty after the execution of

Re: [PHP] Flexible, Component-based and Large Application Systemsin PHP

2001-10-05 Thread Lucas Persona
Tim wrote: PHP works quite nicely on large, modular projects. :) That sound good ! :) Where I work we've used an environment that's a synergy of pure HTML templates + a servlet/bean infrastructure (implemented in PHP though) with great success. I have a case-study document that I'm in the

RE: [PHP] Database editor

2001-10-05 Thread Taylor, Stewart
http://www.phpwizard.net/projects/phpMyAdmin/ -Stewart -Original Message- From: -:-Doigy-:- [mailto:[EMAIL PROTECTED]] Sent: 05 October 2001 12:34 To: [EMAIL PROTECTED] Subject: [PHP] Database editor Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much

[PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan Rusterholz
Hi For some reasons I need to execute a Perl-CGI from within PHP. I tried it that way: $command = C:\\Perl\\bin\\Perl.exe .$basedir.myperl.pl; $result = @passthru($command, $status); now my Problem: the perl prints its output immidiatly to the browser and $result is empty after the execution of

[PHP] random numbers help

2001-10-05 Thread Nikola Veber
Hi ! I'm having troubles with the random numbers. When I create a number witm mt_rand() I always get the same number on my local server. I need this stuff to ranomly display some text, and I'd like to have another value of the random number each time the page is refreshed. Thanks Nikola

[PHP] Window open.

2001-10-05 Thread Johan Vikerskog (EMP)
I have yet another PHP question! =) How do i open a window in PHP and how do i insert information in it? I have a tables with a a href.. that i want to open up a new window with that displays information to the user if i clicks the link. I want everything to be in the same function. I can solve

[PHP] Re: random numbers help

2001-10-05 Thread Henrik Hansen
[EMAIL PROTECTED] (Nikola Veber) wrote: Hi ! I'm having troubles with the random numbers. When I create a number witm mt_rand() I always get the same number on my local server. I need this stuff to ranomly display some text, and I'd like to have another value of the random number

Re: [PHP] Window open.

2001-10-05 Thread * RzE:
Original message From: Johan Vikerskog (EMP) [EMAIL PROTECTED] Date: Fri, Oct 05, 2001 at 01:57:13PM +0200 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Window open. I have yet another PHP question! =) How do i open a window in PHP and how do i insert information in it? I have a tables with

Re: [PHP] Window open.

2001-10-05 Thread Jon Farmer
I have yet another PHP question! =) How do i open a window in PHP and how do i insert information in it? Actually you have a javascript question! check out window.open() in the javascript docs Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

[PHP] Html email with Flash content embedded

2001-10-05 Thread Dhaval Desai
Hi! I am trying to embed a file into my html email that I want to send my friend on Yahoo. I have uploaded the flash file (.swf) on my server. If I try to embed the file as html and send...as an email...nothin can be seen... Is it because... yahoo filtersI am using Php to send it Thanx

Re: [PHP] cgi bug workaround

2001-10-05 Thread Devon Weller
If you are getting #!/usr/local/bin/php output to the screen, then the cgi scripts do no need the line in them to execute properly. Do you have access to the scripts? Try removing this line altogether. What happens? - Devon In article [EMAIL PROTECTED], [EMAIL PROTECTED] (James Peter

Re: [PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan Rusterholz
It seems I didn't read the descrition of 'exec()' good enough when I read it the first time :( Now it works, thank you From: Krzysztof Kocjan [EMAIL PROTECTED] To: Stefan Rusterholz [EMAIL PROTECTED] See exec() and system functions in PHP Krzysztof Stefan Rusterholz wrote: Hi For some

[PHP] Re: popup window under php

2001-10-05 Thread Tim Sawyer
Thank you all very much! Tim Sawyer wrote: I want to open a popup window under php control. So lets say I have an if statement which if true opens the window. if ($something) { JavaScript:window.open(test.php,blah...); } Guess I'm saying that I want to call a Javascript function

[PHP] Re: Using Array of classes as a class member variable?

2001-10-05 Thread Lenar
Maybe: First some basic questions: (1) Can you create an unitialised array ? $an_array = array(); (2) Can an unitinialised array be a class member variable ? My problem is this: I have a class called user - which represents one row in a mySQL table (also called user) class userBag {

[PHP] search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Nicklas Bondesson
all ideas are very welcomed !! /nicke -- 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: Database editor

2001-10-05 Thread Nicklas Bondesson
the one and only mysql admin tool for win32 is mysqlfront. it can be downloaded from: http://www.mysqlfront.de. /nicke -:-Doigy-:- [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much

RE: [PHP] Database editor

2001-10-05 Thread Brian Paulson
You might also want to try http://sourceforge.net/projects/phpmyadmin That is where you will find the newest version of the program. Thank You Brian Paulson Sr. Web Developer The Pueblo Chieftain Online [EMAIL PROTECTED] http://www.chieftain.com -Original Message- From: Girish Nath

[PHP] ODBC version of PHPMyAdmin?

2001-10-05 Thread Jaxon
Hi, Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I want to use it with more than just MySQL (e.g. Postgres and SQLServer) Cheers, Jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Change linux password using php

2001-10-05 Thread Evan Nemerson
Here's what I got from the mandrake security mailing list so far: This is strange. I was just going to write a mail to this list about this. it seems that /etc/shadow accepts both crypt passwords (the short passwd) and MD5 passwords. (34 characters with $ and slashes does seem to me like

[PHP] multidimensional array from html forms

2001-10-05 Thread Larry Linthicum
Hi I just a PHP hobbiest trying to build a points calculating system for another hobby, please bear with me. I need to build a multidimensional array from a html form the array would look like: $needed_data = array ( array (id = $member_id, points = $position ),

[PHP] crypt and decrypt a string

2001-10-05 Thread Joel Ricker
Does anybody have an easy way to crypt and decrypt a string? I see the Mcrypt Encryption module but thats a little more gung-ho than I'm looking for. I'm not trying to encrypt sensitive data rather I'm more trying obfuscate it a variable for a hidden tag. Thought I remember seeing something

[PHP] Symbolic Link - Security Issue?

2001-10-05 Thread Ashwin Kutty
Hi, I have a directory with an index.php script so that the url is something along the lines of http://www.mydomain.com/search/ .. Now following the same logic I wanted to write another script but not bother creating another directory so I wrote my script called test.php and then created a

[PHP] mail problem (reading mail from a pop3 server)

2001-10-05 Thread Nikola Veber
Hi ! I would like to add an option for reading e-mail from the pop3 server to my site. Is this possible at all ? Thanks Nikola -- 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

[PHP] Re: stupid newbie question

2001-10-05 Thread J Smith
Actually, there is a unix-like fork() function in an extension. exec() will execute another process, but it isn't really a fork(). Look at the pcntl extension and check out pcntl_fork(). I've been working with it for a few days and it works pretty well. It's still marked EXPERIMENTAL, so

Re: [PHP] ODBC version of PHPMyAdmin?

2001-10-05 Thread Steve Werby
Jaxon [EMAIL PROTECTED] wrote: Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I want to use it with more than just MySQL (e.g. Postgres and SQLServer) Not ODBC, but phpMyAdmin has a PostgreSQL cousin, phpPgAdmin. You used to be able to find it at www.greatbridge.org, but

[PHP] running php as owner

2001-10-05 Thread Ray Todd Stevens
I am running php on apacheon linux. Right now my php scripts access the data as the user that is running apache. I would like them to access the data as the user who is the owner of the script. Can this be done? How? Is this a good idea (IE: are there hiden programs to watch out for)

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Andrey Hristov
On Friday 05 October 2001 18:10, you wrote: Use crypt()/decrypt() couple. Andrey Hristov IcyGEN Corporation BUILDING SOLUTIONS http://www.icygen.com On Friday 05 October 2001 17:53, you wrote: Here are some simple xor encoding functions that I wrote. This will keep the average joe

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Joel Ricker
From: Nathan [EMAIL PROTECTED] Here are some simple xor encoding functions that I wrote. This will keep the average joe from peaking at your data. Exactly what I was looking for. Thanks Joel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: multidimensional array from html forms

2001-10-05 Thread Larry Linthicum
I know that enclosing form field names in [] makes them available as an array if the form were dynamically built like PERSONS NAME (from database via $member_id ) input type = hidden name = [data] value = $member_id input type = text name = [data] next PERSONS NAME (from database via

[PHP] new to the list

2001-10-05 Thread Mick Fitzpatrick
Hello I've just joined the list and sending this message as a test :-) I'm 'very' new to PHP and therefore here to learn ... I hope that's ok? Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] Upload File Path Problem

2001-10-05 Thread Roger Bryant
All, I am putting together a simple upload program where an HTML form calls a php script passing a file which is then used to upload. I am running this locally currently, prior to rolling out to a test server. My problem is this. The variable $filename I am passing from the form to the php

RE: [PHP] Database editor

2001-10-05 Thread Chris Bailey
Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool someone mentioned is not the one and only Win32 tool for this :) FreeMason will let you edit tables and such. Step up to Mascon to get things like administrative editing.

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Joel Ricker
On Friday 05 October 2001 18:10, you wrote: Use crypt()/decrypt() couple. Andrey Hristov From the PHP doumentation on crypt: There is no decrypt function, since crypt() uses a one-way algorithm. so that wouldn't have worked. Joel -- PHP General Mailing List

[PHP] Re: printf scientific notation?

2001-10-05 Thread Bill Rausch
Thank Richard. So far, I just punted. My site runs on a dedicated box and doesn't have to service a lot of users so I just wrote a one line C program to print a single value using a specified format (default is %.4e) and use exec() to call it. printe [format] value Here's how I

Re: [PHP] Upload File Path Problem

2001-10-05 Thread root
$imagefile contains the name of the file in the temp dir. So the name is some mess like phpx . If you want the file you do copy() or something other. After the script is done the file is deleted. I prefer using $HTTP_POST_VARS do var_dump($HTTP_POST_VARS) to see debug info. Andrey Hristov

[PHP] Paging through MySQL results

2001-10-05 Thread wjt
I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying to find an elegant solution to paging x number of records at a time through a result set returned to a php page from MySQL. Any ideas? TIA, Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Andrey Hristov
ooops , sorry On Friday 05 October 2001 18:48, you wrote: On Friday 05 October 2001 18:10, you wrote: Use crypt()/decrypt() couple. Andrey Hristov From the PHP doumentation on crypt: There is no decrypt function, since crypt() uses a one-way algorithm. so that wouldn't have

Re: [PHP] Paging through MySQL results

2001-10-05 Thread Andrey Hristov
select * from some_table Limit 10,30; syntaxis limit start,offset Andrey Hristov IcyGEN Corporation Building Solutions On Friday 05 October 2001 18:52, you wrote: I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying to find an elegant solution to paging x number of

[PHP] Re: [PHP-DB] Auto_increment field size (was: Howto make a double LEFT JOIN)

2001-10-05 Thread Andrey Hristov
select first.*,second.*,third.* from first left join second using(for_key_first_second) left join third using(for_key_2_3); On Friday 05 October 2001 18:50, you wrote: Hello, you can always reset the auto_increment value (I think that is as simlple as set insert_id=1; but you may want

[PHP] Re: search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Chris Lee
there are tutorials posted all over the inet, and all over this news group. take a look around. Ive left out the details and stuck with the basics, modify as needed, you'll need to :) if (!isset($HOW_MANY)) $HOW_MANY = 10; if (!isset($position)) $position = 0; $prev = $position -

Re: [PHP] Paging through MySQL results

2001-10-05 Thread Joel Ricker
- Original Message - From: Andrey Hristov [EMAIL PROTECTED] select * from some_table Limit 10,30; Something to point out, in some of the older versions of MySQL, Offset starts counting at 0, while in the newer versions, it starts counting at 1. You'll want to check the documentation

[PHP] next and previous links

2001-10-05 Thread Mick Fitzpatrick
Hello After several days of reading various articles on the web I've 'finally' got a basic database working. The database is for a massive collection of my vinyl records. Therefore I would like to limit the results to about 20 per page and move forward/backward with 'next' and 'previous' links.

Re: [PHP] Paging through MySQL results

2001-10-05 Thread wjt
Question: Does the pagination method using mysql_data_seek method pull in the entire result set, only to be used to display x number of rows? Joel Ricker [EMAIL PROTECTED] wrote in message 00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms">news:00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms...

RE: [PHP] new to the list

2001-10-05 Thread Jack Dempsey
Hey Mick, of course its ok...we've all done it that way (cept a few whose names you'll learn soon enough ;-) ) a few suggestions: 1. www.php.net has most everything you could ask for...also, if you have a function you want to learn more about, type it like this: http://www.php.net/function_name

RE: [PHP] Database editor

2001-10-05 Thread MrBaseball34
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool someone mentioned is not the one and only Win32 tool for this :) FreeMason will let you edit tables and such. Step up to Mascon to get things like

[PHP] Fancy thing.

2001-10-05 Thread Andrey Hristov
After getting the PHP source from the CVS and compiling I tested with phpinfo(). The result was amazing : ===cutted= a href=http://www.php.net/;img src=/master/test.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 border=0 align=right alt=PHP Logo/ah1PHP Version 4.0.8-dev/h1

[PHP] Submitting variables via /'s

2001-10-05 Thread Ashley M. Kirchner
I've seen documentation on this somewhere, but now I can't remember where. I want to move away from file.php?var1=1var2=2var3=3 ...and go to file.php/1/2/3 ...and still be able to do what I need to be done (extract the variables and use them as I need them.)

Re: [PHP] Submitting variables via /'s

2001-10-05 Thread Rasmus Lerdorf
Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though since Apache fills that in with the script it executes. Or you could simply look at $PATH_INFO and strip the contents of $PATH_INFO from the end of $PHP_SELF. -Rasmus On Fri, 5 Oct 2001, Ashley M. Kirchner wrote:

RE: [PHP] Database editor

2001-10-05 Thread Chris Bailey
As a couple others posted, if you want it to be PHP, then phpMyAdmin, http://sourceforge.net/projects/phpmyadmin. -Original Message- From: MrBaseball34 [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 9:45 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Database editor In article

Re: [PHP] Submitting variables via /'s

2001-10-05 Thread Ashley M. Kirchner
Rasmus Lerdorf wrote: Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though since Apache fills that in with the script it executes. Or you could simply look at $PATH_INFO and strip the contents of $PATH_INFO from the end of $PHP_SELF. Aha! Good. Now, does anyone

RE: [PHP] Database editor

2001-10-05 Thread MrBaseball34
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... As a couple others posted, if you want it to be PHP, then phpMyAdmin, http://sourceforge.net/projects/phpmyadmin. I just found that one...thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Submitting variables via /'s

2001-10-05 Thread Rasmus Lerdorf
Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though since Apache fills that in with the script it executes. Or you could simply look at $PATH_INFO and strip the contents of $PATH_INFO from the end of $PHP_SELF. Aha! Good. Now, does anyone have a link to

[PHP] Ip Blocking

2001-10-05 Thread Prottoss
What would be the most effective way to create blocking of users by ip using mysql. In such as way that the blocking system allows for masks such as 24.127.89.* 24.*.*.* etc... So far the what I've come up with is either breaking the ip into 4 INTs and then running an SQL query to check if

[PHP] preg_replace

2001-10-05 Thread W. Kiecksee
Hello! I just want to replace a string with another, but I have problems, when the string contains a [ or something similar. I just need a method to replace [cool] with text. When I use: $mustbereplaced = [cool]; $message = preg_replace(/$mustbereplaced/, hello, $message); only cool will be

RE: [PHP] preg_replace

2001-10-05 Thread Jack Dempsey
http://php.net/str_replace if you're just replacing a static string, this will be faster and easier...only use regex's when you really need them jack -Original Message- From: W. Kiecksee [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:17 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] Ip Blocking

2001-10-05 Thread Andrey Hristov
Interesting. After hlaf a minute an idea came to my brain. create table blocked( from_ip bigint unsigned, to_ip bigint unsigned); ?php list($is_bad)=mysql_fetch_array(mysql_query(select count(*) from blocked where $REMOTE_ADDR=from_ip and $REMOTE_ADDR=to_ip;)); ? Hope this helps. $REMOTE_ADDR

[PHP] Php encoder or compile

2001-10-05 Thread Jaison Antoniazzi
Hi, my name is Jaison and I need to know... Can I encode or compile a Php program to protect the source and execute than? tks.

Re: [PHP] preg_replace

2001-10-05 Thread Andrey Hristov
Escape the [] with \. $pattern='\[find\]'; echo preg_replace(/$pattern/,[find]); Andrey Hristov IcyGEN Corporation BALANCED SOLUTIONS http://www.icygen.com On Friday 05 October 2001 21:17, you wrote: Hello! I just want to replace a string with another, but I have problems, when the string

[PHP] Share located on another computer

2001-10-05 Thread Todd Cary
Can PHP work with a Share on another computer or do the scripts have to be on the same computer as IIS/Apache? When I put the scripts into a Shared directory, I get a CGI error. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Php encoder or compile

2001-10-05 Thread Andrey Hristov
Yes there is php encoder available but it is not free - go to http://www.zend.com whers Open Software meets eBussiness. Also there si phpcompiler. I didn't tested it. Go to google.com and try to find phpcompiler.zip sooner you will find it but be patient. Andrey Hristov IcyGEN Corporation

Fw: [PHP] Php encoder or compile

2001-10-05 Thread Jaison Antoniazzi
tks Andrey. I have a dll that encode and decode any file, this dll use a algorithim that I made it. PHP has some API, Entry Point or another way that permit I use a dll to decode a php script before that script be executed? tks again. - Original Message - From: Andrey Hristov

Re: [PHP] Re: [PHP-DB] Auto_increment field size (was: Howto make a double LEFT JOIN)

2001-10-05 Thread Sheridan Saint-Michel
Andrey: What is this select supposed to do? I fail to see how this would help a person who has hit max_size on an auto_increment field. Bas: The other alternative that would be to occasionally update sid for all the rows, reseting them to 1,2,3,etc. You could do that with the following: set

[PHP] help with exec()...

2001-10-05 Thread Christian Dechery
I'm running with some trouble with exec(), system() and it's friends... I have a MySQL backup script that somewhere have something like $cmd=mysqldump .. somefile.sql; if( !fopen(somefile.sql,r) ) { print error message }; $cmd is correct... I've copy-pasted it tons of times in the

Re: [PHP] Ip Blocking

2001-10-05 Thread Mark
On Fri, 5 Oct 2001 14:12:46 -0400, Prottoss wrote: What would be the most effective way to create blocking of users by ip using mysql. In such as way that the blocking system allows for masks such as 24.127.89.* 24.*.*.* etc... So far the what I've come up with is either breaking the ip into 4

[PHP] How to eliminate Warning: Undefined variable: messages

2001-10-05 Thread Sridhar Moparthy
Hi All, Is these any parameter in php.ini that I need to set so that I wont get Warning: Undefined variable: xx in yyy.php on line zz messages? Thank you, Sridhar Moparthy

Re: [PHP] Share located on another computer

2001-10-05 Thread Mark
On Fri, 05 Oct 2001 11:23:34 -0700, Todd Cary wrote: Can PHP work with a Share on another computer or do the scripts have to be on the same computer as IIS/Apache? When I put the scripts into a Shared directory, I get a CGI error. try using 'net use' to give the share a drive letter, then use

[PHP] Delete element from an array (PHP3)

2001-10-05 Thread John Steele
In PHP4, unset($myarray['3']['someindex'}) removes this element (inside a class function passed $myarray). I need to do the same for PHP3 - what is the simplest way to accomplish this? I guess I'm looking for a function that supports PHP3 or PHP4, say: function unset_arr ($array) { if

Re: [PHP] Re: Submitting variables via /'s

2001-10-05 Thread Ashley M. Kirchner
John A. Grant wrote: Why? What's wrong with ?var1=1var2=2 Where did you hear me say there was something wrong with it? It's a personal choice. -- W | I haven't lost my mind; it's backed up on tape somewhere. +

RE: [PHP] Re: Submitting variables via /'s

2001-10-05 Thread Andrew Hill
Note, this is not currently possible under the CGI, only as a module. Best regards, Andrew Hill -Original Message- From: John A. Grant [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Submitting variables via /'s Ashley

[PHP] segmentation fault in apache with php and imap

2001-10-05 Thread Steeman Philip
Hi, I get a segmentation fault in the log-files of apache when I use imap_open. What have I done (rather long e-mail)? Debian - woody (without apache-php-imap) imap-2001.FINAL.tar.Z make slx cd c-client ln -s . lib ln -s . include ln -s c-client.a libc-client.a apache-1.3.20

RE: [PHP] How to eliminate Warning: Undefined variable: messages

2001-10-05 Thread Jack Dempsey
check out error reporting at php.net -Original Message- From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] How to eliminate Warning: Undefined variable: messages Hi All, Is these any parameter in php.ini that

[PHP] Subject: RE:Please Confirm!! Yes I want to Optin RE: php-general@lists.php.net

2001-10-05 Thread Sterling
You [EMAIL PROTECTED], or someone using your email [EMAIL PROTECTED] address, posted to my Blastomatic site. This is a one time emailing to ask you to verify your email address. Just reply to this email address to verify or follow the below instructions.

[PHP] accessing localtime array directly

2001-10-05 Thread John A. Grant
In Perl I have done this: $julianday=(localtime)[7]; Is there an equivalent syntax for PHP or do I just do: $now=localtime(); $julianday=$now[7]; I don't need it - I'm just curious about the syntax. -- John A. Grant * I speak only for myself * (remove 'z' to reply) Radiation

[PHP] Re: read file twice or read into array once?

2001-10-05 Thread John A. Grant
Richard Lynch [EMAIL PROTECTED] wrote in message 046901c14d62$b4c7a0c0$c801a8c0@Lynchux100">news:046901c14d62$b4c7a0c0$c801a8c0@Lynchux100... 100 lines of 200 chars each is 2 which is 20K which is chump change for RAM... Unless you are on a super busy page on a super high-volume server,

[PHP] Re: accessing localtime array directly

2001-10-05 Thread Chris Lee
there are functions like current() next() etc but they wont help you in this case. I just wrote my own. function index($array, $index) { return @$array[$index]; } $now = index(localtime(), 7); -- Chris Lee [EMAIL PROTECTED] John A. Grant [EMAIL PROTECTED] wrote in message [EMAIL

  1   2   >