Re: [PHP] Segmentation fault problem

2004-01-22 Thread Martin Luethi
each php function is executed by the internal function execute() please include the details about this frames also (configure php with --enable-debug first) e.g.: (gdb) frame 6 output... (gdb) print (char *)(executor_globals.function_state_ptr-function)- common.function_name output... with this

Re: [PHP] Regexp help (simple)

2004-01-22 Thread Dagfinn Reiersl
Victor Spng Arthursson wrote: Have been playing around a bit with this code, but I can't get it to work with international characters For example, if I feed my function: function split_bokid($bokid) { if (preg_match('/^([a-z]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/

Re: [PHP] web page thumbs

2004-01-22 Thread Eli Hen
I asked it before, and got a fine tool at this site: http://www.babysimon.co.uk/khtml2png/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP 5 Book

2004-01-22 Thread Jay Blanchard
[snip] Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless, of course, anyone knows how to do this without a CREATE VIEW statement. [/snip] It is called a SELECT

[PHP] Re: PHP 5 Book

2004-01-22 Thread rush
Donald Tyler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyone know if Rasmus (or anyone for that matter) is writing a book on PHP 5? And when it might be available? Core PHP Programming third edition by Leon Atkinson covers the PHP 5 (in state it was when the book went to

Re: [PHP] PHP and email attachments

2004-01-22 Thread David T-G
Tim, et al -- ...and then Tim Thorburn said... % % Hi, Hi! % % A client of mine asked today if I could setup their current mass mailer to % send out attachments - I've never sent attachments with the mail() function % before, but before we get into that ... I wanted to ask an opinion of

[PHP] Html forms on windows servers

2004-01-22 Thread Carolina Silva Animas
Hi This is my first experience with php... and I'm already having trouble... I´m working on an html form for a website which uses php to create an e-mail. My 'Submit' button has a php document as action. It works great on my unix server, but when I try to submit the form on my windows server,

Re: [PHP] PHP and email attachments

2004-01-22 Thread Raditha Dissanayake
I get over a thousand emails a day (29382 so far this month). When I get an important email that requires me to drag out the web browser, it immediately becomes pretty unimportant. not to mention the countless mails we recieved from you a couple of months ago on this mailing lists topic in both

Re: [PHP] Regexp help (simple)

2004-01-22 Thread Victor Spång Arthursson
2004-01-22 kl. 10.40 skrev Dagfinn Reiersl: I assume you mean: $test = split_bokid(12345); Yes! I don't know. It works fine on my computer. The letters display correctly on the command line and even in Mozilla. Hmmm try the following:

[PHP] session variables

2004-01-22 Thread Diana Castillo
If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web :

Re: [PHP] Html forms on windows servers

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 12:24:24 AM, you wrote: CSA Hi CSA This is my first experience with php... and I'm already having trouble... CSA I´m working on an html form for a website which uses php to create an CSA e-mail. My 'Submit' button has a php document as action. It works great on CSA

Re: [PHP] session variables

2004-01-22 Thread Matt Matijevich
snip If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? /snip Yes, look at the session.use_trans_sid variable. http://www.php.net/session If cookies are disabled, php will pass the session id as a ur variable or

[PHP] RE: Form woes

2004-01-22 Thread Alex Hogan
Thanks Paul..., That makes a lot of sense. My first thought is to place the files in question in a particular subdirectory and do a readdir to populate the array. -Original Message- From: Paul Chvostek [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 11:18 PM To: Alex

Re: [PHP] session variables

2004-01-22 Thread John Nichel
Diana Castillo wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email:

Re: [PHP] PHP 5 Book

2004-01-22 Thread Ben Ramsey
VIEWs are those nice things that PostgreSQL includes that MySQL doesn't yet. ;P Jay Blanchard wrote: [snip] Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless,

Re: [PHP] Regexp help (simple)

2004-01-22 Thread Martin Luethi
maybe this work: replace the special-characters first, eg.: $bokid = str_replace(å, _, $bokid); and replace them back after preg_match or try the preg_match with the hexcode of this special chars: \xhh character with hex code hh (http://ch2.php.net/manual/de/pcre.pattern.syntax.php) g. martin

[PHP] passing session ID

2004-01-22 Thread Diana Castillo
If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks -- -- Diana Castillo Global Reservas,

Re: [PHP] passing session ID

2004-01-22 Thread John Nichel
Diana Castillo wrote: If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks You'll find some

Re: [PHP] Question about array limits practicallity

2004-01-22 Thread Chris W
Joe Harman wrote: Thanks for your comments Chris and Rob... Chris you have great points to make, my ears are wide open... The reason I thought about storing the array in a blob is because every test generated will be different. the 102 question test will be generate randomly from a bank of 500

Re: [PHP] session variables

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? Cookies come in two types: session cookies and persistent cookies. Session cookies have no set expiration date, so they

Re: [PHP] passing session ID

2004-01-22 Thread Matt Matijevich
snip If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks /snip You could just have php store

Re: [PHP] passing session ID

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: If I want to store a session id in a database, how would I do it, like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what?

[PHP] php document management systems

2004-01-22 Thread Angelo Zanetti
Anyone know of any php document management systems? if its open source that would be even better. TIA Angelo Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The

Re: [PHP] passing session ID

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: php does it if the user has not disabled cookies and if you remain on the same server, but if you are changing servers and the user has disabled cookies If by changing servers you mean the user visits a different domain, then passing the session

RE: [PHP] Html forms on windows servers

2004-01-22 Thread Ford, Mike [LSS]
On 22 January 2004 14:24, Carolina Silva Animas wrote: Hi This is my first experience with php... and I'm already having trouble... I´m working on an html form for a website which uses php to create an e-mail. My 'Submit' button has a php document as action. It works great on my unix

[PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Thaddeus J. Quintin
I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with the following line- $ ./configure --with-mysql=/usr/local/mysql \

[PHP] Showing local date time

2004-01-22 Thread Hamid Hossain
Hi all, I am new member to the list, let's see ;) I am hosting my site in a shared hosting plan in US while I am in Saudi Arabia. I want to show the current datetime at my local. Should I use setlocale()? I mean is there a way which will give me the local datetime without calculating the

Re: [PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Brad Pauly
On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote: I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with the following line-

Re: [PHP] Showing local date time

2004-01-22 Thread Matt Matijevich
snip Should I use setlocale()? I mean is there a way which will give me the local datetime without calculating the difference manually? /snip I have not used it, but it looks like setlocale() will give you what you want. http://www.php.net/manual/en/function.setlocale.php snip Suppose that I

Re: [PHP] Showing local date time

2004-01-22 Thread John Nichel
Hamid Hossain wrote: Hi all, I am new member to the list, let's see ;) I am hosting my site in a shared hosting plan in US while I am in Saudi Arabia. I want to show the current datetime at my local. Should I use setlocale()? I mean is there a way which will give me the local datetime without

Re: [PHP] PHP and email attachments

2004-01-22 Thread David T-G
Radith -- ...and then Raditha Dissanayake said... % % I get over a % thousand emails a day (29382 so far this month). When I get an important ... % not to mention the countless mails we recieved from you a couple of % months ago on this mailing lists topic in both the PHP and the qmail % list

[PHP] Server / filename manipulation

2004-01-22 Thread Shaun
Hi, I have an question on how to create a completely database / xml driven site i.e. the page names, links, the site map etc are held in the database. I think I have solved most problems but what I would really like to do is limit the number of pages I need. Can I manipulate the server such that

Re: [PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Thaddeus J. Quintin
Brad Pauly wrote: On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote: I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with the

[PHP] MSSQL connection

2004-01-22 Thread Alex Hogan
Hi All, I have a question about connecting to a MSSQL back end. I keep getting the error that the php_mssql.dll wont load because it isn't present. From what I can see so far is that php needs to be compiled with that extension uncommented in order to get the dll. Is that correct?

RE: [PHP] Html forms on windows servers

2004-01-22 Thread Carolina Silva Animas
Thank you Ü Now, I don´t get all the warnings, but the php file still doesn't recognize the values for the variables. Do you have any clue of why this is happening? Carolina -Mensaje original- De: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 22 de Enero de 2004 10:31

Re: [PHP] MSSQL connection

2004-01-22 Thread Raditha Dissanayake
I assume you are working on a win32 platform, if so uncomment that relevent line in the php.ini file and copy the dll to the win folders. (all this is explained in great detail in teh installation guide) If you are working on linux this approach will not work with mssql. Alex Hogan wrote: Hi

Re: [PHP] Server / filename manipulation

2004-01-22 Thread Raditha Dissanayake
hi, If i understand you correctly this can be done using apache url rewrites. We have done something similar (though not with php) on http://www.kelanisearch.com/ on this site regardless of the page that's accessed the same script is called, isn't that what you are looking for? If so there

Re: [PHP] MSSQL connection

2004-01-22 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If your Web server is running on a machine that is separate from your database server, then you'll also need to copy the file ntwdblib.dll from the database server to your C:\WINDOWS\system32 folder. PHP needs that DLL for the mssql functions to work

[PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Thomas Svenson
Mark Charette wrote: If you read through the archives you'll find it isn't so much that PHP is the problem per se, but many of the PHP modules. If you use the multi-threading model of Apache 2 (the raison d'etre for using Apache 2 for most people) then all the modules have to be thread-safe,

Re: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Chris Shiflett
--- Thomas Svenson [EMAIL PROTECTED] wrote: I am using the pre-forked model in Apache2 yes. So far I haven't noticed any problems with PHP(4/5beta). If the problems with PHP is with the non pre-forked models, then its time to update the recommendation to not run PHP on Apache2. Instead it

RE: [PHP] PHP 5 Book

2004-01-22 Thread Thomas Svenson
Donald Tyler wrote: Anyone know if Rasmus (or anyone for that matter) is writing a book on PHP 5? And when it might be available? I bought Core PHP Programming, 3rd edition. It is written by Leon Atkinson together with Zeev Zend Suraski. The foreword is by Andi also Zend Gutmans. It covers

[PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Tristan Gutsche
Hello, I am having problems generating an array based on data passed from a form. The form has a series of fields with the same name math. When submited if i have register_globals=on i have no problems calling a $math variable and it spits out all the values assigned to math, however with

Re: [PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Matt Matijevich
snip I am having problems generating an array based on data passed from a form. The form has a series of fields with the same name math. When submited if i have register_globals=on i have no problems calling a $math variable and it spits out all the values assigned to math, however with

[PHP] PHP has encountered an Access Violation at 00C4DA27

2004-01-22 Thread AMK
PHP has encountered an Access Violation at 00C4DA27 I'm getting this error a lot with an intensive script I'm running. Though I've also seen it with other, less intensive scripts in the same project. I will get the error 10 times in a row. Then have the script run ok for a while. This is on

[PHP] Re: PHP has encountered an Access Violation at 00C4DA27

2004-01-22 Thread DvDmanDT
Personally, I would think XP is extremely buggy on the memory allocation part... It seems unable to handle LOTS of allocations/reallocations after eachother... I made a program, which can do one allocation 260 times or so.. Then it crashes... I haven't seen any logic at all in this...

[PHP] Re: generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Eric Bolikowski
Hi Tristan It seems wierd to me that $math would be an array even after that you have named all your form fields to $math. Well, what you can do otherwise that is a very known method is naming your fields name[]. In your case this would be math[]. If you name many of your fields this way,

RE: [PHP] Segmentation fault problem

2004-01-22 Thread E. Stuart Hicks
I still can't access anything on bugs.php.net so I'm not sure exactly what you need. I grabbed all of the execute() frames, though, and ran that print function and got this: (gdb) print (char *)(executor_globals.function_state_ptr-function)-common.function_name Attempt to extract a component of

RE: [PHP] libphp4.so for Roxen

2004-01-22 Thread Thomas Svenson
Dan Egli wrote: Except that a lot of software, including the Webmail system I have(SquirrelMail), requires mod_php. If it was a simple decision I'd say oh well. But the fact is that I have several pieces of software that require mod_php. If it is not currently safe to run PHP as Roxen

RE: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Thomas Svenson
Chris Shiflett wrote: So, I'm not sure what documentation you're referring to exactly, nor am I sure that there would be a lot of support in updating it. This one: -8. Warning Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows. -8. You

RE: [PHP] Segmentation fault problem

2004-01-22 Thread E. Stuart Hicks
Please disregard my last post - I'd switched Apache back from the debug module for the night and forgotten to turn it back on. I've attached the full trace but here's the main part: (gdb) print (char *)(executor_globals.function_state_ptr-function)-common.function_name $4 = 0x7bb69250

Re: [PHP] Server / filename manipulation

2004-01-22 Thread Shaun
Perfect, complicated but perfect! Thanks Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, If i understand you correctly this can be done using apache url rewrites. We have done something similar (though not with php) on http://www.kelanisearch.com/ on this

RE: [PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Matt Matijevich
snip echo form method='get' action='exams2.php'; $Student = array (albert Einstein, Ivan the Terrible, Napolon, Simon Bolivar, Issac Newton); while(list(,$name)=each($Student)){ echo what grade did $name get in Maths?; echobrbr; echo select name='Math[]'

[PHP] newbie issues with control structures HTML form

2004-01-22 Thread Jonno Agnew
Hello. OK, so I'm new and I'm doing this Useractive/O'Reilly Learn PHP course and they want us to make a guessing game where you have to guess a number between 0-100 and get 10 tries; each time you're told if your guess was higher, or lower, or just right. I've hit a wall. Can you help me

[PHP] page order

2004-01-22 Thread Tommi Virtanen
Hi! How I can do following: 1. i have page which list (admin) id menunamepagenameno 1 First First page 1 edit (link to edit-page) 2 Second Second page 2 edit 3 Third Third page 3 edit

[PHP] Re: page order

2004-01-22 Thread Tommi Virtanen
Hi! How I can do following: 1. i have page which list (admin) id menunamepagenameno 1 First First page 1 edit (link to edit-page) 2 Second Second page 2 edit 3 Third Third page 3 edit I can

[PHP] 2 x DB connections at once

2004-01-22 Thread Donald Tyler
I thought this was possible, but it doesn't seem to be working: I have a class, that has a private variable called $this-Connection, which is a Database Connection pointer to a MySQL database. During the lifetime of the Class, it uses the connection multiple times without a problem. The class

Re: [PHP] newbie issues with control structures HTML form

2004-01-22 Thread Stuart
Jonno Agnew wrote: if ($guessnumb) { Try $_GET['guessnumb'] or $_POST['guessnumb'] if the form is posted. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Meetup and new Software Developers Meetup

2004-01-22 Thread Steve Magruder - WebCommons.org
Everyone: On top of the amazing success of a PHP meetup ( http://php.meetup.com/ ) with 3,430 members, I would invite everyone to check out the new Software Developers meetup. This sounds like a great way for software developers in general to get together in person around the world to discuss

[PHP] Design Patterns PHP5

2004-01-22 Thread Thomas Svenson
Got the book Core PHP Programming 3rd Edition, which covers PHP5. One thing that it talks about is that with, specially, the new oop model it will now be much easier to develop in PHP using Design Patterns (DP). Since that is new to me I have been searching for some easy reading to understand

Re: [PHP] Design Patterns PHP5

2004-01-22 Thread Ray Hunter
On Thu, 2004-01-22 at 14:31, Thomas Svenson wrote: Got the book Core PHP Programming 3rd Edition, which covers PHP5. One thing that it talks about is that with, specially, the new oop model it will now be much easier to develop in PHP using Design Patterns (DP). check out

[PHP] Apache 1.3/PHP

2004-01-22 Thread Tom Ray [List]
For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. So when I hit test.php in my browser it outputs: ? print Test

RE: [PHP] 2 x DB connections at once

2004-01-22 Thread Donald Tyler
OK, now I have done some work and it gets even stranger. Two Objects Validator Importer Both objects have private variables called $this-Connection However, when I change the DB for one objects connection pointer, the other objects connection pointer ALSO changes DB. Is it not possible to

[PHP] PDF creation using PHP, based on a PDF template

2004-01-22 Thread Mark Wouters
Hi all! I'm trying out this script I found in a book I bought. It does not work though.. The code is below. It looked like an easy solution for what I want to do. It takes a template PDF file and replaces description1 with a value, bedr1 with a value,... I want to be able to generate an PDF

RE: [PHP] Design Patterns PHP5

2004-01-22 Thread Thomas Svenson
Ray Hunter wrote: On Thu, 2004-01-22 at 14:31, Thomas Svenson wrote: Got the book Core PHP Programming 3rd Edition, which covers PHP5. One thing that it talks about is that with, specially, the new oop model it will now be much easier to develop in PHP using Design Patterns (DP). check out

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread BAO RuiXian
Tom Ray [List] wrote: [snip]... ?php print Test 123; ? I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they would be. Anyone with experience with FreeBSD/Apache/PHP give me a hand? Do you have the following line in your httpd.conf: AddType

RE: [PHP] newbie issues with control structures HTML form

2004-01-22 Thread Martin Towell
Looking at the URL: guess.php?guessnumb=21guessnumb=tries=1 I notice that 'guessnumb' is in there twice. PHP will use the last one in that list I notice that in your form, you have two inputs with the same name input type=text name=guessnumb size=5 maxlength=3 / input type=hidden

Re: [PHP] 2 x DB connections at once

2004-01-22 Thread Luke
It depends, how are you creating the connections, and where are you keeping the connection ID and when you query, or select database, or anything to do with the databases, do you make sure you specify that connection id? //Notice the TRUE, that creates a new conenction, and doesnt use the

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread John Nichel
Tom Ray [List] wrote: For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. So when I hit test.php in my browser it

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread Tom Ray [List]
As far as AddType goes for PHP this is what I have: IfModule mod_php3.c AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php AddType

[PHP] Re: [users@httpd] Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread jeffrey_n_Dyke
Tom Ray [List]

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread Chris Shiflett
--- Tom Ray [List] [EMAIL PROTECTED] wrote: It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. Make sure this is in your httpd.conf: AddType application/x-httpd-php .php Of course, also make sure you have PHP. :-) Chris = Chris

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread Chris Shiflett
--- Tom Ray [List] [EMAIL PROTECTED] wrote: As far as AddType goes for PHP this is what I have: [snip] IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule My bet is that you didn't build Apache with PHP

RE: [PHP] Design Patterns PHP5

2004-01-22 Thread Giz
Design Patterns is a big category that can cover any area of design. In general the idea is that there are Best practices ways of solving particular design problems. Java is the area (particularly J2EE) where I've seen the biggest promotion of the idea coming out of a company (in this case Sun)

[PHP] Re: [users@httpd] Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread BAO RuiXian
Tom Ray [List] wrote: [snip...] IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule AddType application/x-httpd-php3-source .php3s /IfModule Seems you have two '/IfModule's in continuation. Did you

Re: [PHP] 2 x DB connections at once

2004-01-22 Thread Justin Patrin
You're running into an old error. I believe that this was a problem with previous versions of PHP, are you using the newest version? Barring that, if you add true to the end of the mysql_connect call to make it a different connection, that should also fix things. Or you could try using

[PHP] Re: page order

2004-01-22 Thread Luke
Hey, Mita Kuuluu? I'm not exactly sure what you mean, but basically you want to edit and move around the values? the 'no' field is basically an order? to do the edit page you can use a combination of HTML forms and the mysql results... and to move them up or down, you can have a link that has

[PHP] Re: [users@httpd] Apache 1.3/PHP

2004-01-22 Thread Jez Hancock
Hi Tom, On Thu, Jan 22, 2004 at 04:45:08PM -0500, Tom Ray [List] wrote: For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread John Nichel
Tom Ray [List] wrote: As far as AddType goes for PHP this is what I have: IfModule mod_php3.c AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php

[PHP] PHP Equivalent of DBM Files

2004-01-22 Thread gohaku
Hi everyone, I was just curious if there is an equivalent of DBM files used in Perl scripts. Thanks in advance. -Gohaku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] can't figure out this mysql error

2004-01-22 Thread Chris W. Parker
Hi. I have a db class that accesses and executes querys as well as returns the result (if you so choose to have it returned). One method within this class is called query() (how genius!). It's defined like so: ?php function query($sql, $current_line) { $this-Result = mysql_query($sql) or

[PHP] Migrating OOP PHP4 codes to 5

2004-01-22 Thread siamak
Hello, 1- Would someone please tell me if it is possible to run OOP codes written for PHP4 on PHP5 yet? Or we need to change codes? 2- Also what should we do? Continue with developing OOP codes for PHP4 or wait for PHP5 to appear on hosting servers (mostly using redhat distros) and then develop

RE: [PHP] PHP Equivalent of DBM Files

2004-01-22 Thread Giz
At the risk of being glib, DBM files. http://www.php.net/manual/en/ref.dba.php -Original Message- From: gohaku [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 5:04 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Equivalent of DBM Files Hi everyone, I was just curious if there

[PHP] pass by reference

2004-01-22 Thread Kevin Waterson
In a recent discussion about the MS terra server it was mentioned this could not be done with PHP because the terraserver has special front-end code that allows images to be passed by reference, so the image data goes directly from the database access back end to the client browser, without

Re: [PHP] pass by reference

2004-01-22 Thread Justin French
On Friday, January 23, 2004, at 03:17 PM, Kevin Waterson wrote: The implication is that the 'middle layer' (PHP) would slow things down to an unusable state. so, when I extract an image from the database and echo it to a webpage, is there any copying done? or is it a direct stream to the

Re: [PHP] can't figure out this mysql error

2004-01-22 Thread Jason Wong
On Friday 23 January 2004 09:38, Chris W. Parker wrote: ?php function query($sql, $current_line) { $this-Result = mysql_query($sql) or die($this-stop($current_line)); if(!$this-Result) { echo mysql_error(); } The if-clause will never be evaluated because if there had been an

Re: [PHP] pass by reference

2004-01-22 Thread Kevin Waterson
This one time, at band camp, Justin French [EMAIL PROTECTED] wrote: In other words, you HTML source looks like this: img src='images.php?id=45' NOT img src='{RAW BINARY DATA HERE}' Yes, but how is this different from anything the terraserver is doing? when the images.php script is

Re: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 2:17:07 PM, you wrote: KW In a recent discussion about the MS terra server it was mentioned KW this could not be done with PHP because the terraserver KW has special front-end code that allows images to be passed by reference, KW so the image data goes directly

Re: [PHP] pass by reference

2004-01-22 Thread Kevin Waterson
This one time, at band camp, Tom Rogers [EMAIL PROTECTED] wrote: php can output the stream without having to save it to a file first if that is what is worrying you. That was sorta my concern, but not so much as a file, does it copy to memory anywhere, or, is it a direct stream to the

Re[2]: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 3:18:06 PM, you wrote: KW This one time, at band camp, Tom Rogers [EMAIL PROTECTED] wrote: php can output the stream without having to save it to a file first if that is what is worrying you. KW That was sorta my concern, but not so much as a file, does it copy