Re: [PHP] PHP script to write to /home/userid/ dir. popen not working. how?

2002-04-12 Thread Jason Wong
On Friday 12 April 2002 14:36, gaukia 345 wrote: > Hi, > I'm using PHP 4.1.2 to write a webmail. I'm using Procmail along with > Sendmail. PHP runs as user nobody or user apache. Note that I have the user > id and password in my PHP script from using HTTP authentication. FYI I'm > running Mandrak

Re: [PHP] Re: Forms in PHP

2002-04-12 Thread Dave
> > May I also suggest that you rewrite your echo statements as: > > echo 'Donate this item'; > > Vastly improves legibility. or just echo "Donate this item"; is there any common use how it should be coded or does it really make no difference to forget the ""? i'm thinking here of old v

Re: [PHP] Re: Forms in PHP

2002-04-12 Thread José León Serna
Hello: > echo "Donate this item"; > > is there any common use how it should be coded or does it really make no > difference to forget the ""? i'm thinking here of old version of the > php-parser or old webservers which could missunderstand the code. just > to improve compatibility for further proj

Re: [PHP] Re: Forms in PHP

2002-04-12 Thread Richard Baskett
Actually since everything is going to XML compliance you will not want to leave out the quotes since it is a very very structured language you could hang everything without your quotes :) Just because it works, doesn¹t mean it's the best way of doing it. Browsers try to parse html with the slopp

[PHP] Using Google's new SOAP based API in PHP

2002-04-12 Thread Stefen Lars
Hello all CodingTheWeb.com has several reports of Google's new SOAP based application programming interface: http://www.codingtheweb.com/projects/newslog/index.php?filter=Google Has anyone tries using this in PHP yet??? S. _ Cha

[PHP] Return path (php/sendmail)

2002-04-12 Thread Anthony Rodriguez
Does "Reply-To" works for you? My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache (1.3.20) / linux red hat (6.2) and I don't get bounced e-mails. Any suggestions? Tony ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Re: alphabetizing titles when first word begins with 'The','A',etc.

2002-04-12 Thread Eric Thelin
It could be done with MySQL itself by either adding a sort_title field that you make those changes to, by selecting the data into a temporary table then performing the appropriate updates before selecting it ordered properly, or by some crazy complex combinations of the if, index, and substr funct

[PHP] Taking the last word out of a string

2002-04-12 Thread Gil Disatnik
Hello there, I have a string that comes in various sizes and word numbers, I wish to extract the last word from this string, how can I do it? I have already looked at substr() and strrpos() man pages looking for the answer... couldn't find it though... Thank you! Regards Gil Disatnik Rockfo

Re: [PHP] Taking the last word out of a string

2002-04-12 Thread Richard Baskett
I don¹t know of any function off the top of my head, but you could try doing an: $array = explode(' ', $string); $lastword = array_pop($array); $string = implode(' ', $array); Now $string is equal to the original string without the last word. $lastword is equal to the lastword. It's possible th

[PHP] db design with large amount of data (?)

2002-04-12 Thread W. Enserink
Hi all, i'm currently busy with db design. Since I have not worked with these amounts of content data I have a few questions. I have 2 tables: a table filled with records about products (currently 2200 records) (tblProducts) The next table is a table with pictures referring to product_ID's. (t

[PHP] variable scoping...

2002-04-12 Thread Aric Caley
Is it possible to keep the variable name-space separate between, say, two files (one included into the other) to avoid name collisions? I'm trying to get two scripts to work together on the same page. Each script defines some classes that have the same names but work differently (ex., class Temp

Re: [PHP] db design with large amount of data (?)

2002-04-12 Thread Justin French
I'm no expert on massive amounts of data, but if you index the field which you are querying by (say you're relating the images to the product via productID), then I'd index the productID field of tblPics. Indexing (to the best of my limited knowledge) speeds up the querying process, and slows dow

[PHP] Re: Sending HTML from PHP with 'mail' as a cron job

2002-04-12 Thread Michael Virnstein
i'd suggest using PEAR's mail class. It'll fit for all your needs and is easy to use. <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $headers = "Content-type: text/html\n"; > $fromEmail = urlencode( $dbQuery->adminEmail ); > $subject = "Your new eStore i

Re: [PHP] Re: php+myslq+IDE

2002-04-12 Thread Michael Andersson
Try homesite, its all worth the money "Brian Drexler" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm a big Edit Plus fan as well. Really though, it's just a fancy text > editor with color coding and autocompleting, and IMHO the autocompleting can > ge

[PHP] zip extract

2002-04-12 Thread Plamen Slavov
Hi guys, anyone has an idea about how to extract a zip file on win2k with php i can not use a command line unzip utility because it only says "The system cannot execute the specified program." in the apache log I tried to use pclszip class at http://www.phpconcept.net but i can not get it to work

Re: [PHP] Taking the last word out of a string

2002-04-12 Thread Jason Wong
On Friday 12 April 2002 17:59, Gil Disatnik wrote: > Hello there, > I have a string that comes in various sizes and word numbers, I wish to > extract the last word from this string, how can I do it? > I have already looked at substr() and strrpos() man pages looking for the > answer... couldn't fi

[PHP] Re: variable scoping...

2002-04-12 Thread Michael Virnstein
why do you have more than one class with the same name? would be easier using different names for different classes. or define a base class template and extend it in the files as desired, but give them unique names. how do you know later, which class does what in which way, when they have the same

[PHP] PHP and XML-QL/XQuery

2002-04-12 Thread Alia Mikati
Hi I'm searching for an XML-QL/XQuery engine or module for PHP. Does anyone have any idea where I can find it? Thx a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: string...

2002-04-12 Thread Michael Virnstein
wrong again: eregi("^/*_[0-9]{4}\.jpg$", $file_name) now yo say, / at the beginning between 0 and unlimited times, the rest is ok. try this, i rechecked my second example and saw that i did a \. at the beginning. this was wrong, because it'll search for a dot at the beginning. simply forget abou

[PHP] Re: string...

2002-04-12 Thread Michael Virnstein
beware if you're using preg_match instead. regex using preg_match have to be enclosed by / so the same with preg_match would look like: preg_match("/^.*_[0-9]{4}\.jpg$/i", $file_name) and using preg_match meens that / is a special character and has to be backslashed if wanted by it's meening. and

[PHP] Re: Formatting timestamp date in MySQL

2002-04-12 Thread Michael Andersson
I´m kind of new to this mysql stuff but anyway... I have a row in a table with a timestamp of 14 chars and i dont know how to convert the row named 'tidsstampel' into something like this: select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); i dont wanna use a static date for this, id rather u

[PHP] Re: Php + Mysql Hosting problem

2002-04-12 Thread Michael Andersson
To use php+mysql on spaceports you have to sign up for a cgi-bin account and store your files on that server.. /Micke "Simonk" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have made a web site containing Php and Mysql script > And I have applied for a

[PHP] displaying form data

2002-04-12 Thread John P. Donaldson
I have a form processor that displays a confirmation screen showing the submitted form values to the user after they submit the form. This confirmation screen's contents are generated by the script itself. However, I'd like to be able to redirect the results to any pre-existing webpage. For exa

Re: [PHP] Re: Formatting timestamp date in MySQL

2002-04-12 Thread Richard Baskett
No problemo! Do this: select DATE_FORMAT(tidsstampel, '%W %M %Y'); There you go! Rick "When a man won't listen to his conscience, it's usually because he doesn't want advice from a total stranger." - Lindsey Stewart > From: "Michael Andersson" <[EMAIL PROTECTED]> > Date: Fri, 12 Apr 2002 14:

[PHP] Re: Upload problem

2002-04-12 Thread Michael Andersson
Have you tried to change the defualt timeout value from 30 secs to something larger or even -1 in the php.ini file? Could be a problem to upload 4mb in 30 secs if your on a slow conn.. /Micke "FyiÎ?rk µérkt" <[EMAIL PROTECTED]> skrev i meddelandet 004001c1e12d$43ca16a0$020296c2@actarus">news:

[PHP] include through HTTP

2002-04-12 Thread Barýþ
What i want to do is : include("http://localhost/folder/file.php?foo=bar";); but it doesn't work. As you may guess it looks for a file called "file.php?foo=bar". "url_fopen" is set to "on" in my php.ini file as told in the PHP manual. I work on win98+apache+php4.1.1(or something like that but at l

[PHP] Re: Sorry for naggin, need a short test

2002-04-12 Thread Oliver Heinisch
At 12.04.2002 19:20, you wrote: >Works fine here. I can see the main page, and it opens up a window "Knackige >Preise!" > >auf wiedersen >-- >Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Thanks Jason, that´s what I didn´t want to hear ! ;-) Seems to get a long night, installing M$ $tu

RE: [PHP] include through HTTP

2002-04-12 Thread Collins, Robert
Check the Note about 5 lines down on this page. http://www.php.net/manual/en/features.remote-files.php "Note: You can't use remote files in include() and require() statements on Windows." Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EM

[PHP] functions

2002-04-12 Thread Alia Mikati
hi i would like now how can we call a function within another function in php? thx a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: include through HTTP

2002-04-12 Thread Jas
Maybe try a require hth Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] displaying form data

2002-04-12 Thread heinisch
At 12.04.2002 05:23, you wrote: > >I have a form processor that displays a confirmation >screen showing the submitted form values to the user >after they submit the form. This confirmation >screen's contents are generated by the script itself. >However, I'd like to be able to redirect the result

RE: [PHP] functions

2002-04-12 Thread Caspar Kennerdale
function firstfunction(){ code; code; code; secondfunction(); } -Original Message- From: Alia Mikati [mailto:[EMAIL PROTECTED]] Sent: 12 April 2002 06:38 To: [EMAIL PROTECTED] Subject: [PHP] functions hi i would like now how can we call a function within another function in php? thx

RE: [PHP] functions

2002-04-12 Thread Jon Haworth
Hi Alia, > i would like now how can we call a function within another function in > php? The same way you'd call it from outside a function :-) "; world(); ?> ...should output hello hello world Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] functions

2002-04-12 Thread Andrey Hristov
HTH Regards, Andrey Hristov - Original Message - From: "Alia Mikati" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 12, 2002 4:37 PM Subject: [PHP] functions > hi > i would like now how can we call a function within another function in > php? > thx a lot > > > >

[PHP] Re: functions

2002-04-12 Thread Michael Virnstein
like you call every function in php. "Alia Mikati" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi > i would like now how can we call a function within another function in > php? > thx a lot > > -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Posting with script tags, or a plea not to

2002-04-12 Thread Erik Price
> I was able to see the PHP code because I came home and fired up > Outlook. Right after I posted that last message, I closed Outlook and > went to Earthlink webmail. Same problem. No code, and incredibly weird > hyerlinks and garbled code. I opened Outlook back up, loaded the same > m

[PHP] Different directory/test locally

2002-04-12 Thread Tiago Simões
Hello. I still can't manage to test locally the pages in my notebook, without using the htdocs directory. As i told you, i managed to install the all the stuff correctly, made my first test with a php script in the htdocs Apache instalation folder, but when i tried to put that new directory path

[PHP] Php/Mysql

2002-04-12 Thread Torkil Johnsen
Just a noob php/mysql question... (I suppose) When I try just putting php code in my insert queries, it goes like this: insert into mytable values('') select * from mytable, returns: Some string So the insert-query inserts both the code AND the string that the code echoes... Any help would be

RE: [PHP] include through HTTP

2002-04-12 Thread Barýþ
Oh what a shame on me! Sorry and thank you... --- "Collins, Robert" <[EMAIL PROTECTED]> wrote: > Check the Note about 5 lines down on this page. > http://www.php.net/manual/en/features.remote-files.php > > "Note: You can't use remote files in include() and > require() statements on > Windows." >

[PHP] Re: Php/Mysql

2002-04-12 Thread Michael Andersson
Myabe you should assign "some string to a variable: $string = "some string"; insert into mytable values ($string) /Just a noob trying to help out "Torkil Johnsen" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a noob php/mysql question... (I suppose

Re: [PHP] Forms in PHP

2002-04-12 Thread Erik Price
On Thursday, April 11, 2002, at 09:17 PM, Jennifer Downey wrote: > Now I have a weird problem. I am using this code and can't understand > why it > doesn't work. > When the script is run it returns a blank page, no error or done. > > here it is and any help would be appreciated. > > if(($type

[PHP] 2 newbie questions ;)

2002-04-12 Thread Steve Bradwell
Hi there, I am populating form elements (type="text") with values from a db, but if the string has a space in it, it cuts the string off at the space. eg. $var = "the cat in the hat" but all you see in the text box is "the". is there a function I should be adding to my echo line? Also I have an

[PHP] Re: variable scoping...

2002-04-12 Thread J Smith
Namespaces aren't available yet, but should be with PHP 5 (?) when the Zend Engine 2.0 is ready. J Aric Caley wrote: > Is it possible to keep the variable name-space separate between, say, two > files (one included into the other) to avoid name collisions? I'm trying > to > get two scripts

Re: [PHP] templates and listbox

2002-04-12 Thread Analysis & Solutions
Hey Javier: On Thu, Apr 11, 2002 at 01:33:10PM -0300, Javier wrote: > But does it use templates? I want to use templates not functions that > generates html. What do you mean, it uses "templates not functions?" Smarty uses functions. Are you envisioning include files with scripts in them that

Re: [PHP] displaying form data

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 08:23 AM, John P. Donaldson wrote: > I have a form processor that displays a confirmation > screen showing the submitted form values to the user > after they submit the form. This confirmation > screen's contents are generated by the script itself. > However, I'd

[PHP] PHP Training is New York

2002-04-12 Thread Daniel Kushner
LAST DAY TO REGISTER http://websapp.com/training.php --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Output to system printer

2002-04-12 Thread Bruce S. Garlock
I have a script which, when modified or added, automatically prints out to a system printer that I define. Here is some sample code: $job_desc=urldecode($job_desc); define(PRINT_CMD, " lpr -Pis "); $prt = "-\n"; $prt .= "| $type DRAWDOWN REQUEST |\n"; $prt .= "---

Re: [PHP] Return path (php/sendmail)

2002-04-12 Thread Analysis & Solutions
Hi Anthony: On Fri, Apr 12, 2002 at 03:27:14AM -0400, Anthony Rodriguez wrote: > > My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache > (1.3.20) / linux red hat (6.2) and I don't get bounced e-mails. Put a from line in the additional headers argument: mail($To, $Subjec

Re: [PHP] Re: alphabetizing titles when first word begins with 'The','A',etc.

2002-04-12 Thread Analysis & Solutions
> On Wed, 12 Apr 2000, Steph wrote: > > > Hi. Im using MySQL and as part of my tables I have titles (of stories). My > > question os in regards to outputing those titles. Some of the titles begin > > with words such as 'The', 'A', 'An', etc. Is there a way to order these > > particular titles bas

Re: [PHP] PHP Training is New York

2002-04-12 Thread ROBERT MCPEAK
Can't make it to this one but would like to know of any other training opps in the Balt-Wash-Phil-NY areas. Anybody know of a good source for this info? >>> "Daniel Kushner" <[EMAIL PROTECTED]> 04/12/02 10:48AM >>> LAST DAY TO REGISTER http://websapp.com/training.php --Daniel -- PHP Gene

Re: [PHP] include through HTTP

2002-04-12 Thread Rasmus Lerdorf
Why do you want to include from localhost over HTTP? Sounds to me like you want to do: $foo='bar'; include "$DOCUMENT_ROOT/folder/file.php"; -Rasmus On Fri, 12 Apr 2002, Barýþ Mert wrote: > What i want to do is : > include("http://localhost/folder/file.php?foo=bar";); > but it doesn't work. A

RE: [PHP] 2 newbie questions ;)

2002-04-12 Thread Collins, Robert
1. This should work (notice quotes around var) : This is incorrect (it only shows the first word) : > 2. not sure about the second question but have you tried removing the target, it seems to me that a target might not be necessary since the link should already be opening an application that is

Re: [PHP] variable scoping...

2002-04-12 Thread Rasmus Lerdorf
I guess the only real way is to use virtual() in this case. That's a bit clunky as well, but it isn't quite as bad as going through CGI or all the way out to the port 80 level. -Rasmus On Fri, 12 Apr 2002, Aric Caley wrote: > Is it possible to keep the variable name-space separate between, say

Re: [PHP] Posting with script tags, or a plea not to

2002-04-12 Thread Mike Gohlke
Barry C. Hawkins wrote: Barry & Rasmus (you already figured this out, I'm sure), That's the problem, it's there but the browser is ignoring the tag as unknown (just as it should). The only way Earthlink can fix that is to do an inline change of < to < and > to > when using the webmail side.

[PHP] Differences in old php/apach. to new php/apach. cookie process?

2002-04-12 Thread heinisch
Hi Folks, Does anybody know if there are differences in cookieprocessing between A.Suse 2.2.14-SMP/apache 1.3.12 / PHP 3.0.16 and B.Suse 2.4.9 /apache 1.3.20 / PHP 4.0.6 I have moved "working pages" from A to B, and now (Win)Opera 6.01 will not accept cookies from the, formerly working, pages. I

RE: [PHP] Re: Assigning the contents of a file to a variable

2002-04-12 Thread Edward R. Bailey
Thanks for helping a newbie out - fread() worked perfectly:) Ed > -Original Message- > From: CC Zona [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 5:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Assigning the contents of a file to a variable > > > In article <00bc01

[PHP] PHP --with-java problem

2002-04-12 Thread Dmitri Zakharov
I am trying to configue PHP with Java support. with PHP-4.1.2, JDK1.3.1_01 The installation goes smoothly. My php.ini file contains the follwing section for Java [Java] java.class.path = /usr/local/src/php-4.1.2/ext/java/php_java.jar java.home = /usr/local/jdk1.3.1_01 java.library = /usr/loca

Re: [PHP] Different directory/test locally

2002-04-12 Thread heinisch
At 12.04.2002 14:48, you wrote: >Hello. > >I still can't manage to test locally the pages in my notebook, without using >the htdocs directory. As i told you, i managed to install the all the stuff >correctly, made my first test with a php script in the htdocs Apache >instalation folder, but when

[PHP] Re: Using Google's new SOAP based API in PHP

2002-04-12 Thread Simon Willison
Stefen Lars wrote: > Hello all > > CodingTheWeb.com has several reports of Google's new SOAP based > application programming interface: > > http://www.codingtheweb.com/projects/newslog/index.php?filter=Google > > Has anyone tries using this in PHP yet??? Yup - http://toys.incutio.com/php/php-

[PHP] How to sort by 3rd row in an 2d-Array

2002-04-12 Thread SED
Hi, I'm trying to sort an array like following myArray[1][firstname] = "Joe"; myArray[1][lastname] = "Smith"; myArray[1][company] = "Bullock"; myArray[1][email] = "[EMAIL PROTECTED]"; myArray[2][firstname] = "Jim"; myArray[2][lastname] = "Cords"; myArray[2][company] = "Jamen"; myArray[2][email]

RE: [PHP] Re: Forms in PHP

2002-04-12 Thread Andrew Chase
>May I also suggest that you rewrite your echo statements as: > > echo 'Donate this item'; > >Vastly improves legibility. It's a problem, however, if you want to include a PHP variable in that echo statement, if you're populating a SELECT menu with a loop, for instance; $menu_options = array("A

Re: [PHP] Re: Forms in PHP

2002-04-12 Thread Eugene Lee
On Fri, Apr 12, 2002 at 09:36:42AM -0700, Andrew Chase wrote: : : foreach(array_keys($menu_options) as $option_value){ : $option_text = $menu_options[$option_value]; : echo '$option_text'; : } : : would just output : : $option_text : $option_text : $option_text : : which is probably not th

[PHP] DATES in DIFFERENT LANGUAGES

2002-04-12 Thread Declan Kenny
Hi all, Is it possible to get dates in different languages i.e. date ("j F") would usually return, in the case, 13 April can I make it display the date in French for example?? Thanks Declan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] register_globals

2002-04-12 Thread Michal Dvoracek
Hello, in php 4.0.6 on the begin of the script include file called config.php. In config file i have ini_set('register_globals', 'off'); i setup session via session_register('variable') and redirect to another page, where i include the same config (config.php) and call session_start(); but when i

Re: [PHP] How to sort by 3rd row in an 2d-Array

2002-04-12 Thread Kevin Stone
This is a terribly inneficient way of handling your situation but I believe it would work. // First we're going to make a list of all company values for($i=0; $i To: <[EMAIL PROTECTED]> Sent: Friday, April 12, 2002 10:25 AM Subject: [PHP] How to sort by 3rd row in an 2d-Array > Hi, > > I'm tryi

[PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Chuck \"PUP\" Payne
Hi, I was up on freshmeat and I saw a TON of php classes. I like to know how can I use them? And is a class a bit of code that you are always using? If so, how can I create my own classes. Chuck "PUP" Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain

[PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Chuck \"PUP\" Payne
Hi, I was up on freshmeat and I saw a TON of php classes. I like to know how can I use them? And is a class a bit of code that you are always using? If so, how can I create my own classes. Chuck "PUP" Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain

Re: [PHP] How to sort by 3rd row in an 2d-Array

2002-04-12 Thread Steve Cayford
Or try the usort() function? -Steve On Friday, April 12, 2002, at 12:26 PM, Kevin Stone wrote: > This is a terribly inneficient way of handling your situation but I > believe > it would work. > > // First we're going to make a list of all company values > for($i=0; $i { > $company_value

Re: [PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 01:49 PM, Chuck "PUP" Payne wrote: > Hi, I was up on freshmeat and I saw a TON of php classes. I like to > know how > can I use them? And is a class a bit of code that you are always using? > If > so, how can I create my own classes. A class is a definition fo

Re: [PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Steve Cayford
Well, start here probably: http://www.php.net/manual/en/language.oop.php -Steve On Friday, April 12, 2002, at 12:50 PM, Chuck "PUP" Payne wrote: > Hi, I was up on freshmeat and I saw a TON of php classes. I like to > know how > can I use them? And is a class a bit of code that you are always

[PHP] Local Test | Different folder - Help!! (part2)

2002-04-12 Thread Tiago Simões
For those that haven't read my previous posts, i'm trying to be able to test locally my php site. My installation (both apache and php) went smoothly. But instead of using the htdocs folder for the test i wanted to use the c:\website folder. So with some help from you guys i manage to configure th

[PHP] passed val compare to array val

2002-04-12 Thread sundogcurt
Hi guys, like every other problem I have this one is SURE to be painfully simple to fix and make me look g0ofy again. I have an edit user form with checkboxes like the one below : > When the form loads I grab the users relevant information and display it, I am having trouble checking checkbox

[PHP] Using php_auto_prepend With Cgi Files

2002-04-12 Thread Shaun Martinec
Is is possible to use php_auto_prepend and php_auto_append with .cgi files located in the cgi-bin? I wanted to wrap a header and footer around a few files. I am specifying the config directives in the .htaccess file. AllowOverride All is on in the httpd.conf. Anyone have any ideas? -Shaun

[PHP] Re: passed val compare to array val

2002-04-12 Thread Joel Colombo
"Sundogcurt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi guys, like every other problem I have this one is SURE to be > painfully simple to fix and make me look g0ofy again. > > I have an edit user form with checkboxes like the one below : > > > > > Whe

[PHP] embedd avi into page?

2002-04-12 Thread Hawk
maybe this is not a php question but I thought I might ask here to, since someone might know..´ is it possible to make a avi movie play inside an explorer window? I just get it to open up in windows media player.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] embedd avi into page?

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 03:00 PM, Hawk wrote: > maybe this is not a php question but I thought I might ask here to, > since > someone might know..¥ > > is it possible to make a avi movie play inside an explorer window? > I just get it to open up in windows media player.. Nope, not a PHP

Re: [PHP] IMPORTANT question for anyone using XSLT

2002-04-12 Thread Jeff Levy
Have you considered using sablotron's Excellent Named Buffer support? I do this all the time. ie: $addl_buffers['MySecondBuffer'] = "Blah" $addl_buffers['MyThirdArbitraryBuffer'] = ... etc etc etc... then, in stylesheet, for instance: etc, etc. On Mon, 01 Apr 2002 11:08:12 -0500, Erik P

Re: [PHP] IMPORTANT question for anyone using XSLT

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 04:42 PM, Jeff Levy wrote: > Have you considered using sablotron's Excellent Named Buffer support? No, and it is perhaps due to my lack of familiarity with XSLT, but I'm not sure how to use this technique... even with the example you've provided. I haven't actu

[PHP] mysql question --

2002-04-12 Thread Jason Caldwell
does anyone know how to copy a tables structure (only) within mysql? thanks. jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] update entries in a table

2002-04-12 Thread Norman Zhang
Hi, How do I update entries in MySQL? Say for example, I checked some fields to a table, and decided to make update to a particular field. How do I do that in PHP? Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update entries in a table

2002-04-12 Thread Richard Baskett
Take a look at: http://www.mysql.com/doc/U/P/UPDATE.html It'll have everything you'll ever want to know about UPDATE :) Rick "There is no such thing as a sudden heart-attack. It takes years of preparation." - Unknown > From: "Norman Zhang" <[EMAIL PROTECTED]> > Date: Fri, 12 Apr 2002 14:23:28

Re: [PHP] update entries in a table

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 05:23 PM, Norman Zhang wrote: > How do I update entries in MySQL? Say for example, I checked some > fields to > a table, and decided to make update to a particular field. How do I do > that > in PHP? // $db = database connection handler $update_sql = "UPDATE tab

Re: [PHP] update entries in a table

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 05:35 PM, Erik Price wrote: >> How do I update entries in MySQL? Say for example, I checked some >> fields to >> a table, and decided to make update to a particular field. How do I do >> that >> in PHP? > > // $db = database connection handler > $update_sql = "UP

Re: [PHP] update entries in a table

2002-04-12 Thread Norman Zhang
Thank you so much. Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: alphabetizing titles when first word begins with 'The','A',etc.

2002-04-12 Thread Julio Nobrega
I would go with this. If there's a title like: "A title begins with a vowel". I guess it's better to store: "title begins with a vowel, A". Now how to transform INSERT-SELECT to a temp table where you will format, delete the original's records, and INSERT-SELECT from temp to original

Re: [PHP] quotes

2002-04-12 Thread Erik Price
On Friday, April 12, 2002, at 06:06 PM, Heidi Belal wrote: > if uses enter double quotes my html gets mixed up and > considers the users quote to be the end of the output > value for the input field. ... > now what do i do? how can i prevent that from > happing? As a rule of thumb, you shou

[PHP] HTML form element

2002-04-12 Thread Brian McLaughlin
Hi all. I have a tag like this on a php-generated web page. Art Biology Business and Economics" etc. etc. My question is... since this is a multiple-select list, in the php script that this form calls on a submit, how do I determine which options have been selected? If I look at

[PHP] Re: HTML form element

2002-04-12 Thread Julio Nobrega
Art Biology Business and Economics" etc. etc. Note the [] after majors. Now majors is an array with the selected values. -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br "Brian McLaughlin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

Re: [PHP] HTML form element

2002-04-12 Thread Chris Wesley
Name your select element "majors[]" and when the form is submitted, your form handler will get an array, not a scalar, called $majors. Step through the array, and you'll get all the options that were selected. ~Chris /"\ \ /

[PHP] session_is_registered

2002-04-12 Thread Norman Zhang
Hi, If I have register_globals=off, how do I pass session variables? I tried session_register("var1"). session_is_registered("var1") appears successful, but if I tried to echo the $var1". Nothing shows. How do I pass session variables? Thanks, Norman -- PHP General Mailing List (http://www.p

[PHP] PHP 4.0.6 and xsl-transformation

2002-04-12 Thread K. Pihl
Hey PHP-gurus! How do I run and invoke PHP XSL-parsing and transformation using PHP version 4.0.6.? Here is the sample code I want to run. files included: PHP-script XML-file and XSL-file:They are formatted nicely client-side by IE6.0. (Please disregard the stupid text in the XML-file, it

[PHP] how to detect error

2002-04-12 Thread Charmaine Tian
Hi, If a PHP script is terminated due to time out (defined by max_execution_time) or memory error (memory_limit exceeds), how can I detect the error in code? connection_timeout() is deprecated as of 4.0.5, and connection_status() does not return the correct value when time out happens. Any solu

Re: [PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Shu Chow
I recently finished a great book on OO theory called Beginning Java Objects by Jacquie Barker. It's published by Wrox. The book is a Java book and there are Java code snippets, but it's OO theories will work for all OO languages. Java is C style coding like PHP, so you shouldn't have any p

[PHP] XHTML tag attribute quoting (Was Re: Forms in PHP)

2002-04-12 Thread Andrew Chase
Are single quotes valid around tag attributes in XHTML? I skimmed over the W3C XHTML 1.0 spec before posting the previous message and got the impression all attributes had to be double quoted. It would be great if single quotes were valid, since I've fallen into the habit of using them for the s

Re: [PHP] session_is_registered

2002-04-12 Thread Oliver Beddows
On Saturday 13 April 2002 12:01 am, you wrote: > Hi, > > If I have register_globals=off, how do I pass session variables? I tried > session_register("var1"). session_is_registered("var1") appears successful, > but if I tried to echo the $var1". Nothing shows. How do I pass session > variables? > >

[PHP] including class files with unserialize_callback_func

2002-04-12 Thread Ian
i am using the following to try to pull in php classes from separate files based on their names using unserialize_callback_func. I cant seem to get it to work with cgi php 4.1.6 on apache/redhat . I notice that it isnt shown under variables available for ini_set() but it is shown for unserialize()

[PHP] Re: mysql question --

2002-04-12 Thread Jason Caldwell
Got it figured out -- To export table structure: C:> mysqldump -d {database name} {tables} >sqltextfile.sql Then to import the new Table Structure: To import table structure / data C:> mysql {database name} mysqldump -d mydb subscribers >subscribers.sql ** edit the "subscr

[PHP] passing array from one page to itself?

2002-04-12 Thread sundogcurt
Hi again guys, I'm having trouble finding documentation on passing an array. Here is what I am doing. I have one page that calls itself, I want to pass an array that is setup the first time it's called to itself the second time it's called. I'm running out of both time AND hair (both of which a

[PHP] Monitoring a SSL Auth'd page

2002-04-12 Thread Ninety-Nine Ways To Die
Ok I got a question for you guys and gals, I am not sure how to go about this, looking for opinions. I am trying to open a secured url, we'll say https://www.bob.com/test/index.php?blah=freak Also, it's got http-auth in it, say user=abc and password=123, so how would I go about using php to d

Re: [PHP] session_is_registered

2002-04-12 Thread Norman Zhang
Sorry it still does not work. Can it be because I have HEADER(Location: ...) redirection after the session_registered('var1')? Regards, Norman "Oliver Beddows" <[EMAIL PROTECTED]> wrote in message 20020412235134.QNTP29761.mta05-svc.ntlworld.com@there">news:20020412235134.QNTP29761.mta05-svc.ntlw

  1   2   >