RE: [PHP] mkdir after mkdir

2004-06-06 Thread Uttam
guess it has something to do with default directory rights for newly created directories?? the directory 'x' gives your script permission to create directory under it. so you are able to create directory 'y' inside 'x'. but the newly created directory 'y' does not gives your script permission to

[PHP] PHP + Multiple MySQL-4.0.20

2004-06-06 Thread Minuk Choi
I have a RedHat9 machine. I needed to have multiple MySQL installations, so I removed the RPM installation and did a binary installation of MySQL-4.0.20. As it stands, I have the following installations /usr/local/mysql-4.0.20-webpage /usr/local/mysql-4.0.20-exp /usr/local/mysql-4.0.20-def Thes

[PHP] PHP5-Perl extension

2004-06-06 Thread Umesh Deshmukh
Hi, We are using PHP5 on linux, basically we are interested in working with PHP5-perl extension. We are using Movable Type library for blog. We have problem in using object of Movable Type (perl library) in PHP. Can anybody guide me on how to use Perl Object in PHP5. T

[PHP] Re: A follow up on my question about good coding practice [isset]

2004-06-06 Thread Ligaya Turmelle
how about: if (trim($foo) != '') Respectfully, Ligaya Turmelle "Al" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I could use one additional clarification regarding good practice. > > As I understand the php manual the following is acceptable. > > $foo= TRUE; > > if($foo) do.

Re: [PHP] Help installing imagick

2004-06-06 Thread Galen
Hey, I hope I'm not stating the obvious, but last time I used ImageMagick (5.5.7 - in my receipts folder, I just checked) for use with PHP under Mac OS X, I just downloaded a package from http://entropy.ch/ and installed it and life was good. I think it's still up for download. No messing with

[PHP] Dynamic Function Call

2004-06-06 Thread [-^-!-%-
Hello everyone! I'm trying to call a class method dynamically, but keep getting a SYNTAX ERROR. Can anyone shed some light on this? Is this impossible? ==The Code function &modCall($_class){ $this->LoadClass($_class); //LoadClass includes the class file, but /

[PHP] Help installing imagick

2004-06-06 Thread Robert Duran
PHP 4.3.6 Image Magick 5.5.7 imagick 0.9.10 OS: Mac OS X (10.3.4) I'm trying to install imagick so that I can use ImageMagick functions in PHP. I was using GD, but I need to load images from TIFF and write thumbnails in jpeg with added text. I had it all working with jpegs, but got stumped o

[PHP] A follow up on my question about good coding practice [isset]

2004-06-06 Thread Al
I could use one additional clarification regarding good practice. As I understand the php manual the following is acceptable. $foo= TRUE; if($foo) do.. ; where $foo is a binary; but not a variable. Use isset($var) for variables and be careful with $var= ' '; etc. because $var is assi

Re: [PHP] Array keys referencing value from another array key???

2004-06-06 Thread Marek Kilimajer
Gerard Samuel wrote: Not sure if the subject was worded correctly, but I was looking to see if this (or something like it) is possible. $array = array('key_1' => 'This is some text', 'key_2' => '' . $array['key_1'] . '' ); And the array structure would

[PHP] Array keys referencing value from another array key???

2004-06-06 Thread Gerard Samuel
Not sure if the subject was worded correctly, but I was looking to see if this (or something like it) is possible. $array = array('key_1' => 'This is some text', 'key_2' => '' . $array['key_1'] . '' ); And the array structure would be something like

Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Marek Kilimajer
Robert Fitzpatrick wrote: On Sun, 2004-06-06 at 16:49, Marek Kilimajer wrote: Robert Fitzpatrick wrote: Trying to portupgrade my PHP 4.3.6 package with PostgreSQL 7.4.2 support and getting this error below. Trying to setup postgresql with Heimdal Kerberos 5 support, believe I have, but not tried

Re: [PHP] help needed with tiger tree hashes

2004-06-06 Thread Carl S. in 't Veld
Ah yes! Thanks, I see the problem; I have to switch the 8-byte chunks in byte-order! (Why is Directconnect doing this...) Thanks for your help. Greetings, Carl. "Thijs Lensselink" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > check: http://www.cs.technion.ac.il/~biham/Reports/Tiger

[PHP] ini_get

2004-06-06 Thread Dennis Gearon
CC me please. Does anyone know if ini_get returns the values BEFORE or AFTER the .htaccess modifies them? i.e., does it return the server or local version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Robert Fitzpatrick
On Sun, 2004-06-06 at 16:49, Marek Kilimajer wrote: > Robert Fitzpatrick wrote: > > Trying to portupgrade my PHP 4.3.6 package with PostgreSQL 7.4.2 support and > > getting this error below. Trying to setup postgresql with Heimdal Kerberos 5 > > support, believe I have, but not tried anything wit

Re: [PHP] Doubling up...

2004-06-06 Thread John W. Holmes
[EMAIL PROTECTED] wrote: Using the code below, im getting a problem where it is printing out TWO of each field value instead of one... [snip] while($row = mysql_fetch_array($result)){ fetch_array returns an array where the indexes are numeric and where they are the column names. So $row has four

[PHP] Doubling up...

2004-06-06 Thread rjones
Using the code below, im getting a problem where it is printing out TWO of each field value instead of one... For example, a table like id | name | age 1 | russ | 22 2 | jon | 23 would print out for the first row... 11russruss any ideas on whats going wrong? THanks i

Re: [PHP] Refresh Page

2004-06-06 Thread Chris Shiflett
--- Mike Mapsnac <[EMAIL PROTECTED]> wrote: > I want to refresh page every 10 seconds, without clicking on > "Refresh" button. Use the Refresh header: header('Refresh: 10; url=http://example.org/foo.php'); Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Rei

[PHP] Re: Multiple URL Redirection

2004-06-06 Thread Justin Patrin
[EMAIL PROTECTED] wrote: Hi I have the following situation: I've got a domain that is hosted at a certain host. This host allows me to create subdomains, and also to add several domains to the same account. The thing is if I add a domain like xxx.com to my yyy.com both will be directed to my index.

Re: [PHP] generating graphs

2004-06-06 Thread Justin Patrin
It depends on what you're running it on. Linux (which flavor), Unix (which onw?), Mac OS X, Windows Nitin wrote: At last I've decided to upgrade it. Could you please tell me, which version is best candidate yet to upgrade to? And the procedure to upgrade with tar.. Thanks in advance "Thomas S

Re: [PHP] Newbie question about good coding practice [isset]

2004-06-06 Thread Justin Patrin
Curt Zirzow wrote: * Thus wrote K.Bogac Bokeer ([EMAIL PROTECTED]): When $var is 0? or $var = ''; $var = array(); $var = false; // Output: $var: $var not exists if ( $var ) echo '$var: $var exists'; else Curt or null -- paperCrane -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Get Column Names for mySQL...

2004-06-06 Thread John W. Holmes
Russell P Jones wrote: How would one cycle through and get all of the column names in a mysql table? say that i have... id | title | name | description 1 | MR. | russ | age XX height XX 2 | MRS. | jan | age XX height XXX and I want to print out the 4 column names... how would one accomplish t

Re: [PHP] Get Column Names for mySQL...

2004-06-06 Thread Marek Kilimajer
Russell P Jones wrote: How would one cycle through and get all of the column names in a mysql table? say that i have... id | title | name | description 1 | MR. | russ | age XX height XX 2 | MRS. | jan | age XX height XXX and I want to print out the 4 column names... how would one accomplish t

[PHP] Get Column Names for mySQL...

2004-06-06 Thread Russell P Jones
How would one cycle through and get all of the column names in a mysql table? say that i have... id | title | name | description 1 | MR. | russ | age XX height XX 2 | MRS. | jan | age XX height XXX and I want to print out the 4 column names... how would one accomplish this? Russ -- PH

Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Marek Kilimajer
Robert Fitzpatrick wrote: Trying to portupgrade my PHP 4.3.6 package with PostgreSQL 7.4.2 support and getting this error below. Trying to setup postgresql with Heimdal Kerberos 5 support, believe I have, but not tried anything with it, yet. /usr/local/lib/libpq.so: undefined reference to `krb5_c

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Marek Kilimajer
Gerben wrote: Unfortunately my server has no ftp (but SSH). It makes much sence what you said, but how can PHP (with uid=48) make a directory with uid=1042. both folder are (to be) made the same script, but only one is (with uid=1042). This is what makes it very peculiar. I think I have skip the id

[PHP] Re: 2 Websites on 1 url

2004-06-06 Thread Torsten Roehr
"Jos De Nijs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello there, > > I'm looking for some code to split a website that is hosted on one server. > > For example: I have the domain www.firstone.com and www.secondone.nl > They're both hosted at one provider. So far no problems.

[PHP] 2 Websites on 1 url

2004-06-06 Thread jos.de.nijs
Hello there, I'm looking for some code to split a website that is hosted on one server. For example: I have the domain www.firstone.com and www.secondone.nl They're both hosted at one provider. So far no problems. The ISP makes the changes in the dns and when you type in the urls you'll arrive at

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Kevin Murphy
I'm still kind of a newbie at this, but couldn't you accomplish this by doing each MKDIR separately with a series of ELSE/IF statements. The basic logic would be: Check if parent DIR exists. If not, create one and then go on If yes: Check if Child DIR Exists

[PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Robert Fitzpatrick
Trying to portupgrade my PHP 4.3.6 package with PostgreSQL 7.4.2 support and getting this error below. Trying to setup postgresql with Heimdal Kerberos 5 support, believe I have, but not tried anything with it, yet. /usr/local/lib/libpq.so: undefined reference to `krb5_cc_get_principal' /usr/loc

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Gerben
Unfortunately my server has no ftp (but SSH). It makes much sence what you said, but how can PHP (with uid=48) make a directory with uid=1042. both folder are (to be) made the same script, but only one is (with uid=1042). This is what makes it very peculiar. I think I have skip the idea of creatin

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Gerben
I have those rights since the first dir is created. the problem is that the 2nd is not created "Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I think PHP and mkdir() is using the web servers rights. So the web server would need rights to create directories. > > >>He

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Marek Kilimajer
Gerben wrote: Hello, I have a problem with the mkdir function. I'm trying to make a seperate folder every photoalbum. inside I want to create another folder ('.../thumbnails/') for, you can guess, the thumbnails. At first it didn't work at all: Warning: mkdir() failed (Permission denied) in /home/

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Daniel Clark
I think PHP and mkdir() is using the web servers rights. So the web server would need rights to create directories. >>Hello, >> >>I have a problem with the mkdir function. >>I'm trying to make a seperate folder every photoalbum. inside I want to >>create another folder ('.../thumbnails/') for,

[PHP] mkdir after mkdir

2004-06-06 Thread Gerben
Hello, I have a problem with the mkdir function. I'm trying to make a seperate folder every photoalbum. inside I want to create another folder ('.../thumbnails/') for, you can guess, the thumbnails. At first it didn't work at all: >Warning: mkdir() failed (Permission denied) in /home/virtual/sit

Re[2]: [PHP] asp.net vs. php

2004-06-06 Thread Richard Davey
Hello Chris, Sunday, June 6, 2004, 5:27:31 PM, you wrote: c> and you'll find that there is not a comprehensive comparison. Don't be so c> quick to assume that someone hasn't done their homework. I've the spent the c> past 6 months learning .NET and searching for comprehensive discussions of c> ho

[PHP] religius war: was:Re: [PHP] asp.net vs. php

2004-06-06 Thread raditha dissanayake
chris wrote: and you'll find that there is not a comprehensive comparison. Don't be so quick to assume that someone hasn't done their homework. I've the spent the past 6 months learning .NET and searching for comprehensive discussions of how it compares to other web development approaches. I can as

RE: [PHP] asp.net vs. php

2004-06-06 Thread chris
and you'll find that there is not a comprehensive comparison. Don't be so quick to assume that someone hasn't done their homework. I've the spent the past 6 months learning .NET and searching for comprehensive discussions of how it compares to other web development approaches. I can assure you that

Re: [PHP] asp.net vs. php

2004-06-06 Thread raditha dissanayake
chris wrote: Curt, I know you're well meaning, but ASP.old has nothing to do with ASP.NET, so much of what you provided is irrelevant. Curt's point is very valid none the less. just replace asp with asp.net when searching. * Thus wrote Kathleen Ballard ([EMAIL PROTECTED]): I have been asked

RE: [PHP] asp.net vs. php

2004-06-06 Thread chris
Curt, I know you're well meaning, but ASP.old has nothing to do with ASP.NET, so much of what you provided is irrelevant. I just finished a largish .NET project and will follow with a response to Kathleen's question. -chris -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED]

Re: [PHP] asp.net vs. php

2004-06-06 Thread Aidan Lister
Hehe Curt, point made :) "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Kathleen Ballard ([EMAIL PROTECTED]): > > I have been asked to make a fact based comparison of > > the pros and cons of asp.net and php. I am not trying > > to start a war and apologi

Re: [PHP] asp.net vs. php

2004-06-06 Thread Curt Zirzow
* Thus wrote Kathleen Ballard ([EMAIL PROTECTED]): > I have been asked to make a fact based comparison of > the pros and cons of asp.net and php. I am not trying > to start a war and apologize if this is too off topic, > but I know make of the list members work in other > coding languages. Here i

Re: [PHP] Difficult SQL (for me) - please help!

2004-06-06 Thread Brian Dunning
THANKS!! :) :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [OT?] Apache/PHP error/warning(s)

2004-06-06 Thread Thomas Seifert
Php Lists wrote: Hi list I can understand the difference between 'world writable' and 'writable by the webserver' in concept, but how would I go about manipulating these variables? Specifically, theses are error reports generated when setting up eGroupware (sourceforge.net) Thanks in advance. Stuar

[PHP] [OT?] Apache/PHP error/warning(s)

2004-06-06 Thread PHP LIsts
Hi list I can understand the difference between 'world writable' and 'writable by the webserver' in concept, but how would I go about manipulating these variables? Specifically, theses are error reports generated when setting up eGroupware (sourceforge.net) Thanks in advance. Stuart -- PHP Ge

Re: [PHP] generating graphs

2004-06-06 Thread Nitin
At last I've decided to upgrade it. Could you please tell me, which version is best candidate yet to upgrade to? And the procedure to upgrade with tar.. Thanks in advance "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 5 Jun 2004 19:31:34 +0530 [EMAIL PROTE

[PHP] asp.net vs. php

2004-06-06 Thread Kathleen Ballard
I have been asked to make a fact based comparison of the pros and cons of asp.net and php. I am not trying to start a war and apologize if this is too off topic, but I know make of the list members work in other coding languages. Three areas of concern are robustness, scalability and development

Re: [PHP] "lasso" (a bit 0T)

2004-06-06 Thread Roddie Grant
on 30/5/04 6:59 pm, Ryan A at [EMAIL PROTECTED] wrote: > Hey, > A prospective client has asked me to try to convert his Swedish site so that > visitors have a choice between Swedish and English, which is not a problem > as I am fluent in both languages. After going through the site to convert I >

Re: [PHP] Session Garbage Collection (session.gc_maxlifetime)

2004-06-06 Thread Marek Kilimajer
coopster wrote: Do I need to change the session.save_path directive for each virtual host to use their own directory other than the system and/or PHP default (/tmp) in order to effectively override each virtual host session.gc_maxlifetime directive? Yes. But I did not read bellow ;-) Let me offe

Re: [PHP] Multiple URL Redirection

2004-06-06 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi I have the following situation: I've got a domain that is hosted at a certain host. This host allows me to create subdomains, and also to add several domains to the same account. The thing is if I add a domain like xxx.com to my yyy.com both will be directed to my index.

Re: [PHP] Best way to sort?

2004-06-06 Thread Burhan Khalid
Brian Dunning wrote: I'm not sure if this is a complex SQL query or a PHP array sorting thing, but what's the best way to take this data: Tom Greg Brian Tom Brian Tom And return the following results, sorted by number of records: Tom - 3 Brian - 2 Greg - 1 Any thoughts? I'm not