Re: [PHP] PHP version 4.2 and above

2002-05-23 Thread Miguel Cruz
On Wed, 22 May 2002, Opere, James wrote: > I have aproblem with php >= 4.2.I'm working on graphics but when i install > php4.2, i get an error that it doesn't support GD library. > Is there anybody who has any idea as to how it can be possible to use the > above versions and still run my scripts s

Re: [PHP] Can I delete / update line inside the file ?

2002-05-23 Thread Miguel Cruz
On Thu, 23 May 2002, Manisha wrote: > I have one file with following format > > No. | Name | Email | status > 1 | Manisha | [EMAIL PROTECTED] | Pending > 2 | Neha | [EMAIL PROTECTED] | Reject > 3 | Aish | [EMAIL PROTECTED] | Pending > > ... > > I want to update status change against that li

[PHP] R: [PHP-WIN] Re: [PHP] PHP version 4.2 and above (fwd)

2002-05-23 Thread Miguel Cruz
-- Forwarded message -- Date: Thu, 23 May 2002 09:23:03 +0200 From: Alberto. Sartori <[EMAIL PROTECTED]> To: Miguel Cruz <[EMAIL PROTECTED]> Subject: R: [PHP-WIN] Re: [PHP] PHP version 4.2 and above In the extensions folder there's a file called "php_gd2.dll" (GD version 2.0.1), s

Re: [PHP] tmpfile() errors?

2002-05-23 Thread Miguel Cruz
On Wed, 22 May 2002, Jas wrote: > $tmp_image = tmpfile(); > $output = fopen($tmp_image, "wb"); tmpfile() opens the file, so you don't need the fopen call. Just do $output = $tmpfile(); miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] R: [PHP-WIN] Re: [PHP] PHP version 4.2 and above (fwd)

2002-05-23 Thread André Riedel
You can also use the "php_gd.dll" this is an older Version of GD. I think it was some Version over 1.6 Miguel Cruz <[EMAIL PROTECTED]> schrieb am 23.05.02: > -- Forwarded message -- > Date: Thu, 23 May 2002 09:23:03 +0200 > From: Alberto. Sartori <[EMAIL PROTECTED]> > To: Miguel

Re: [PHP] session.save_path

2002-05-23 Thread W. Enserink
thx John. That did the trick for me! regards Wilbert - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Wilbert Enserink" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 8:18 PM Subject: Re: [PHP] session.save_path > You have to set the ses

[PHP] RE: ODBC for Informix

2002-05-23 Thread Juraj Hasko
Hi, ODBC drivers should be installed on server, you can download latest Informix SDK w/ ODBC drivers from IBM: http://www6.software.ibm.com/devcon/devcon/docs/clnt27wx.htm Juraj >-Original Message- >From: Kevin Meredith [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, May 22, 2002

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-23 Thread John Horton
I was mixing up with the attack against twofish with reduced rounds (I think this is true of blowfish with reduced rounds as well ) -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 22:57 To: John Horton; [EMAIL PROTECTED] Subject: Re: [PHP] Mcrypt: Blowf

RE: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-23 Thread John Horton
I do have applied cryptography and only suggested using a larger keysize as it increases the work factor for a brute force attack. -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 22:39 To: Vinod Panicker; [EMAIL PROTECTED] Subject: Re: RE: RE: [PHP] Mc

[PHP] Thank you - Re: [PHP] ONE BANG - Apache, PHP, GD, ZLib,MySql, Perl

2002-05-23 Thread r
Hi Jason, John, I'm pretty sure what I read on Google was "Triad" but will check out the other URLs you gave me too. Thanks again for your help guys, -Ryan. www.apachetoolbox.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload wont work

2002-05-23 Thread Ragnar
Hi and thanx for previous help!!! Still a newbie ;) I have tried to make the example from php manual working and have the following code: upload.html: Send this file: demo_up.php: This always ends up displaying "File not uploadet" + Filename. The file doesnt seem to upload at all. I

[PHP] configure problem in RS6000 AIX4.3 with oracle database 7.3.3

2002-05-23 Thread Michael P. Carel
Hi to All, We're having problem in installing php4.2.1 in AIX4.3 . What should be the ./configure line with an oracle support. Please help us here. Thanks in advance. Regards, mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload wont work

2002-05-23 Thread Jason Wong
On Thursday 23 May 2002 17:43, Ragnar wrote: > Hi and thanx for previous help!!! > > Still a newbie ;) > > I have tried to make the example from php manual working and have the > following code: [snip] > This always ends up displaying "File not uploadet" + Filename. The file > doesnt seem to upl

[PHP] Unix time

2002-05-23 Thread Cosmin
Hello How can I compare Unix Time? As integer values? I take the unix time from database and I compare with the current time and something is not functioning. Can somebody show me how can I do this? Thank you , Cosmin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Unix time

2002-05-23 Thread Justin French
It'd help if you showed us some code. If you've got a unix time stamp in your MySQL db, then all you need to do is compare it to your local server time using time(). Easy. If your date is stored in YYY-MM-DD format, you'll have to convert it to a unix time stamp first (can be done in query, o

[PHP] Problem with install php 4.2.1

2002-05-23 Thread Roman Duriancik
I want install php 4.2.1 (download from www.php.net) on ma linux red hat 7.0 server. configure ran good with no errors but when i do make install i get this error message. Making all in gettext make[2]: Entering directory `/update/php-4.2.1/ext/gettext' make[3]: Entering directory `/update/php-4.

[PHP] Parse Error(Newbie)

2002-05-23 Thread webmaster
I get a parse error on line 114 can anyone see the problem?   Sorry if it is something obvious :} for ($i=0; $i <$num_results; $i++) 110. { 111. $row = mysql_fetch_array($result); 112. echo ''; 115. echo $row['description']; 116. echo ''; } JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP G

Re: [PHP] Unix time

2002-05-23 Thread Cosmin
yes I think is ok, I don't know why, but I used strtotime... (what do this function?) Thank you Cosmin Justin French <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It'd help if you showed us some code. > > If you've got a unix time stamp in your MySQL db, th

Re: [PHP] Full-Duplex communication

2002-05-23 Thread Vinod Panicker
Hi Evan, What you said did make sense, and complements my knowledge of sockets. But what i'm not sure of is this - if i construct my own packet and send it across, presuming that i do have the ip address and port number of the client on which it is reading, will the client accept it as a leg

RE: [PHP] Upload wont work

2002-05-23 Thread John Holmes
> function upload () > { >if ( is_uploaded_file ($_FILES['userfile']['name'] ) ) >{ > copy($_FILES['userfile']['name'], "/demos/"); >} > >else >{ > echo "File not uploaded: " . $_FILES['userfile']['name']; >} > } is_uploaded_file($_FILES['userfile'])) Read th

Re: [PHP] Parse Error(Newbie)

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared > I get a parse error on line 114 can anyone see the problem? > > Sorry if it is something obvious :} > for ($i=0; $i <$num_results; $i++) > > 110. { > > 111. $row = mysql_fetch_array($result); > > 112. e

[PHP] create a file?

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I'm clearly missing the obvious here ;-) but I can't seem to find a function for creating a text file? Can someone please point me in the right direction? Many thanks... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE---

RE: [PHP] create a file?

2002-05-23 Thread John Holmes
www.php.net/fopen ---John Holmes... > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 7:29 AM > To: php-general > Subject: [PHP] create a file? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > I'm clearly missing the obvious

Re: [PHP] create a file?

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then John Holmes declared > www.php.net/fopen Damn! I looked at that (of course) but must have missed it. Jeez, I looked at that page twice! Thanks John. - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Vers

Re: [PHP] The $PATH to enlightenment revisited

2002-05-23 Thread Brad Hubbard
On Wed, 22 May 2002 12:14, Brad Hubbard did align ASCII characters thusly: > What's the best way to alter the path that PHP looks in for exec(), > system(), passthru(), etc. commands. IOW, how do I add /usr/local/ to > the $PATH variable for the user (nobody in my case) that the webserver runs

[PHP] Date/Time...

2002-05-23 Thread Brian McGarvie
OK, give up.. been trying to compare dates in the format; 2002-05-23 12:19:34 I just cant workout how to compare, I've converted to a timestamp - but the resulting timestamp was wrong. Any help much appreciated... TIA... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Parse Error(Newbie)

2002-05-23 Thread Brian McGarvie
why now just write: for ($i=0; $i <$num_results; $i++) { $row = mysql_fetch_array($result); echo "link text"; > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: 23 May 2002 12:28 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Parse Error(Newbie) > > > ---

RE: [PHP] Date/Time...

2002-05-23 Thread John Holmes
What are you trying to do? Compare dates from where to what? To the current time, to times in a database??? strtotime() and UNIX_TIMESTAMP() are probably going to be part of your solution, but I don't know what your doing. ---John Holmes... > -Original Message- > From: Brian McGarvie [

Re: [PHP] Parse Error(Newbie)

2002-05-23 Thread Rénald CASAGRAUDE
On jeudi, mai 23, 2002, at 01:27 , Nick Wilson wrote: >> I get a parse error on line 114 can anyone see the problem? >> >> Sorry if it is something obvious :} >> for ($i=0; $i <$num_results; $i++) >> >> 110. { >> 111. $row = mysql_fetch_array($result); >> 112. echo ''; > > Have you tried escaping

[PHP] SNMP Queries and Leftover Sockets

2002-05-23 Thread Brian E. Seppanen
We recently implemented a snmp polling utility using PHP4.0.6 on RedHat Linux 7.2 with an Apache webserver. When people using the polling utility do a poll we get leftover sockets that do not seem to go away, and after a while the webserver needs to be restarted. Is there any way in PHP to

Re: [PHP] Learning PHP

2002-05-23 Thread Michael Virnstein
you have to know what the function prototypes mean, and it is very easy to understand: int function(string varname, mixed varname2[[, array varname3], int varname4]); means the function returns a variable of type integer, which is the same as int. Just two names for the same thing. if int is spe

[PHP] ODBC looping on Linux

2002-05-23 Thread Nicola Delbono
hello I have some queries in a script on the following environment: Linux Debian Apache 1.3.19 Patched Ben Php 4.0.6 patched UnixODBC driver manager latest version (installed yesterday) freeTDS driver DMBS -> MicrosoftSQL 7. I have a few queries: line 15 -> connection string line 20: qry

RE: [PHP] Date/Time...

2002-05-23 Thread Brian McGarvie
I have an audit table which stores events like faile logins etc, they are stored with a time in the format 2002-05-23 12:19:34 i want to know the number of days between 'now' and the oldest date in the database. This is so I can give them a drop-down list of the number of days they might want t

[PHP] opendir security hole

2002-05-23 Thread daniel
hi i am creating a webbased filemanager for uploading files to the database, to determin which dir i upload to i have the directory in the query string ie ?dir=blah , i have found a security flaw where if you type dir=../../../../ it will show you the root dir of the server , how can i lock into a

[PHP] Win binary needed

2002-05-23 Thread Brad Harriger
Is there a Windows binary (v. 4.06) available that has ldap support enabled? Thanks, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get domain name

2002-05-23 Thread David Orn Johannsson
I need to find out what the domain of the site that I'm running a script from, I know this is possable, but I cant find the function in the manual. the domain would be somthing like www.domain.com Thanks David

[PHP] specifying a different php.ini at webserver start

2002-05-23 Thread Jeff Bearer
How do you tell apache/php module to use a different php.ini file? I want to start a second instance of apache with a different php configuration. -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: functions and scoping

2002-05-23 Thread David Huyck
The idea is to allow an application to be distributed easily without any reconfiguration. If it doesn't need any variables to tell it where it is in the directory structure, it won't matter where it is placed in someone else's application-- it will just work because of the relative includes. Fur

[PHP] mySQL WHERE/LIKE

2002-05-23 Thread Wilbert Enserink
Hi all, I know this is rather OT, but I searched the mySQL manual all over...couldn't find it. I want to perform a search in a table. More then 1 columns should be searched. namely column1 and column2 and so on. Anybody knows what goes wrong here? --(in the WHERE clause). It seems that mySQL do

Re: [PHP] specifying a different php.ini at webserver start

2002-05-23 Thread Jeff Bearer
solved, that doesn't appear possible, so I used a virtual host with different php_flag and php_value options. On Thu, 2002-05-23 at 10:02, Jeff Bearer wrote: > How do you tell apache/php module to use a different php.ini file? > > I want to start a second instance of apache with a different php

Re: [PHP] Making varibles (more than one) with a function.

2002-05-23 Thread Analysis & Solutions
David: > makevars() { > list($md5,$pusername,$pproject,$pfile) = explode(":",$authok); > $user = $pusername; > $project = $pproject; > $file = $pfile; > } Uh, why are you wasting memory and time by reassigning the variables? Why not call the variables what you want them to be in the first plac

[PHP] Re: Passing Variables

2002-05-23 Thread Michael Virnstein
and please, next time paste the error or tell us at least, if it is a php error or a mysql error and the line on which it occured and mark that line in your sample code, so someone can look at it , understand it and help you. Regards Michael "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im New

Re: [PHP] mySQL WHERE/LIKE

2002-05-23 Thread Jason Wong
On Thursday 23 May 2002 22:20, Wilbert Enserink wrote: > Hi all, > > I know this is rather OT, but I searched the mySQL manual all > over...couldn't find it. Why not ask on the mysql list !?! > I want to perform a search in a table. More then 1 > columns should be searched. namely column1 and c

Re: [PHP] Passing Variables

2002-05-23 Thread Jason Wong
On Thursday 23 May 2002 22:37, Jay Blanchard wrote: > [snip] > me.php > $db=mysql_connect('localhost','',''); > mysql_select_db($database,$db); > $sql="select COUNT($this) from $table group by $this"; > > ?> > [/snip] > > $db=mysql_connect('localhost','',''); > mysql_select_db(

[PHP] open_basedir problem

2002-05-23 Thread Patrick Cossette
Hi, I have the folowing problem under PHP 4.0.6 running as a module with Apache 1.3.22. I want to give my users access to PHP as an Apache module but I want to restrict what they can do with open_basedir, safe_mode,... so they don't have the right to access other's files. I have a problem with

Re: [PHP] mySQL WHERE/LIKE

2002-05-23 Thread Aaron Gould
The only way I know how to do it is by doing boolean OR's... It's not as compact and efficient as you'd like, but it works. SELECT * FROMgallery LEFT JOIN designers ON (designers.designersID=gallery.designersID) WHERE (gallery.column1 LIKE '%$search_string%'

Re: [PHP] Get domain name

2002-05-23 Thread Jason Wong
On Thursday 23 May 2002 22:00, David Orn Johannsson wrote: > I need to find out what the domain of the site that I'm running a script > from, I know this is possable, but I cant find the function in the > manual. > > the domain would be somthing like www.domain.com > Try:

RE: [PHP] Passing Variables

2002-05-23 Thread Jay Blanchard
[snip] > $db=mysql_connect('localhost','',''); > mysql_select_db($database,$db); > $sql="select COUNT" . $this . " from" . $table . " group by" . $this . "; > > ?> But that results in what looks like an invalid sql query! [/snip] My bad... I didn't test, should be... $sql="se

RE: [PHP] Get domain name

2002-05-23 Thread Patrick Lynch
Hi David, $HTTP_HOST is the variable you are looking for. Best Regards, Patrick Lynch. Optip Ltd, Internet & Mobile Development Co. Clare, Ireland. http://www.optip.com/ -Original Message- From: David Orn Johannsson [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 15:00 To: [EMAIL PROTE

RE: [PHP] specifying a different php.ini at webserver start

2002-05-23 Thread Patrick Lynch
You could just use a .htaccess file instead of a virtualhost. Best Regards, Patrick Lynch. Optip Ltd, Internet & Mobile Development Co. Clare, Ireland. http://www.optip.com/ -Original Message- From: Jeff Bearer [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 15:24 To: Jeff Bearer Cc: [E

[PHP] Re: [PHP-INST] W2K SP2, PHP 4.2.1, IIS 5

2002-05-23 Thread Joshua E Minnie
Finally got that part to work, I ended up unistalling then reinstalling the IIS server and unistalling PHP, then using the PHP windows installer to configure the IIS server for me. Now I am having another problem. I am getting the error: PHP Warning: Unable to load dynamic library 'D:\PHP\exten

Re: [PHP] mySQL and ODBC

2002-05-23 Thread Analysis & Solutions
Hey Eric: > > mySQL_insert() > in : > Unified ODBC functions ??? I assume you mean mysql_insert_id(). No, there's no such function in odbc land. Do another query to find the record you inserted then extract the ID number from that. Lame, --Dan -- PHP classes that make web d

[PHP] undefined variable...working in PHP 4.1.2 not 4.2.1

2002-05-23 Thread Joshua E Minnie
Hey all, I am having a problem that maybe some of you have had as well. I am using a session and when I pass the session variable to the next page it comes back as undefined. Is there some new syntax in 4.2.1 that I am missing, I thought that I made all the necessary changes. Here is the en

Re: [PHP] opendir security hole

2002-05-23 Thread Analysis & Solutions
On Thu, May 23, 2002 at 11:22:28PM +1000, daniel wrote: > dir=../../../../ it will show you the root dir of the server , how can i Before passing the $Dir variable to the file functions, clean it up... $Dir = preg_replace('/..\//', '', $Dir); --Dan -- PHP classes that make w

RE: [PHP] opendir security hole

2002-05-23 Thread Randy Wilcox
Use: http://us2.php.net/manual/en/configuration.php#ini.open-basedir It's also a good idea to always validate the data that comes from the user, especially when dealing with file related functions. Randy -Original Message- From: daniel [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23,

[PHP] Re: unable to register session variables

2002-05-23 Thread Yves Daemen
First make sure you have done a session_start() If that's not the problem, why not trying this syntax $_SESSION["layer"] = $layer; Think it's easier when looking at your session_vars as if it was an array, which it is actually... "Pushkar Pradhan" <[EMAIL PROTECTED]> schreef in bericht [EMAIL

[PHP] Leading zeroes

2002-05-23 Thread Liam Gibbs
Does anybody have a clever and efficient way of getting rid of leading zeroes in a string? __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Apache & IIS with PHP - Same System

2002-05-23 Thread Tim Greenleaf
Are there any issues with running Apache and IIS on the same system both using PHP? The only obvious problem I can think of is I will need to configure Apache to use some other port (other than 80). Any pointers would be greatly appeciated. Tim -- PHP General Mailing List (http://www.php.n

[PHP] dynamically named variables?

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi everyone, I've been looking at the php manual section on variable variables but I don't think i either a) understand it, or b) it isn't what I need. Here's the coup: I have a bunch of post vars, lets say $red, $green and $blue I want to loop thr

[PHP] Create table with varying results

2002-05-23 Thread Tim Greenleaf
I have a search page that creates a dynamic table of results from MS SQL Server. The table created on the web page does not always get created properly for the same recordset. Sometimes a field may have a black or red background color and if the same exact search is run again it will display pro

Re: [PHP] Get domain name

2002-05-23 Thread Dennis Moore
User the global variable $SERVER_NAME - Original Message - From: "David Orn Johannsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 10:00 AM Subject: [PHP] Get domain name > > I need to find out what the domain of the site that I'm running a script > f

RE: [PHP] dynamically named variables?

2002-05-23 Thread Ford, Mike [LSS]
> -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: 23 May 2002 17:32 > > I've been looking at the php manual section on variable > variables but I > don't think i either a) understand it, or b) it isn't what I need. > > Here's the coup: > > I have a bunch of po

[PHP] paging MySQL layout

2002-05-23 Thread Juan Pablo Aqueveque
Hi everyone. I know, this is a off topic. My always nice boss wants to put a series of documents in our web site. I want to save myself I work and I want to put them in a DB. Somebody can help me with the layout of my DB?. I have some idea like this. create table documents ( id in(11) not null

RE: [PHP] Leading zeroes

2002-05-23 Thread Ford, Mike [LSS]
> -Original Message- > From: Liam Gibbs [mailto:[EMAIL PROTECTED]] > Sent: 23 May 2002 17:26 > > Does anybody have a clever and efficient way of > getting rid of leading zeroes in a string? >From version 4.1.0, $str = ltrim($str, '0') (see >http://www.php.net/manual/en/function.ltrim.ph

[PHP] concatenating class instances?

2002-05-23 Thread Michael Caplan
Hi, Quick question. The below code snippet responded in a way that I didn't expect. I created an instance of the class frameWork, and then created an instance of the section class which is assigned to the same variable. I thought that the second instance would overwrite the frameWork object. I

[PHP] Array question - Please help

2002-05-23 Thread Dan McCullough
Here is the problem. I have over 60 subdomains to check on a regular basis. I wrote a php script that gets a list from a text file and then checks whether it can open that domain/subdomain. That works great. My problem is that everything is lumped together, so I have to scan a list of 60 na

Re: [PHP] Date/Time...

2002-05-23 Thread 1LT John W. Holmes
Really only a mysql issue. To get the number of days between now and the oldest row in the table, use this query SELECT TO_DAYS(NOW()) - TO_DAYS(MIN(date_column)) AS Num_Days FROM table; To erase all rows that are older than $X days, use this query: DELETE FROM table WHERE date_column < NOW()

Re: [PHP] Leading zeroes

2002-05-23 Thread Chris Boget
> Does anybody have a clever and efficient way of > getting rid of leading zeroes in a string? If the string is completely numeric, you can do something like this: $string = "005847"; $string = (int)$string; Apart from that, you'll have to run it through some sort of regex, I suppose. Chris

[PHP] Re:phpinfo

2002-05-23 Thread Dennis Gearon
What I was trying to do was to find out how to get magic_quotes_sybase config value. This will do it: $test = addslashes("'"); $this->sybase_magic = strcmp( $test, "\\'"); Also, I looked up eval(), it doesn't return the output of all fucntions like I thought. I would have to use system,

Re: [PHP] dynamically named variables?

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ford, Mike [LSS] declared > > Here's the coup: > > > > I have a bunch of post vars, lets say $red, $green and $blue > > I want to loop through the post vars and create a variable callled > > $file_red, $file_green and $f

Re: [PHP] ini-options

2002-05-23 Thread Philip Olson
> if only there were, 'get_magic_quotes_sysbase();' happy birthday ;) function get_magic_quotes_sybase() { if (!ini_get('magic_quotes_sybase')) { return 0; } else { return 1; } } feature requests can be submitted at: http://bugs.php.net/ regards, Philip Olson

Re: [PHP] Leading zeroes

2002-05-23 Thread Michael Sims
On Thu, 23 May 2002 09:26:05 -0700 (PDT), you wrote: >Does anybody have a clever and efficient way of >getting rid of leading zeroes in a string? How about: $str = preg_replace("/^0+/","",$str); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] dynamically named variables?

2002-05-23 Thread Rasmus Lerdorf
Or you could simply use: extract($_POST, EXTR_PREFIX_ALL, 'file_'); That does the same thing much quicker. -Rasmus On Thu, 23 May 2002, Nick Wilson wrote: > > * and then Ford, Mike [LSS] declared > > > Here's the coup: > > > > > > I have a bunch of post vars, lets say $red

Re: [PHP] Leading zeroes

2002-05-23 Thread Rasmus Lerdorf
$str = ltrim($str,'0'); would be more efficient. On Thu, 23 May 2002, Michael Sims wrote: > On Thu, 23 May 2002 09:26:05 -0700 (PDT), you wrote: > > >Does anybody have a clever and efficient way of > >getting rid of leading zeroes in a string? > > How about: > > $str = preg_replace("/^0+/","",$

[PHP] php/mysql join query help

2002-05-23 Thread ROBERT MCPEAK
I have a table with a field "key" containing a unique value. I have a second table containing a field called "keys" containg a pipe-delimited list of values from the "key" table. I'd like to do a query that took each value from key, and matched it agains the field "keys" in the second table, and

[PHP] mySQL and ODBC

2002-05-23 Thread Eric Tonicello
Hi ! There is an equivalent of : mySQL_insert() in : Unified ODBC functions ??? Thanks for any help ! ___ Eric TONICELLO Faculty of Architecture, Civil and Environmental Engineering SWISS FEDERAL INSTITUTE OF TECHNOLOGY LAUSANNE Email : [EMAIL

[PHP] Passing Variables

2002-05-23 Thread Opere, James
Hi All, I'm trying to pass variables from one form to the other.I have a problem when i want to do the the following: 1.COUNT($variable) 2.DISTINCT($variable) . I realise i can not use the brackets in my query and the variable be recognised.When i add COUNT without the brackets i stil

[PHP] Re: Passing Variables

2002-05-23 Thread Michael Virnstein
$this usually is a self-reference inside a class. Use it with care! try to "echo $sql;", perhaps this tells you more. Regards Michael "James Opere" <[EMAIL PROTECTED]> schrieb im Newsbeitrag FC788AB9771FD6118E6F0002A5AD7B8F7268AB@ICRAFNTTRAIN">news:FC788AB9771FD6118E6F0002A5AD7B8F7268AB@ICRAFNTT

RE: [PHP] Passing Variables

2002-05-23 Thread Jay Blanchard
[snip] me.php [/snip] Note the concatenation operators, HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ini-options

2002-05-23 Thread Dennis Gearon
I should have added: "... that worked before PHP4". But thanks, see my previous post to this. Philip Olson wrote: > > > if only there were, 'get_magic_quotes_sysbase();' > > happy birthday ;) > > function get_magic_quotes_sybase() > { > if (!ini_get('magic_quotes_sybase')) { > retu

Re: [PHP] Apache & IIS with PHP - Same System

2002-05-23 Thread Chris Hewitt
Tim, I've run Apache and IIS on the same computer (NT4 now with SP6a) for about 3 years. We have several large servers with this configuration, and lots of users using them all day. We don't use PHP on it (ASP and pl/sql, Oracle). Use a different port yes, but we have had no problems with the

RE: [PHP] Leading zeroes

2002-05-23 Thread Liam Gibbs
> From version 4.1.0, $str = ltrim($str, '0') This works excellently. Thanks. One problem that I didn't think of, though: If the number is 0 (only 0), then the string ends up being empty. Is there a way around that? I put an if statement in saying if the string is empty, then the string is 0. Any

RE: [PHP] Leading zeroes

2002-05-23 Thread ROBERT MCPEAK
I'm a newbie, but maybe this'll do it: if ($str!='0') { $str = ltrim($str, '0') } >>> Liam Gibbs <[EMAIL PROTECTED]> 05/23/02 01:49PM >>> > From version 4.1.0, $str = ltrim($str, '0') This works excellently. Thanks. One problem that I didn't think of, though: If the number is 0 (only 0), then t

Re: [PHP] php/mysql join query help

2002-05-23 Thread 1LT John W. Holmes
It's generally a bad idea to store delimited data in a single column in a database. It kind of goes against what a database is there for. A better layout would be to have your second table contain a row for each of the "delimited" values. So if you have '1,2,3,4' in your database now, the better

Re: [PHP] Leading zeroes

2002-05-23 Thread Chris Boget
> This works excellently. Thanks. One problem that I > didn't think of, though: If the number is 0 (only 0), > then the string ends up being empty. Is there a way > around that? I put an if statement in saying if the > string is empty, then the string is 0. Any better way? Again, if the string is

[PHP] Re: [PHP-INST] W2K SP2, PHP 4.2.1, IIS 5

2002-05-23 Thread Christoph Grottolo
Joshua E Minnie wrote: > I am getting the error: > > PHP Warning: Unable to load dynamic library > 'D:\PHP\extensions\php_mssql.dll' - The specified module could not be > found. in Unknown on line 0 > > What I don't understand about this error is that the php_mssql.ddl is > in that exact directory

Re: [PHP] Array question - Please help

2002-05-23 Thread Jason Wong
On Friday 24 May 2002 01:03, Dan McCullough wrote: > Here is the problem. I have over 60 subdomains to check on a regular > basis. I wrote a php script that gets a list from a text file and then > checks whether it can open that domain/subdomain. That works great. My > problem is that everythi

[PHP] Fwd: U.S. PIRG update - Environment At Risk

2002-05-23 Thread Jess Ragaza
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Subject: U.S. PIRG update - Environment At Risk Date: Wed, 22 May 2002 16:49:17 -0400 Dear supporter, If there's one thing most Americans agree on, it's the environment. The vast majority of American

Re: [PHP] Array question - Please help

2002-05-23 Thread 1LT John W. Holmes
Write your results to a file and create a mail from the file once a day and send it to yourself with cron, or use a database to hold the results if one is available. Instead of making a mail message with your loop, write information back to the file. Format your file like this: url, pass, fail,

Re: [PHP] dynamically named variables?

2002-05-23 Thread Philip Olson
> extract($_POST, EXTR_PREFIX_ALL, 'file_'); A little typo, extract() automatically attaches a '_' so the third parameter here would be just 'file'. This behavior is unlike import_request_variables() and I assume the behavior remains for historical reasons. Kinda odd. Regards, Philip

Re: [PHP] Leading zeroes

2002-05-23 Thread Liam Gibbs
> Typecasting it to an integer will do what you want. > But only if your string is numbers only. There's no guarantee. Alphanumeric data is allowed. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General

RE: [PHP] Leading zeroes

2002-05-23 Thread Liam Gibbs
> I'm a newbie, but maybe this'll do it: > if ($str!='0') > { > $str = ltrim($str, '0') > } Duh. Sometimes I amaze myself at how stupid I can be. Thanks. :) __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP G

[PHP] Mailing list software recommendation?

2002-05-23 Thread Chad Day
I'm looking for PHP/MySQL based mailing list software for a project I'm doing.. I plan on hosting a bunch of virtual domains and having to set up mailing lists for all of them, and I don't want to go installing a new copy of the software for each virtual domain. The rest of the site is in PHP and

Re: [PHP] php/mysql join query help

2002-05-23 Thread ROBERT MCPEAK
I appreciate you help. I inherited the pipe-delimited data. I would have done it as you suggested. Thanks. -Bob >>> "1LT John W. Holmes" <[EMAIL PROTECTED]> 05/23/02 01:57PM >>> It's generally a bad idea to store delimited data in a single column in a database. It kind of goes against what a

[PHP] creating Image to display without saving it.

2002-05-23 Thread Leotta, Natalie (NCI/IMS)
I've got a page where I create an Image that I want to put into one of my HTML table cells. I've been doing this by saving the file, chmoding it, and then opening it using image source in the HTML. The problem is that when you do that, the new version of IE has that stupid pop-up window when

Re: [PHP] creating Image to display without saving it.

2002-05-23 Thread Miguel Cruz
On Thu, 23 May 2002, Leotta, Natalie (NCI/IMS) wrote: > I've got a page where I create an Image that I want to put into one of my > HTML table cells. I've been doing this by saving the file, chmoding it, and > then opening it using image source in the HTML. > > The problem is that when you do

RE: [PHP] paging MySQL layout

2002-05-23 Thread Vail, Warren
What kind of documents? If you are referring to Word or Excel documents, in most cases those applications determine the paging dynamically (usually by looking at the current assigned or default printer, fonts available, any font substitutions where not available, etc. Only permanent page ejects

[PHP] help finding a script

2002-05-23 Thread ken penn
hello can someone point me to a php script that works with the same functions as these sites,.. www.makeoutclub.com or www.lipstickandcigarettes.com i can edit them fine to my own likeing once i have a template please email me at [EMAIL PROTECTED] -- motorskillz media kenpenn -- PHP G

Re: [PHP] php/mysql join query help

2002-05-23 Thread Miguel Cruz
The sooner you fix it, the less work you have to do down the road! miguel On Thu, 23 May 2002, ROBERT MCPEAK wrote: > I appreciate you help. I inherited the pipe-delimited data. I would > have done it as you suggested. > > Thanks. > > -Bob > > >>> "1LT John W. Holmes" <[EMAIL PROTECTED]> 0

Re: [PHP] Create table with varying results

2002-05-23 Thread Miguel Cruz
Are you using Internet Explorer for Windows to view the HTML? It has some rendering problems with complex tables that result in very erratic behavior in certain circumstances (which I have yet to understand). View the page in another browser, or better yet, view the source code. That's a better w

  1   2   >