Re: [PHP] Re: PHP Math Question

2003-12-11 Thread Eric Bolikowski
"Website Managers.Net" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I like Eric's idea of showing the values and added a form to it so you can select the number of items to show before running the script. " Maximum Number to Show: "; } else { for($i = 1, $j = 1; $i <= $_POST["i"

[PHP] Lexical PHP stuff? (Thesaurus and similar)

2003-12-11 Thread Galen
I'm looking for information on lexical databases and PHP. Specifically, I want to be able to use a lexical database efficiently with PHP. I've found this: http://www.foxsurfer.com/wordnet/ It allows PHP to access WordNet. The biggest problem I see with it is that it requires GD functions not be

Re: [PHP] Palm OS Processor

2003-12-11 Thread Galen
If I'm not mistaken, I would need to do a bunch of re-writing of PHP to get it to compile for the Palm, and I'd probably need to write a front end of some type. I'm not that kind of programmer, but I could deal with compiling from source myself if it were that simple. Thoughts? Comments? Anybod

[PHP] Re: passing arrays?

2003-12-11 Thread Al
> $level = '$level_' . $_SESSION['user']['level']; > //Where $_SESSION['user']['level'] can equal "1" or "2" > > $level_1 = array("PN", "GALUP", "VP", "PUBUP", "STATS", "MCI", "CONLIST", > "CP", "OAFS", "LO"); > $level_2 = array("PN", "GALUP", "VP", "PUBUP", "MCI", "CONLIST", "CP", > "OAFS", "LO");

RE: [PHP] passing arrays?

2003-12-11 Thread motorpsychkill
Thanks Tom, that worked! I knew that $$level had something to do with it, just wasn't sure what exactly. Thanks again. -m -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 9:34 PM To: motorpsychkill Subject: Re: [PHP] passing arrays? Always

Re: [PHP] Re: PHP Math Question

2003-12-11 Thread Rob Bryant
"Mike D" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm am completely stumped on a seemingly simple math formula I need to find a way to map a set of numbers up to 4 (e.g. 1,2,3,4 or 1,2) to any number in a range of up to 10,000 (ideally, unlimited). Such that, (e.g. 1,2,3,4)

[PHP] passing arrays?

2003-12-11 Thread motorpsychkill
"; print ""; print "" . constant($val) . ""; print ""; } ?> Warning: Variable passed to each() is not an array or object in D:\projects\kf10\test65.php on line 43 Line 43 in the error output refers to the "while" control structure. I can not seem to define $level as

[PHP] Re: why "imap_open " delay a long time ?

2003-12-11 Thread Mike
it could be happening for many reasons 1) network problems 2) server problems 3) client problems try to get a copy of snort and watch the connection negotiating in real-time, you will be able to see at what point the connection slows, and try to solve the problem from there try a traceroute fro

[PHP] why "imap_open " delay a long time ?

2003-12-11 Thread yt1
hi I have worked with imap functions for a long time . When I use "imap_open" connecting to a imap server ,it always takes a 20 second delay. I use like this : why this happen?

[PHP] why Imap_open delay ??

2003-12-11 Thread yt1
hi When connecting to a imap server ,it always takes a 20 second delay. I use like this : why this happen???

Re: [PHP] Re: PHP Math Question

2003-12-11 Thread Website Managers.net
I like Eric's idea of showing the values and added a form to it so you can select the number of items to show before running the script. " Maximum Number to Show: "; } else { for($i = 1, $j = 1; $i <= $_POST["i"]; $i++, $j++){ if($j == 5){ $j = 1; print "\n"; } print $i." is to ".$j."

Re: [PHP] Php ftp client recommendations?

2003-12-11 Thread Raditha Dissanayake
Hi, I don't have a stable php ftp client, but i do have an article that shows you how one can be written very quickly http://www.raditha.com/php/ftp Unless you are working behind a firewall i don't see why you want to use php for ftp. hope this helps. MIKE YRABEDRA wrote: Can anyone recommend

Re: [PHP] Re: rss/rdf feed classes

2003-12-11 Thread daniel
May i ask what the difference is between rss and xml ? Also will these classes generate it from the database ? > Hello, > > On 12/11/2003 04:41 PM, Rolf Brusletto wrote: >> I'm looking for a class that returns a rss/rdf feed with each of the >> items as an array, or suggestions on how to items into

Re: [PHP] calling include inside a function?

2003-12-11 Thread Louie Miranda
Just put the include inside the function. 1"; include("oongae.txt"); echo ""; print "2"; } ?> -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Link Problems

2003-12-11 Thread Steve Turner
Hi, I am having a problem with sessions. On my testing machine my script works perfectly. However on the remote server it tries to pass the session id in the url even though I am accepting cookies. It is messing up all my links since it puts PHPSESSID=6a4626fc1cde0fb228fcb3ebe5587ffd in front o

RE: [PHP] Re: PHP Math Question

2003-12-11 Thread Bronislav Klučka
I do not know if I understand well, but what about $group=$number % 4; if ($group==0) $group=4; Brona > -Original Message- > From: Eric Bolikowski [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 10:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: PHP Math Question > >

RE: [PHP] How to use anchor with php post string to jump to a page???

2003-12-11 Thread Bronislav Klučka
I do not know, but you can try it yourselves: 1/ create form with action="http://www.yourserver.com/yourpage.htm#RowNum3"; method="get" 2/ make some input fields and submit this form ::) Brona > -Original Message- > From: Scott Fletcher [mailto:[EMAIL PROTECTED] > Sent: Thursday, Decembe

[PHP] How to use anchor with php post string to jump to a page???

2003-12-11 Thread Scott Fletcher
Sample script I have here is this... --snip-- http://www.yourserver.com/yourpage.htm#RowNum3"; target="doc">Jump http://www.yourserver.com/yourpage.htm";> --snip-- Where yourpage.htm have this "blah blah" So, question here is how do I pass the post string to the Iframe, like "&color=red" in

Re: [PHP] calling include inside a function?

2003-12-11 Thread Kristopher Spencer-Yates
I posted a response to you guys on the list. Let me know if this is what you were talking about or not. Kris Chris W. Parker wrote: Louie Miranda on Wednesday, December 10, 2003 11:40 PM said: Its possible How did you solve your problem? Chris. -- Don't

Re: [PHP] Re: rss/rdf feed classes

2003-12-11 Thread Rolf Brusletto
Manuel Lemos wrote: Hello, On 12/11/2003 07:39 PM, Rolf Brusletto wrote: I'm looking for a class that returns a rss/rdf feed with each of the items as an array, or suggestions on how to items into an array... I am not sure if you want to generate or parse a RSS feed. Either way you may wan

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Justin Patrin
Jas wrote: Combination of session vars and cookie vars... example... [login page] sets cookie with auth=0 (variable) sets session with auth=0 (variable) [logged in page(s)] sets cookie with auth=1 (variable -client side) sets session with auth=1 (variable -server side) hash of users password as cl

Re: [PHP] Re: rss/rdf feed classes

2003-12-11 Thread Manuel Lemos
Hello, On 12/11/2003 07:39 PM, Rolf Brusletto wrote: I'm looking for a class that returns a rss/rdf feed with each of the items as an array, or suggestions on how to items into an array... I am not sure if you want to generate or parse a RSS feed. Either way you may want to look at it here whe

[PHP] Re: PHP Math Question

2003-12-11 Thread Eric Bolikowski
"Mike D" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm am completely stumped on a seemingly simple math formula > > I need to find a way to map a set of numbers up to 4 (e.g. 1,2,3,4 or 1,2) > to any number in a range of up to 10,000 (ideally, unlimited). Such that, > > (e.g. 1

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Jas
Combination of session vars and cookie vars... example... [login page] sets cookie with auth=0 (variable) sets session with auth=0 (variable) [logged in page(s)] sets cookie with auth=1 (variable -client side) sets session with auth=1 (variable -server side) hash of users password as client side va

Re: [PHP] Re: rss/rdf feed classes

2003-12-11 Thread Rolf Brusletto
Manuel Lemos wrote: Hello, On 12/11/2003 04:41 PM, Rolf Brusletto wrote: I'm looking for a class that returns a rss/rdf feed with each of the items as an array, or suggestions on how to items into an array... I am not sure if you want to generate or parse a RSS feed. Either way you may want

Re: [PHP] (0t) SSH cp (copy help)

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 10:49 am, Pablo Gosse wrote: > > Hi, > I'm on a win2k pro machine and need to copy a modified httpd.conf file > to my > linux box, > I dont really know much about SSH and just learned a bit with my pals > help > (google) > > I am able to navigate around the directories

Re: [PHP] Palm OS Processor

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 03:37 pm, Galen wrote: > I would love one of these too! PHP programming in my pocket! And how > about a mini database for Palm OS also? (SQLite?) > > Anybody know anything more about this? GCC on Palm. Yumm. http://sourceforge.net/projects/prc-tools/ > > I'm not findi

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 04:17 pm, ROBERT MCPEAK wrote: > I've dug around quite a bit and can't figure out how I might use PHP to > handle an .htaccess login. For example, if I wanted a script to log in the > user, rather than the user logging in with the standard .htaccess dialog. > > Any ide

RE: [PHP] Palm OS Processor

2003-12-11 Thread Daevid Vincent
Dunno about Palm, but you could get a Sharp Zaurus (which runs linux) and put mysql, apache, php etc on there. It also has a Palm emulator... Daevid Vincent http://daevid.com > -Original Message- > From: Galen [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 12:37 PM > To

[PHP] php .htaccess autologin

2003-12-11 Thread ROBERT MCPEAK
I've dug around quite a bit and can't figure out how I might use PHP to handle an .htaccess login. For example, if I wanted a script to log in the user, rather than the user logging in with the standard .htaccess dialog. Any ideas? Since the .htaccess vars are stored in the browser, should I b

Re: [PHP] PHP Math Question

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 03:33 pm, Mike D wrote: > I'm am completely stumped on a seemingly simple math formula > > I need to find a way to map a set of numbers up to 4 (e.g. 1,2,3,4 or 1,2) > to any number in a range of up to 10,000 (ideally, unlimited). Such that, > > (e.g. 1,2,3,4) > > 1 is

Re: [PHP] Compiling...hellllp!

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 09:59 am, you wrote: > Hi, > Problem is, I want to compile on my win2k pro machine for the linux > dedicated machine.. Okay, it's called cross-compiling, and it's a huge pain in the arse. My advice: don't do it. If you don't have a lot of experience with GCC, it's

Re: [PHP] Palm OS Processor

2003-12-11 Thread Galen
I would love one of these too! PHP programming in my pocket! And how about a mini database for Palm OS also? (SQLite?) Anybody know anything more about this? I'm not finding much with Google that seems relevant for PHP running on the Palm. -Galen On Dec 11, 2003, at 7:47 AM, Stephen Craton wr

Re: [PHP] PHP's MySQL Query Length Limit? (Long SQL failing!)

2003-12-11 Thread Galen
Yes, it's the max_allowed_packet size! I already saw that variable and assumed it was related to packet length - as in TCP/IP packet length - not query length. It's all working now. Thanks! -Galen On Dec 11, 2003, at 2:36 AM, Rich Gray wrote: I have a script that accepts large files (images)

[PHP] PHP Math Question

2003-12-11 Thread Mike D
I'm am completely stumped on a seemingly simple math formula I need to find a way to map a set of numbers up to 4 (e.g. 1,2,3,4 or 1,2) to any number in a range of up to 10,000 (ideally, unlimited). Such that, (e.g. 1,2,3,4) 1 is to 1 2 is to 2 3 is to 3 4 is to 4 5 is to 1 6 is to 2 7 is to 3

[PHP] Re: rss/rdf feed classes

2003-12-11 Thread Manuel Lemos
Hello, On 12/11/2003 04:41 PM, Rolf Brusletto wrote: I'm looking for a class that returns a rss/rdf feed with each of the items as an array, or suggestions on how to items into an array... I am not sure if you want to generate or parse a RSS feed. Either way you may want to look at it here where

[PHP] Re: XML Strategdy

2003-12-11 Thread Manuel Lemos
Hello, On 12/11/2003 12:57 PM, Mark Roberts wrote: I am about to embark on a project that requires me to access several mysql files (customer order entry), gather the information and output an XML formatted file that will be used as an input file to another accounting application. Question is this

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
Mike, I hope you mean session_start(). Yes, I did. Getting a bit dyslexic nowadays. Well, you would, because PHP would use the value from the PHPSESSID= URL parameter. ... except that on the second call, the url (as displayed by the browser) does not contain the PHPSESSID parameter, yet I am

Re: [PHP] rss/rdf feed classes

2003-12-11 Thread Ray Hunter
Check this out: http://builder.com.com/5100-6374-5109834.html?tag=sc -- Ray On Thu, 2003-12-11 at 11:41, Rolf Brusletto wrote: > Hey all - > > I'm looking for a class that returns a rss/rdf feed with each of the > items as an array, or suggestions on how to items into an array... > > Tia, >

Re: [PHP] PHP-Mysql problem

2003-12-11 Thread Ray Hunter
> I just installed RedHat Linux 9.0 with Apache/Php/MySql for a project. I > have Apache and PHP running. However, PHP does not have the Mysql module?? > installed and this is the key to our project. Could someone point me in the > right direction to recompile PHP with proper MySql module inc

Re: [PHP] PHP-Mysql problem

2003-12-11 Thread Blake Schroeder
This is a good tutorial and it starts off with installiing php and mysql http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html Robin Kopetzky wrote: Good Afternoon!! I just installed RedHat Linux 9.0 with Apache/Php/MySql for a project. I have Apache and PHP runni

[PHP] PHP-Mysql problem

2003-12-11 Thread Robin Kopetzky
Good Afternoon!! I just installed RedHat Linux 9.0 with Apache/Php/MySql for a project. I have Apache and PHP running. However, PHP does not have the Mysql module?? installed and this is the key to our project. Could someone point me in the right direction to recompile PHP with proper MySq

RE: [PHP] rss/rdf feed classes

2003-12-11 Thread Daevid Vincent
We have pretty good luck with http://www.fase4.com/rdf/ Daevid Vincent http://daevid.com > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 10:46 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] rss/rdf feed classes > > > I'm l

Re: [PHP] rss/rdf feed classes

2003-12-11 Thread Matt Matijevich
I'm looking for a class that returns a rss/rdf feed with each of the items as an array, or suggestions on how to items into an array... try google and freshmeat.net You should be able to find plenty of examples and classes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] can tomcat server run PHP??

2003-12-11 Thread Sheawh
Can i run PHP using Apache tomcat server?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] rss/rdf feed classes

2003-12-11 Thread Rolf Brusletto
Hey all - I'm looking for a class that returns a rss/rdf feed with each of the items as an array, or suggestions on how to items into an array... Tia, Rolf Brusletto [EMAIL PROTECTED] www.phpExamples.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 18:01, Peter Walter wrote: > Mike, > > Thanks for the additional explanation, and I understand the > sequence of events as you described. However, please bear > with me a bit - the results I am getting do not quite match > your explanation. Let me clarify what I am doing: >

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
ex. function rand($attack,$skills,$damage,$armor) { $do = array($attack,$skills,$damage,$armor); finish=false while (!finish) { $do = mt_rand(mktime(microtime(1,100)); } while($do = list($attack,$skills,$damage,$armor)) { calculate total damage for opponent } } ?> I read that the use of mt_rand

Re: [PHP] Palm OS Processor

2003-12-11 Thread David T-G
Stephen -- ...and then Stephen Craton said... % % Hello, Hi! % % I was just wondering if there were such a program for Palm OS 4.1 that processes PHP code. Just wondering so that I can maybe make some complex calculator functions on it and use it for school work or whatever else may come my

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
Well have you tried to define one function to include the for all variables that require mt_rand()? Jas Brent Baisley wrote: Personally, I wouldn't worry about it unless it is actually interfering with other processes. The OS will give any process or thread 100% of the CPU if there is nothing

Re: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Peter Walter
Mike, Thanks for the additional explanation, and I understand the sequence of events as you described. However, please bear with me a bit - the results I am getting do not quite match your explanation. Let me clarify what I am doing: I have a page (index.php) which starts out by calling start

Re: [PHP] Uploaded images

2003-12-11 Thread David T-G
Jarmila -- ...and then Jarmila Kedr_tová said... % % I would like to know how to insert uploaded file(image) into database % (mysql) into Blob column type. As I upload the file, convert it into string % by using file_get_contents function, there are many aphostrophes in it and % inserting is not

RE: [PHP] Uploaded images

2003-12-11 Thread Jay Blanchard
[snip] I would like to know how to insert uploaded file(image) into database (mysql) into Blob column type. As I upload the file, convert it into string by using file_get_contents function, there are many aphostrophes in it and inserting is not possible. Is there some way to solve this problem? For

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 16:54, Peter Walter wrote: > Jason, > > Thanks for your help. It is a little clearer to me now. > However, I have > visited php sites that *claim* to be using session management > but where > the links do not have the session id appended, and there are no > variables being pas

[PHP] ldap_modify(): Modify: Server is unwilling to perform

2003-12-11 Thread Phil Dowson
Hi, I am trying to write a script that will allow users within the Windows 2000 Active Directory to be able to change thier personal details on an intranet website. I have included the script I am using below. The first part of the script commented as "Search Script" works flawlessly, even though

[PHP] Uploaded images

2003-12-11 Thread Jarmila Kedrštová
I would like to know how to insert uploaded file(image) into database (mysql) into Blob column type. As I upload the file, convert it into string by using file_get_contents function, there are many aphostrophes in it and inserting is not possible. Is there some way to solve this problem? For me is

Re: [PHP] Array problem....

2003-12-11 Thread Jas
Yeah I understand that and it would be perfect if I only had to call this type of function once on a page... and on any other pages that need something like this I will do it that way but with the counter set to 0 or whatever number I choose which is a sort of view all page so your solutions wo

Re: [PHP] Php ftp client recommendations?

2003-12-11 Thread David T-G
Mike -- ...and then MIKE YRABEDRA said... % % Can anyone recommend a good, secure, stable php ftp client? What is a "php ftp client"? The server-side php uses its own ftp connection or could use curl or the like to get files, while from your desktop you'll use ftp or ncftp or winf or cuteftp or

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-11 Thread Chris W. Parker
Daniel Guerrier on Thursday, December 11, 2003 9:08 AM said: > Why not just maintain carts for users with accounts > and maintain them indefinately. Users with out > accounts can have there carts stored in a session and > will become invalid when the session expires

Re: [PHP] how to determine if shopping cart has been abandoned?

2003-12-11 Thread Daniel Guerrier
Why not just maintain carts for users with accounts and maintain them indefinately. Users with out accounts can have there carts stored in a session and will become invalid when the session expires. --- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Hey there everyone. > > I haven't had time much

RE: [PHP] Array problem....

2003-12-11 Thread Chris W. Parker
Jas on Thursday, December 11, 2003 7:21 AM said: > Well just so you understand "why" I needed something like that here is > the finished result below [snip] > $i = 0; > while(list(...) = mysql_fetch_row(...)) { > $_SESSION[$i] = "..."; > $i++; > } I want t

[PHP] Php ftp client recommendations?

2003-12-11 Thread MIKE YRABEDRA
Can anyone recommend a good, secure, stable php ftp client? And please save the "look at hotscripts" responses. I am looking for actual user input. Thanks. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
Jason, Thanks for your help. It is a little clearer to me now. However, I have visited php sites that *claim* to be using session management but where the links do not have the session id appended, and there are no variables being passed in the url for links. The url is always in the form "www

RE: [PHP] calling include inside a function?

2003-12-11 Thread Chris W. Parker
Louie Miranda on Wednesday, December 10, 2003 11:40 PM said: > Its possible How did you solve your problem? Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing

Re: [PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Brent Baisley
Personally, I wouldn't worry about it unless it is actually interfering with other processes. The OS will give any process or thread 100% of the CPU if there is nothing else that needs the CPU. What does you context switching numbers look like? If there is a lot of context switching, then your

[PHP] Re: How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread Jas
Can we get the code posted so we know what is going on? Sometimes there are a dozen different ways to accomplish the same objective and looking at what your code is doing may assist us in assisting you. Jas Taualex wrote: Hello! I'm having a problem with my php script on my linux web server. I

[PHP] Re: Age from birthdate?

2003-12-11 Thread pete M
have you looked at to_days() and to_years() in the mysql manual Dvdmandt wrote: How would I get the age of someone if I store the birthdate in a date field? I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born before 1970... :p I m

Re: [PHP] (0t) SSH cp (copy help)

2003-12-11 Thread David T-G
Ryan -- Let's see, here... You're planning to write an scp replacement in php and so this is on topic, right? ;-) ...and then Ryan A said... % % Hi, % I'm on a win2k pro machine and need to copy a modified httpd.conf file to my % linux box, Step 1: reformat your w2k box and run linux. All pro

Re: [PHP] Images in MySQL vs directory/file?

2003-12-11 Thread Derrick Fogle
Thanks for the feedback. Just to clear up a couple questions regarding my particular needs... 1. server has *plenty* of capacity 2. traffic is *very* low; max load would be 20 visitors looking at 4 images apiece over a 4-hour period 3. images will only be retrieved once or twice by one or two di

RE: [PHP] (0t) SSH cp (copy help)

2003-12-11 Thread Glenn E. Sieb
Or go up to http://winscp.vse.cz/ Great little program :) G. -- Glenn E. Sieb System Administrator Lumeta Corporation +1 732 357-3514 (V) +1 732 564-0731 (Fax) > -Original Message- > From: Pablo Gosse [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 10:50 AM > To: Ryan A

RE: [PHP] (0t) SSH cp (copy help)

2003-12-11 Thread Pablo Gosse
Hi, I'm on a win2k pro machine and need to copy a modified httpd.conf file to my linux box, I dont really know much about SSH and just learned a bit with my pals help (google) I am able to navigate around the directories, get a directory listing and delete...am unable to copy files from my harddi

[PHP] Re: PHP, XML, UTF-8

2003-12-11 Thread Lucian Cozma
Answer: Multi-Byte String Functions. You could take a look at the function: string mb_convert_encoding ( string str, string to-encoding [, mixed from-encoding] ) You must have php_mbstring extension enabled in your php.ini file. Regards, Lucian COZMA "Russell P Jones" <[EMAIL PROTECTED]> wrot

[PHP] Palm OS Processor

2003-12-11 Thread Stephen Craton
Hello, I was just wondering if there were such a program for Palm OS 4.1 that processes PHP code. Just wondering so that I can maybe make some complex calculator functions on it and use it for school work or whatever else may come my way. Thanks! Stephen Craton

[PHP] Re: XML Strategdy

2003-12-11 Thread Lucian Cozma
Try Krysalis (http://www.interakt.ro/products/Krysalis/) if you're trying something more complex. It's a PHP/XML platform. If you want simple stuff (just generate XML's), I recomend doing for yourself a custom class/function for it. Here is a code sample: select * from department_dep inner j

[PHP] (0t) SSH cp (copy help)

2003-12-11 Thread Ryan A
Hi, I'm on a win2k pro machine and need to copy a modified httpd.conf file to my linux box, I dont really know much about SSH and just learned a bit with my pals help (google) I am able to navigate around the directories, get a directory listing and delete...am unable to copy files from my harddis

Re: [PHP] XML Strategdy

2003-12-11 Thread Matt Matijevich
Question is this. As a seasoned developer, my natural instinct is to just write a script(s) to access all the information that I need and write the appropriate information out to the file. Is there a better way to do this? Is there some type of application that has been developed that will take a

[PHP] How to reduce CPU usage in a cycle? [ag]

2003-12-11 Thread TauAlex
Hello! I'm having a problem with my php script on my linux web server. In that script there is a cycle with some math calculations (about ~30 steps), the execution time is less 1 second, but the script loads the server CPU up to 90%... I've optimized script already to the minimum math function, an

Re: [PHP] Array problem....

2003-12-11 Thread Jas
Well just so you understand "why" I needed something like that here is the finished result below function show() { require 'path/to/dbconnector.inc'; $sql_subs = mysql_query("SELECT * FROM $t_02",$db)or die(mysql_error()); $i = 0; while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) =

Re: [PHP] Compiling...hellllp!

2003-12-11 Thread Ryan A
Hey David, Thanks, no offense taken. >HTH Sure did. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compiling...hellllp!

2003-12-11 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hi, Hi! % Problem is, I want to compile on my win2k pro machine for the linux % dedicated machine.. % I have never compiled php before, I got one of those "ready to go packages" % (PHP+MySql+Apache - in one .exe file) While it's not impossible, you

Re: [PHP] Re: Write on image in faint color

2003-12-11 Thread Ryan A
> And because I'm such a nice guy: > #!/usr/bin/php > //remember the trailing slash > $dir = '/path/to/files/'; > $text = 'www.example.com'; > $fontsize = 2;//1 - 5 > $dh = opendir($dir); > while(false !== ($file = readdir($dh))) { > if($file[0] != '.') { > echo 'Adding watermark to

Re: [PHP] Compiling...hellllp!

2003-12-11 Thread Ryan A
Hi, Problem is, I want to compile on my win2k pro machine for the linux dedicated machine.. I have never compiled php before, I got one of those "ready to go packages" (PHP+MySql+Apache - in one .exe file) Cheers, -Ryan > On Wednesday 10 December 2003 08:23 pm, Ryan A wrote: > > Hi, > > > >

[PHP] XML Strategdy

2003-12-11 Thread Mark Roberts
I am about to embark on a project that requires me to access several mysql files (customer order entry), gather the information and output an XML formatted file that will be used as an input file to another accounting application. Question is this. As a seasoned developer, my natural instinct is t

Re: [PHP] [OTHER TOPIC - Please Help] Looking for file sync software (Linux)

2003-12-11 Thread David T-G
Keith -- ...and then Keith said... % % Hi all, Hi! % % [Apologies for the off-topic question. Hope you will bear with me] % % Given that this is a PHP General newsgroup I figured there's a good chance Um, why? Do you expect to find such a tool written in php?? % someone here would know t

[PHP] PHP and Java

2003-12-11 Thread Mark Ackroyd
Hi, I am not so sure where the problem lies with this. I have installed JDK1.3.1 on a FreeBSD 4.9 server. It seems to work fine. I have written a small java program and it compiles and runs without any issues. I want to get the PHP intgration with java working, I must admit I know more about c

[PHP] [OTHER TOPIC - Please Help] Looking for file sync software (Linux)

2003-12-11 Thread Keith
Hi all, [Apologies for the off-topic question. Hope you will bear with me] Given that this is a PHP General newsgroup I figured there's a good chance someone here would know the answer to this question. Can anyone here recommend a file-sync application/package for Linux servers that has the follo

[PHP] Re: $_POST[$variable]

2003-12-11 Thread Christian Jancso
thx Mike that works :-) thx also to the others for their help :-)) Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_POST[$variable]

2003-12-11 Thread Mike
If you change the name of the data field to something[] then the $_POST['something'] will be an array containing your data The code you have will result in 2 fields (one hidden one normal) with the same name ($i), this will cause lots of problems It is not a good idea to give form fields numeri

Re: [PHP] $_POST[$variable]

2003-12-11 Thread Chris Garaffa
On Dec 11, 2003, at 8:02 AM, Christian Jancso wrote: Hi there, I have the following problem: How can I use variables in the $_POST statement? Here is my code: $old_station[$o] = $_POST['$i']; $new_station[$o] = $_POST['$i']; Christian, My biggest question is: What are $i and $o set to? Unless $i

Re: [PHP] $_POST[$variable]

2003-12-11 Thread CPT John W. Holmes
From: "Christian Jancso" <[EMAIL PROTECTED]> > I have the following problem: > How can I use variables in the $_POST statement? > Here is my code: > > $old_station[$o] = $_POST['$i']; > $new_station[$o] = $_POST['$i']; $old_station[$o] = $_POST[$i]; $new_station[$o] = $_POST[$i]; Variables are n

[PHP] $_POST[$variable]

2003-12-11 Thread Christian Jancso
Hi there, I have the following problem: How can I use variables in the $_POST statement? Here is my code: $old_station[$o] = $_POST['$i']; $new_station[$o] = $_POST['$i']; echo ""; echo ""; while ($status_array = mysql_fetch_array($status)) { $i++; echo ""; echo ""."";

[PHP] PHP Logging problem

2003-12-11 Thread Edward Prendergast
Hi, I’m having a problem when I try and log to a file. I cracked open /etc/php.ini and altered the following settings: error_reporting = E_ALL log_errors = On error_log = /path/to/file.htm The problem I'm having here is that file.htm produces one error when I reload apache - but isn't accepti

[PHP] Change html links according to returned result

2003-12-11 Thread PAUL FERRIE
Right here goes :( Just when i thougfht i had done everything that had to be done the client wants something else as well. that something else is another 2 tables in the database that are of a diffrent layout from the original 2. This means i need to build a few more pages with diffrent layouts t

[PHP] Re: question on which day is the first day of the week

2003-12-11 Thread Pavel Jartsev
>??? wrote: > > ... > How can readjust the date function to make each week start with Sunday, instead of Monday? > > > thank you http://www.php.net/manual/en/function.strftime.php Look at conversion specifiers like "%U" and "%W". -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.

Re: [PHP] question on which day is the first day of the week

2003-12-11 Thread David T-G
Hi! ...and then said... % % Dear Sir, % > % > In the computer's memory, I find out that the first day of the week is Monday. But actually, the first day of the week is Sunday, not Monday. When I try to use the date function to number the week, I find some difficulty. For example, the sec

Re: [PHP] Best way to increment an integer column in mysql

2003-12-11 Thread David T-G
John - ...and then John Clegg said... % % I was wondering if there is a php / mysql function call that will % increment an integer column in a database. % ie. the equivalent to %$foo++; I didn't see that, but you can at least let mysql do the math: update tablename set field = field + 1

Re: [PHP] Re: Write on image in faint color

2003-12-11 Thread David T-G
Justin -- ...and then Justin Patrin said... % % Al wrote: % % >The closest thing out there at the moment (that I know of) is a PHP % >extension available through PECL, the PHP extension library. According to ... % % Or, as was said long ago in this thread, you just use the PHP GD % extension,

RE: [PHP] Compiling...hellllp!

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 01:24, Ryan A wrote: > Hi, > > Its been quite some time since I have done any compiling, the last > time was java and before that C...which was years back. > > I want to install Turck MMCache for php on one of our new dedicated > servers as we will be running a crapload of sc

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Jason Wong
On Thursday 11 December 2003 14:16, Peter Walter wrote: > From the book "Core PHP programming", 3ed ; > > "As stated earlier, PHP sends session identifiers with cookies, but a > browser may refuse them. PHP can detect when a browser does not accept > cookies, and in this situation it modifies all

Re: [PHP] Need help with "UPDATE" and "DELETE"

2003-12-11 Thread Jason Wong
On Thursday 11 December 2003 17:45, [EMAIL PROTECTED] wrote: Please post php/db related questions to the php-db list! >I am trying to do a "Modify(UPDATE)" and DELETE but I keep on > getting DB ERROR whenever I clicked on the links to "Modify" and > "Delete"...Gone thru my code a few time

  1   2   >