Re: [PHP] Changing users in php script

2003-10-03 Thread Nitin
You can use 'sudoers' for the purpose, that way you'll be able to give just that permission to the user of your choice. then you can connect as that user through 'exec' or 'system' and can execute that comand. For more information check out: http://www.courtesan.com/sudo/intro.html Enjoy Nitin

Re: [PHP] unexpected results using sprintf() with %u

2003-10-03 Thread David Otton
On Fri, 3 Oct 2003 15:51:59 +1000, you wrote: >Im trying to retrieve the unsigned value of an integer. sounds pretty simple... > >[code] >$i = -86; >echo "" . sprintf("%d", $i); >echo "" . sprintf("%u", $i); >[/code] > >produces: >-86 >4294967198 > >what i expected: >-86 >86 > >Ive searched the ar

[PHP] dynamic table problem

2003-10-03 Thread irinchiang
Hi all: Having some problems right here. Below are a snip my codes: class="Devi" width="15%" align="center" valign="middle">2PE1012 . . . Grey Pink Blue Yellow Cyan What I am trying to do here is to create a table where I can change its cell color by selecting the colors from the

RE: [PHP] PHP Editor

2003-10-03 Thread Nico Berg
Hi, I have found the solution to my problem, I share it http://phpeditors.linuxbackup.co.uk/ Greetings and thanks, Nico -Oorspronkelijk bericht- Van: Jay Blanchard [mailto:[EMAIL PROTECTED] Verzonden: donderdag 2 oktober 2003 14:30 Aan: Nico Berg; PHP General Onderwerp: RE: [PHP]

[PHP] Building associative arrays

2003-10-03 Thread chris . neale
I'm stuck. I'm trying to build an associative array from a database result. How can I assign a new key and value pair eg mysql_fetch_row etc { dbRowCol1 = myarray(key) dbRowCol2 = myarray(value) } You get the general idea. Can't find any examples. I'm trying to lookup a key and retrieve the

[PHP] PHP & EJB

2003-10-03 Thread Alec
Hi, Though I have used PHP with Java Objects for sometime, I am keen to know whether anyone has tried using PHP to communicate with Enterprise JavaBeans?? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] embedding code

2003-10-03 Thread Ford, Mike [LSS]
On 03 October 2003 05:06, John Taylor-Johnston wrote: > Brian or anyone, > > Ok, supposing I don't want someone to be able to use

[PHP] session control query

2003-10-03 Thread STONE Steven
Hi there, I'm currently working on a user login script. I'm using session variables. Everything seems to be working fine but I continually get the following warning message when I run the programs: Warning: Cannot send session cache limiter - headers already sent (output started at c:\phpdev\ww

Re: [PHP] session control query

2003-10-03 Thread Veniamin Goldin
Hi, session_start(); must be a very first line of script. Before any html output. Regards, Veniamin SS> Hi there, SS> I'm currently working on a user login script. I'm using session SS> variables. Everything seems to be working fine but I continually get the SS> following warnin

RE: [PHP] session control query

2003-10-03 Thread Angelo Zanetti
thats pretty much a golden rule of sessions =) -Original Message- From: Veniamin Goldin [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 12:41 PM To: STONE Steven Cc: php mailing list Subject: Re: [PHP] session control query Hi, session_start(); must be a very first line of s

[PHP] How to swap the table's bg color with php

2003-10-03 Thread Jack
Dear all I had write a script using php,which will pull the values from a mysql table to display in HTML. now i want to add a function which when the mouse had move over a table cell, the background of the table cell will turn to other color! Is anyone know how i can perform this task? Thx alot! J

[PHP] mysql query

2003-10-03 Thread Cameron Metzke
ok im stumped lol i have used this code in the past to insert data into mysql (im relitively new though) --code mysql_query("INSERT INTO Images (Image, desc) VALUES ('$name', '$description')") or die (mysql_error()); --end code- but i get this error] -error-

Re: [PHP] mysql query

2003-10-03 Thread Tom Rogers
Hi, Friday, October 3, 2003, 8:17:23 PM, you wrote: CM> ok im stumped lol i have used this code in the past to insert data into CM> mysql (im relitively new though) CM> --code CM> mysql_query("INSERT INTO Images (Image, desc) VALUES ('$name', CM> '$description')") or die (mysql_error()

Re: [PHP] mysql query

2003-10-03 Thread Cameron Metzke
Thanx Tom, i should of realized that lol. Again Thanx :) "Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Friday, October 3, 2003, 8:17:23 PM, you wrote: > CM> ok im stumped lol i have used this code in the past to insert data into > CM> mysql (im relitively new th

Re: [PHP] Creating Objects!

2003-10-03 Thread Burhan Khalid
Webmaster wrote: let us say there is Class A. In the constructor of this class I create an Object B of Class B. Now what is the difference between these two ? this->B = new B; and B = new B; The "this" object always points to the current instance of an object. So whenever you refer to a variab

Re: [PHP] Mail.php help

2003-10-03 Thread Burhan Khalid
Eric Rounds wrote: We have PHP 4.2 installed on Mac OS X under Apache. The settings in the php.ini file are: sendmail_from - [EMAIL PROTECTED] sendmail_path - /usr/sbin/sendmail -t -i SMTP - localhost smtp_port - 25 This probably isn't related to your problem, but there is already a localhost.c

[PHP] How to read remote files

2003-10-03 Thread Nitin
Hi all, I'm having a problem, hope to get some suggestios on the same. Here it goes: I've an application where I need to read an html file stored on user's pc through my PHP script and send an email to specified addresses. Problem is how to read a file on user's pc as I cann't allow them to up

Re: [PHP] embedding code

2003-10-03 Thread John W. Holmes
John Taylor-Johnston wrote: Brian or anyone, Ok, supposing I don't want someone to be able to use

Re: [PHP] How to read remote files

2003-10-03 Thread John W. Holmes
Nitin wrote: I'm having a problem, hope to get some suggestios on the same. Here it goes: I've an application where I need to read an html file stored on user's pc through my PHP script and send an email to specified addresses. Problem is how to read a file on user's pc as I cann't allow them to

Re: [PHP] How to read remote files

2003-10-03 Thread Nitin
it's not about user's security, cauz, of course, user'll have to specify the page. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Nitin" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Friday, October 03, 2003 4:33 PM Subject: Re: [PHP] How to read re

Re: [PHP] PHP & EJB

2003-10-03 Thread Raditha Dissanayake
Hi Alec, I have dabbled with php and java combinations at various times as well. But IMHO combining PHP with EJB would be like combining the 'simplest approach to solving a problem' with the 'most complicated approach' to solving a problem. :-) best regards Alec wrote: Hi, Though I have use

Re: [PHP] OT(?): mod_rewrite not passing GET variables to php

2003-10-03 Thread Steven Jarvis
On Wednesday, October 1, 2003, at 04:16 PM, Leif K-Brooks wrote: Steven Jarvis wrote: I'm just starting to experiment with mod_rewrite on Apache 1.3.x and php 4.3.3. Register_globals is off. I have the following rules in my .htaccess file (which sits in the site's root dir along with paper.ph

[PHP] NEW: XML Application Objects

2003-10-03 Thread Terence
I've just released the first distribution for an open-source project called XML Application Objects (XAO). It's the result of working with XML/XSLT in PHP for a couple of years now. Although this is an alpha release, the concept itself has gone through a lot of refinement and is now ready for p

[PHP] Re: NEW: XML Application Objects

2003-10-03 Thread Terence
Terence wrote: The publication of the project itself was partially motivated by the discussions that took place in this thread (A Complete List of PHP Template Engines?) sorry, forgot to include the link to the thread. http://www.sitepointforums.com/showthread.php?threadid=123769 -- PHP Gene

RE: [PHP] How to swap the table's bg color with php

2003-10-03 Thread chris . neale
Try using stylesheets instead of javascript. I think you need to use :hover on either the td element and then specify a style. background-color I think it is. I haven't got my HTML reference handy and can't remember the specifics, but that's the general idea. Hope that's of some use. Regards Ch

RE: [PHP] How to swap the table's bg color with php

2003-10-03 Thread SED
You will need Javascript and CSS (and this is not a postlist for that). If you are not familiar to both, this work can get tricky at first. Regards, Sumarlidi Einar Dadason SED DESIGN _ Address: Thingvallastraeti 4 600 Akureyri Icel

RE: [PHP] [AWF-TOPIC] Create from PHP on the Fly???

2003-10-03 Thread Jay Blanchard
[snip] >>I think Jay probably understands, but for those who don't, >>http://www.gnu.org/philosophy/free-sw.html Quite frankly i don't mind people using anything that i open source in commercial applications. When i do mind i don't release it as open source :-) [/snip] ***applause*** Well said

[PHP] Re: Building associative arrays

2003-10-03 Thread rush
> I'm trying to build an associative array from a database result. How can I > assign a new key and value pair > > eg > > mysql_fetch_row etc > { > dbRowCol1 = myarray(key) > dbRowCol2 = myarray(value) > } > > You get the general idea. Can't find any examples. I'm trying to lookup a > key and r

Re: [PHP] Building associative arrays

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 10:22:55AM +0100, [EMAIL PROTECTED] wrote: : : I'm trying to build an associative array from a database result. How can I : assign a new key and value pair : : eg : : mysql_fetch_row etc : { : dbRowCol1 = myarray(key) : dbRowCol2 = myarray(value) : } : : You get the

Re: [PHP] How to read remote files

2003-10-03 Thread Burhan Khalid
Nitin wrote: it's not about user's security, cauz, of course, user'll have to specify the page. Nitin, what you want is a form uploader script. If you have fantasies about being able to read a file on a user's computer just because they tell you the location ... time to wake up. John is correct

Re: [PHP] How to swap the table's bg color with php

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 06:11:39PM +0800, Jack wrote: : : I had write a script using php,which will pull the values from a mysql table : to display in HTML. : now i want to add a function which when the mouse had move over a table : cell, the background of the table cell will turn to other color!

RE: [PHP] How to read remote files

2003-10-03 Thread Jay Blanchard
[snip] Nitin wrote: > it's not about user's security, cauz, of course, user'll have to specify the > page. > Nitin, what you want is a form uploader script. If you have fantasies about being able to read a file on a user's computer just because they tell you the location ... time to wake up. [

Re: [PHP] mysql query

2003-10-03 Thread Nicholas Robinson
DESC is a reserved word (used to indicate a DESCending ORDER bY). N On Friday 03 Oct 2003 11:17 am, Cameron Metzke wrote: > ok im stumped lol i have used this code in the past to insert data into > mysql (im relitively new though) > --code > mysql_query("INSERT INTO Images (Image, des

[PHP] help - with pdf downloads

2003-10-03 Thread pete M
I'm directing client via a link to a download page for pdf documents. This code works on mozilla + firebird but in IE however it pops up with a open/save dialog - with the filetype missing and then an error when open/save pressed saying "cannot find the site". As you can see below I've tried al

RE: [PHP] Building associative arrays

2003-10-03 Thread chris . neale
Perfect. Thanks for that. I can't think associative arrays first thing in the morning. Seems a bit clearer now... C -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: 03 October 2003 12:07 To: [EMAIL PROTECTED] Subject: Re: [PHP] Building associative arrays On Fri, Oct

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 07:21, Terence wrote: > > The publication of the project itself was partially motivated by the > discussions that took place in this thread (A Complete List of PHP > Template Engines?) which basically sees me arguing for the usage of > standards (XSLT) rather than having t

[PHP] Committing OO Sin

2003-10-03 Thread Gerard Samuel
Or is there such a thing. ;) I have a small collection of utility classes, and it seems like the more I add, the more cumbersome things seem to get. A brief synopsis of code execution. 1. Start DB class 2. Start Smarty class, passing reference of DB class to Smarty 3. When needed start Date-Ti

RE: [PHP] Committing OO Sin

2003-10-03 Thread Jay Blanchard
[snip] Making "utility" classes are somewhat straight forward, but getting them to work together, seems like a pain. So I was thinking, if a class was started in the global space, is it a sin, to use the $GLOBALS array to access it, instead of tying in all these references?? [/snip] Global spac

RE: [PHP] [AWF-TOPIC] Create from PHP on the Fly???

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 07:58, Jay Blanchard wrote: > [snip] > >>I think Jay probably understands, but for those who don't, > >>http://www.gnu.org/philosophy/free-sw.html > > Quite frankly i don't mind people using anything that i open source in > commercial applications. When i do mind i don't re

Re: [PHP] Committing OO Sin

2003-10-03 Thread Fabrizio Balliano
I suggest you should use MerlinWork ;-) It does these things for you. Fabrizio Balliano Il ven, 2003-10-03 alle 16:23, Gerard Samuel ha scritto: > Or is there such a thing. ;) > I have a small collection of utility classes, and it seems like the more > I add, > the more cumbersome things seem

Re: [PHP] Committing OO Sin

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 10:23, Gerard Samuel wrote: > Or is there such a thing. ;) > I have a small collection of utility classes, and it seems like the more > I add, > the more cumbersome things seem to get. > A brief synopsis of code execution. > 1. Start DB class > 2. Start Smarty class, passi

Re: [PHP] OT(?): mod_rewrite not passing GET variables to php

2003-10-03 Thread Christophe Chisogne
Steven Jarvis wrote: >>> RewriteEngine On RewriteRule ^/([a-z]+)/([a-z]+)/$ paper.php?paper=$1§ion=$2 [L] Try this (I'm no mod_rewrite expert, so no promises): RewriteEngine On RewriteRule /^([a-z]+)\/([a-z]+)$/ paper.php?paper=$1§ion=$2 [L] The first try seemed better (in Apache config, '/' means

Re: [PHP] Reloading a specific window

2003-10-03 Thread Marek Kilimajer
1. you have the main window. 2. user clicks ADD, new windows pops up 3. user enters data into the new window, submits 4. action.php updates database and outputs: document.window.opener.reload() self.close(); Close this window and reoad the main window to

Re: [PHP] How to read remote files

2003-10-03 Thread Nitin
yea, it's on my network only the only thing is server is on linux n behind the firewall, while clients r on windows n linux too please let me know, if that's possible, as i'll of course know the path as uer will have to specify it to read the file n thanks to all of u for ur support Nitin - O

RE: [PHP] How to read remote files

2003-10-03 Thread Jay Blanchard
[snip] yea, it's on my network only the only thing is server is on linux n behind the firewall, while clients r on windows n linux too please let me know, if that's possible, as i'll of course know the path as uer will have to specify it to read the file [/snip] On the Windows machines the folders

Re: [PHP] [AWF-TOPIC] Create from PHP on the Fly???

2003-10-03 Thread Raditha Dissanayake
I hear you robert. I will be shot down for saying the following but here goes: The GPL tends to scare people who are not very familiar with open source. They believe GPL and Open Source are synonyms which obviously isn't true. Unfortunately this is what most people (outside the open source co

[PHP] Round a number

2003-10-03 Thread Shaun
Hi, I have a query that returns a number from culculation in my table. It returns say 4.00, 8.75, 0.00, 12.50 etc. How format the number so that the trailing zeros aer removed i.e. 4, 8.75, 0, 12.5 etc? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Round a number

2003-10-03 Thread Marek Kilimajer
echo (iny)$number; Shaun wrote: Hi, I have a query that returns a number from culculation in my table. It returns say 4.00, 8.75, 0.00, 12.50 etc. How format the number so that the trailing zeros aer removed i.e. 4, 8.75, 0, 12.5 etc? Thanks for your help -- PHP General Mailing List (http://ww

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > http://zirzow.dyndns.org/html/mlists/php_general/ > > There's also this: > > http://www.zend.com/cgi-bin/m_stats.pl?list=php-general&date=200309 > > What would be really interesting is to see a page

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Raditha Dissanayake
Hi Terence, I am equally puzzled as to why people are using all sorts of crappy proprietory template systems instead of XSLT. It's particularly useful when dealing with WAP. I suspect the reason could well be the inconsistencies in compiling php with XSLT support. compiling the Sablatron modul

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Raditha Dissanayake
Hi, Please give it a shot, it's real easy. far easier than any of the lame php template systems i have seen. The beauty is that the same XML/XSL combo can be used with PHP, perl, JSP/Servlets, C++, VC++,VB,C,C# and the list goes on and on. Disclaimer: I have never written a single line of VB ,

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 11:25, Curt Zirzow wrote: > * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > > http://zirzow.dyndns.org/html/mlists/php_general/ > > > > There's also this: > > > > http://www.zend.com/cgi-bin/m_stats.pl?list=php-general&date

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ > > I had to build some cache tables, grouping 141852 records on the > fly just wasn't fast enough, excpecially for my 233. Very nice, and yes, home-grown caching is a wonderful

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 11:30, Raditha Dissanayake wrote: > Hi, > > Please give it a shot, it's real easy. far easier than any of the lame > php template systems i have seen. The beauty is that the same XML/XSL > combo can be used with PHP, perl, JSP/Servlets, C++, VC++,VB,C,C# and > the list goe

[PHP] set the PHP to look at library files.

2003-10-03 Thread Golawala, Moiz M (IndSys, GE Interlogix)
Hi, I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of my scripts use a bunch of open source libraries. Until now I have been including these libraries in my scripts by defining a full path to the library 'inc' files. If I put the library itself in my htdocs fol

[PHP] Cookies Vs Sessions...?

2003-10-03 Thread Tristan . Pretty
Age old question...? Please don't flame if it is I currently remember my visitors on my site by setting a cookie thusly: setcookie("logged", "yes"); On each protected page, put an IF ($logged == "yes") { //show page etc } else {//show login form etc } All good, works fine hooray for me...

Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread J Morton
I would suggest creating a path alias in your Apache httpd.conf file to recognize (i.e) /includes/ and redirect as needed. Justin "Golawala, Moiz M (IndSys, GE Interlogix)" wrote: > Hi, > > I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of > my scripts use a bun

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 11:31, [EMAIL PROTECTED] wrote: > Age old question...? > Please don't flame if it is > > I currently remember my visitors on my site by setting a cookie thusly: > > setcookie("logged", "yes"); > > On each protected page, put an IF ($logged == "yes") { //show page etc }

Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread Robert Cummings
See the "include_path" setting in your php.ini file. Cheers, Rob. On Fri, 2003-10-03 at 11:35, Golawala, Moiz M (IndSys, GE Interlogix) wrote: > Hi, > > I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of > my scripts use a bunch of open source libraries. Until

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 04:31:23PM +0100, [EMAIL PROTECTED] wrote: : : I currently remember my visitors on my site by setting a cookie thusly: : : setcookie("logged", "yes"); : : On each protected page, put an IF ($logged == "yes") { //show page etc } : else {//show login form etc } You should

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > 1. Can sessions work in the same way as my cookies? (Just remember > a value to a variable, accross many page) Yes, they address the same challenge: persisting data. Also, please realize that sessions can use cookies for identification. One of the benefits of using

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > > setcookie("logged", "yes"); > > > > On each protected page, put an IF ($logged == "yes") { //show page etc } > > else {//show login form etc } > > You should use $_COOKIE['logged'] instead. :-) While we're talking about "should", you should also ne

[PHP] PHP and .HTACCESS

2003-10-03 Thread James D. Stallings
I am new to learning PHP and have learned a lot over the last few weeks. One thing that I can not find anywhere is how to code it so a user can click logoff and have it route them to another page and remove their authentication that was set. ie... I user goes to www.mysite.com and clicks on a

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Chris Shiflett
--- "James D. Stallings" <[EMAIL PROTECTED]> wrote: > I user goes to www.mysite.com and clicks on a link called STAFF > The STAFF.mysite.com is protected with authentication using > .htaccess The staff enters their ID and Password and is allowed in. > I want to have a button that says LOGOFFF that

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Marek Kilimajer
it is virtualy impossible to make the browser forget the credentials. How this is solved is that the logoff link is login.php?logoff=username In login.php you check for $_GET['logoff'] variable, if it is set you will not let the user with the same name ($_GET['logoff']) log in. James D. Stalling

Re: [PHP] PHP Session not working

2003-10-03 Thread Php2tor
Maybe enable track_vars in php.ini ? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] We are facing some problems in using sessions in our applications. Recently we have moved our web site to a new Apache server (1.3). We have installed PHP on this server. But ses

[PHP] str_word_count Broken?

2003-10-03 Thread Steven Walker
I ran into a strange problem this morning. Suddenly I am getting an error that str_word_count is undefined, even though it has been working for the past few months. Anyone know why this may be? Nothing in the my code has changed at all. I did phpinfo() to check the server and it is running 4.2.

Re: [PHP] Committing OO Sin

2003-10-03 Thread Gerard Samuel
Jay Blanchard wrote: Global space? Yes, what you're talking about, if possible, is a sin. Why is getting the classes to work together a pain? A little misleading about what Im feeling. Im feeling that the more classes that I add the more cumbersome things get, and at the rate Im going, I get th

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Sid
If I've got my basics right, the auth user and pass will be sent by the browser. You will need a way to tell the browser not to send the user and pass anymore. - Sid - Original Message - From: "James D. Stallings" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 3 October 2003 Friday 9:0

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Raditha Dissanayake
The ones I tried were lame. Haven't studied your engine yet so i have yet to decide whether it's lame or not ;-) best regards Robert Cummings wrote: On Fri, 2003-10-03 at 11:30, Raditha Dissanayake wrote: Hi, Please give it a shot, it's real easy. far easier than any of the lame php templa

Re: [PHP] str_word_count Broken?

2003-10-03 Thread Marek Kilimajer
str_word_count is available since version 4.3. Check your setup, someone restarted webserver with wrong config directory specified. Steven Walker wrote: I ran into a strange problem this morning. Suddenly I am getting an error that str_word_count is undefined, even though it has been working fo

Re: [PHP] Committing OO Sin

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 12:40, Gerard Samuel wrote: > Jay Blanchard wrote: > > >Global space? Yes, what you're talking about, if possible, is a sin. > > > >Why is getting the classes to work together a pain? > > > A little misleading about what Im feeling. > Im feeling that the more classes that I

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread CPT John W. Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ > > I had to build some cache tables, grouping 141852 records on the > fly just wasn't fast enough, excpecially for my 233. Looks good to me. :) I also have 8 posts under [EMAIL

Re: [PHP] Dates

2003-10-03 Thread Payne
Ok, Mayve I need to be a little clear, I under the link below as showing dates. What I need to know how can I take the input of 09-12-1967 and have enter into a mysql data using php as 1967-09-12? Because everything that is past from my form to mysql is not the way it was enter. Would I need t

[PHP] PHP as a Servlet in Tomcat

2003-10-03 Thread David Erickson
Hi I am wondering if anybody has successfully been able to run PHP in a servlet only environment? I am trying to setup php to run as a servlet within tomcat on my win2k box and am having encredible difficulties.. here are the specs and the problem. Any suggestiongs extremely appreciated: Jakarta

RE: [PHP] Dates

2003-10-03 Thread Jay Blanchard
[snip] Ok, Mayve I need to be a little clear, I under the link below as showing dates. What I need to know how can I take the input of 09-12-1967 and have enter into a mysql data using php as 1967-09-12? Because everything that is past from my form to mysql is not the way it was enter. Would I

RE: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Chris W. Parker
Curt Zirzow on Friday, October 03, 2003 8:26 AM said: > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ Cool page! But if you would do us all a favor and give your pages some useful 's, because you know, EVERY PAGE IS CALLED "PHP DEVELOP

RE: [PHP] PHP Editor

2003-10-03 Thread Chris W. Parker
Nico Berg on Friday, October 03, 2003 12:38 AM said: > Hi, I have found the solution to my problem, I share it > http://phpeditors.linuxbackup.co.uk/ OOH! OOH! OOH! This should be added to the weekly PHP Newbie post!!! chris. -- PHP General Mailing L

Re: [PHP] Dates

2003-10-03 Thread Kris Yates
Also, an option is to have that SQL field set as date. With postgres, I can insert 09-12-1967 and the sql server auto converts it to 1967-09-12 upon saving into date field. However, another way is.. Jay Blanchard wrote: [snip] Ok, Mayve I need to be a little clear, I under the link below as

[PHP] dir size

2003-10-03 Thread Ms Carlsson
is it possible to count a size of a dir and all sub dirs in php ? and if, how? thanx _ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] dir size

2003-10-03 Thread Jay Blanchard
[snip] is it possible to count a size of a dir and all sub dirs in php ? and if, how? [/snip] $foo = exec("du -h"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP as a Servlet in Tomcat

2003-10-03 Thread Ray Hunter
Try running php is from a servlet environment. Basically in tomcat you set up a servlet that handles your *.php files and calls the php executable. This is like php cgi so it can be slow. -- BigDog On Fri, 2003-10-03 at 12:11, David Erickson wrote: > Hi I am wondering if anybody has successful

RE: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > [snip] > is it possible to count a size of a dir and all sub dirs in php ? and > if, > how? > [/snip] > > $foo = exec("du -h"); > Hmmm this solution would appear to include the file sizes :D Rob -- .-

RE: [PHP] User authentication

2003-10-03 Thread Jeff McKeon
> --- Jeff McKeon <[EMAIL PROTECTED]> wrote: > > $_SESSION['userid'] = $userid; > > $_SESSION['userpassword'] = $userpassword; > > [snip] > > > Anything look wrong or insecure with all of this? > > The only thing that catches my attention is your assignments > for $_SESSION['userid'] and $_SE

[PHP] File Download

2003-10-03 Thread Grant Rutherford
Hi there, I would like to send an arbitrary file to a user. This file will be on the server in the PHP directory. I will also want to rename it before it is sent, but keep the old file with the old filename. Any help is appreciated... Thanks, Grant -- Grant Rutherford Iders Incorporated 600A

Re: [PHP] dir size

2003-10-03 Thread Gabriel Guzman
On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > [snip] > > is it possible to count a size of a dir and all sub dirs in php ? and > > if, > > how? > > [/snip] > > > > $foo = exec("du -h"); > > Hmmm this solution would appear to incl

[PHP] Re: mail() function, how to get it work?

2003-10-03 Thread Manuel Lemos
Hello, On 10/03/2003 12:44 PM, Kristian Snabb wrote: How do I set up the mail() function in php.ini. How do I define the username and password? My smtp service requires me to log on. I'm using Apache 2.0.47 on WinXP Pro. There is no way to set SMTP authentication using the mail() function. You

RE: [PHP] User authentication

2003-10-03 Thread Chris Shiflett
--- Jeff McKeon <[EMAIL PROTECTED]> wrote: > Well both variables $userid and $userpassword are bounced off of a > user database table, if the username/password don't match then the > session variables are cleared with a session_destroy() call. Is that > a good enough validation? Yes, as long as y

Re: [PHP] dir size

2003-10-03 Thread Curt Zirzow
* Thus wrote Ms Carlsson ([EMAIL PROTECTED]): > is it possible to count a size of a dir and all sub dirs in php ? and if, > how? Dir size is rather vague. Are you wanting how many items are in the dir? or how many bytes is allocated for it? or how many bytes are actually used in the dir? What i

[PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
Ok, I've got the user authentication thing down and now I'm continuing to build my trouble ticket tracking system. So from a "customer profile" page there is a link to "Open Ticket" which brings up a page to open a trouble ticket. [html code] HREF=./open_ticket.php?custid=$custid&custname=$cus

Re: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 15:02, Gabriel Guzman wrote: > On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > > [snip] > > > is it possible to count a size of a dir and all sub dirs in php ? and > > > if, > > > how? > > > [/snip] > > > >

RE: [PHP] User authentication

2003-10-03 Thread Jeff McKeon
Yes, I'm the one creating the accounts in the database, users can't create their own accounts nor do they have permissions to create new users. Thanks! Jeff > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 3:09 PM > To: Jeff McKeon;

RE: [PHP] dir size

2003-10-03 Thread Jay Blanchard
[snip] > > > $foo = exec("du -h"); > > > > Hmmm this solution would appear to include the file sizes :D > > man du :D et du? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User Authentication Continued....

2003-10-03 Thread Kris Yates
I guess you would either need to make the vars global or else keep redeclaring them. Obviously, redeclaring them in each function $var=$_GET["whatever"] is technically the more secure method. Kris Jeff McKeon wrote: Ok, I've got the user authentication thing down and now I'm continuing to bu

Re: [PHP] dir size

2003-10-03 Thread Nathan Taylor
Hey, I think I mis-understood you and my first version didn't do what you want, so I added what you needed. 0) { $open2 = opendir($directory); while($folders = readdir($open2)) { $folder = $directory."/".$folders; if($folders == ".." || $folders == ".") continue; if(is_dir($fol

Re: [PHP] User Authentication Continued....

2003-10-03 Thread Chris Shiflett
--- Jeff McKeon <[EMAIL PROTECTED]> wrote: > The problem I'm having is with the $_GET variables. I guess I'm not > declaring them correctly. Do I need to set them as soon as the page > loads, and outside of any functions like so.. > > [code start] > $custid = $_GET['custid']; > $custname = $_GET['

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Ryan A
Hey Curt, Just had a look at it, really cool stuff. If you decide to release the code let me know as i am sure I (and quite a few others) will learn a few things from it, if not, its still a very very nice bunch of scripts. While there I had a funny thought, if for whatever reason the php list cl

[PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
Hi! I tried out the Free PDF Library for creating the PDF at www.fpdf.org and it showed the php function, Image() and I read the documentation on this Image() on what paramenters are being used inside this function but what I found instead is that the X,Y coordinate is specified only from the

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Jason Wong
On Saturday 04 October 2003 04:03, Scott Fletcher wrote: > I tried out the Free PDF Library for creating the PDF at www.fpdf.org > and it showed the php function, Image() and I read the documentation on > this Image() on what paramenters are being used inside this function but > what I found i

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > While there I had a funny thought, if for whatever reason the php list > closes downJohn Holmes is probably gonna kill himself :-D with the spare > time he will suddenly find himself having! Naa... I'd just go learn ASP, since pigs would be flying and all.

  1   2   >