[PHP] calling include inside a function?

2003-12-11 Thread Louie Miranda
I can't call an include inside a function, is this possible? -- function elo() { include (what.txt); } -- even -- $point = include (what.txt); function elo() { echo $point; } -- -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] calling include inside a function?

2003-12-11 Thread Louie Miranda
Its possible -- - Louie Miranda http://www.axishift.com - Original Message - From: Louie Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 3:34 PM Subject: [PHP] calling include inside a function? I can't call an include inside a function, is this

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

2003-12-11 Thread Justin Patrin
Al wrote: 4) I'd love to see a PEAR IM module a la PerlMagick (but I haven't even looked yet, so please don't flame me for missing something obvious). One of these days I'll have The Great Rewrite and that will go in then. I'd love to be rid of the system() calls to convert and mogrify. The

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

2003-12-11 Thread Justin Patrin
Justin Patrin wrote: imagepng($ih, $dir.basename($file, $fileinfo['extension']).'png'); Oops, the above line should probably be: imagepng($ih, $dir.'-watermark'.basename($file, $fileinfo['extension']).'png'); so as not to trample your previous files (if any are pngs). -- paperCrane

Re: [PHP] Error that I can't find causing header() to fail

2003-12-11 Thread Justin Patrin
Rogue wrote: Yes. The html is after the call to header(). I am very clear on header() now :) That isn't the problem since the header() should be called way before any output... this is something bizarre here... The offending code is a block right smack in the middle of a bunch of other html

[PHP] Re: treu type fonts

2003-12-11 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... G'day all I was wandering I have php installed with GD with freetype fonts compiled in I ran this php script ?php header(Content-type: image/gif); $im = imagecreate(400,30); $white = imagecolorallocate($im, 255,255,255);

[PHP] Need help with UPDATE and DELETE

2003-12-11 Thread irinchiang
Hi all, 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 times but can't spot any error. Anyone can help?? Below is a snip of the code:

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

2003-12-11 Thread Galen
I've been doing PHP for a pretty good while now, and I've been able to solve most of my own problems. Before I spend hours troubleshooting this one, I think I should ask the list: I have a script that accepts large files (images) and inserts them into a MySQL table. The images are manipulated

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

2003-12-11 Thread John Clegg
Hi 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++; Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-12-11 Thread Rich Gray
I have a script that accepts large files (images) and inserts them into a MySQL table. The images are manipulated and whatnot, no problems at all getting the image into a string and running addslashes() on it. Then I go and use it with a mysql query. This is something I've coded dozens of

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

2003-12-11 Thread Rich Gray
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++; Hi John Well you can specify the column as auto_increment to let MySQL handle the incrementation else I suppose - mysql_query('update mytable set

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

2003-12-11 Thread Terence
There's an autoincrement feature for mysql colums, why don't you consider that? CREATE TABLE auto_increment (id INT (4) NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), UNIQUE(id), INDEX(id)) - Original Message - From: John Clegg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

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 times but

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 forms

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 scripts

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] 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] 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

[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.net/) To

[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

[PHP] PHP Logging problem

2003-12-11 Thread Edward Prendergast
Hi, Im 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

[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 form name='station_change' method='post' action='station_change.php'; echo TABLE BORDER=0; while ($status_array =

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 not

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

[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

[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] [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

[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

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

[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

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, Its

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 ?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 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] 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] Array problem....

2003-12-11 Thread Jas
Well just so you understand why I needed something like that here is the finished result below ?php 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)

[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,

Re: [PHP] XML Strategdy

2003-12-11 Thread Matt Matijevich
snip 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

[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

[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: psql:execute-query connection=krysalis

[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: 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] wrote

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

2003-12-11 Thread Pablo Gosse
snip 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

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] 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

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

[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.

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

RE: [PHP] calling include inside a function?

2003-12-11 Thread Chris W. Parker
Louie Miranda mailto:[EMAIL PROTECTED] 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] 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

[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

RE: [PHP] Array problem....

2003-12-11 Thread Chris W. Parker
Jas mailto:[EMAIL PROTECTED] 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 to change my

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 to

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

2003-12-11 Thread Chris W. Parker
Daniel Guerrier mailto:[EMAIL PROTECTED] 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] 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] 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

[PHP] Uploaded images

2003-12-11 Thread Jarmila Kedrtov
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

[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

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 passed in

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?

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] 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

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] 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

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

2003-12-11 Thread Jas
ex. ?php 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

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: I

[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:

[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

Re: [PHP] rss/rdf feed classes

2003-12-11 Thread Matt Matijevich
snip 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... /snip 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

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 snip I'm

[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

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

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

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, Rolf

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

[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

[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

[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

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)

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

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] 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 to 1 2

[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

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:

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 ideas?

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 finding

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

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 10:49 am, Pablo Gosse wrote: snip 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

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] 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

[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,2,3,4)

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

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

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

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 mailto:[EMAIL PROTECTED] on Wednesday, December 10, 2003 11:40 PM said: Its possible How did you solve your problem? Chris. -- Don't

[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-- a href=http://www.yourserver.com/yourpage.htm#RowNum3; target=docJump/a iframe id=doc name=doc src=http://www.yourserver.com/yourpage.htm;/iframe --snip-- Where yourpage.htm have this a href='#' name='RowNum3'blah blah/a So, question here is

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

2003-12-11 Thread Bronislav Kluka
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, December 11,

RE: [PHP] Re: PHP Math Question

2003-12-11 Thread Bronislav Kluka
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

[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

Re: [PHP] calling include inside a function?

2003-12-11 Thread Louie Miranda
Just put the include inside the function. ?php post(); function post() { print font size=\2\1/fontbr; include(oongae.txt); echo br; print font size=\2\2/fontbr; } ? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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 an

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

  1   2   >