[PHP] PHP, LDAP and SASL

2002-04-12 Thread Quinn Perkins
I have an OS X box that has been running PHP 4.1.2 and OpenLDAP 2.0.23 without any problems. I can bind to the LDAP database from PHP and everyone is happy. I wanted to build a new box with Cyrus-IMAP, Cyrus-SASL and OpenLDAP, moving my mail and authentication to it and leave the first box to

Re: [PHP] Error accessing class

2002-04-12 Thread Tyler Longren
Hi Andrew, This error indicates that your path to class.Htpasswd.php3 is wrong. use this: include("path/to/class.Htpasswd.php3"); Right now, it's set to look in the php/includes dir. If the file is actually in there, then apache might not have perms to read the file (IE: it's owned by root). G

[PHP] Error accessing class

2002-04-12 Thread Andrew Schoenherr
Hello, PHP Version: 4.1.0, Apache Version: 1.3.12, Server: Linux 7.0 Class name: class.Htpasswd.php3 Thanks to Jason Wong for pointers on posting to the list, the parse error was a simple omission of a quotation mark on my part. This is the error I am getting... Warning: Failed opening 'class.

Re: [PHP] How can I read client-side files or upload them to aserver?

2002-04-12 Thread Justin French
To the best of my knowledge, the only files you should be able to read off the client side are cookies originating from the same domain.* Otherwise, it'd be a massive breach of privacy. The only other option is for the user to browse their hard drive, select a file via a web based form, and uplo

[PHP] Cannot enter single quotation marks in fields

2002-04-12 Thread Denis L. Menezes
Hello friends , I cannot enter single quotation marks in fields. Is this a standard feature ? Is there a workaround? I am using mysql + php4 on unix. Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-04-12 Thread phplists
My mistake, you have the directory line correctly written with the forward slash.. But the hosts file should not have any extension.. Bob <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You need to make sure the hosts file in c:\windows is called just hosts wit

[PHP] How can I read client-side files or upload them to a server?

2002-04-12 Thread Don
Is there a way, in PHP, for me to read client-side files or upload them to a server? Thanks, Don

[PHP] Re: Pass variables via URL

2002-04-12 Thread phplists
This works: " width=150 height=100 border=0> This works too if you're not opposed to using straight php: \n\nImage Switch\n"; print "\n"; print "\n"; ?> Later, Bob Weaver "Craig Westerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to set

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

2002-04-12 Thread phplists
You need to make sure the hosts file in c:\windows is called just hosts with no extension.. Just rename it.. It may also take a reboot and/or some time for windows to start using it properly.. And it may help to change the forward slash in to a backslash.. Later, Bob "Tiago SimõEs" <[EMAIL PROT

[PHP] form mail with attachment

2002-04-12 Thread mm fernandez
i have this code for my form mail: i need to add an attachment file with the variable $file. what do i need to add in the code so that i will also be able to receive the attached file sent from the website? _ Get your FREE dow

[PHP] Re: Closing curly brackets?

2002-04-12 Thread Jennifer Downey
My apologies for putting this in the wrong list. Jennifer "Jennifer Downey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi everyone, > > I have a question about this code. The way it sits now it always shows the > last record in the table. > in other words

Re: [PHP] using php for keywords

2002-04-12 Thread olinux
Here's a start. http://www.phpbuilder.com/columns/tim2526.php3 olinux --- Marc <[EMAIL PROTECTED]> wrote: > hi > > how can i use php to list keywords in search engines > ?!? > how to index a website keywords via php =) > > plz mail > > thx > > > > > -- > PHP General Mailing List (h

Re: [PHP] quotes

2002-04-12 Thread Analysis & Solutions
> From: "Heidi Belal" <[EMAIL PROTECTED]> On Fri, Apr 12, 2002 at 03:15:13PM -0700, hugh danaher wrote: > > > like this."> > addslashes() > stripslashes() Nay. She's asking about HTML. Slashes aren't going to solve that. All output from databases, or wherever, needs to go through htmlspec

[PHP] Closing curly brackets?

2002-04-12 Thread Jennifer Downey
Hi everyone, I have a question about this code. The way it sits now it always shows the last record in the table. in other words if the user has 6 items, like: item id 1 item id 2 item id 5 item id 6 item id 7 item id 8 it will only show the last record item id 8. I believe it has something to

Re: [PHP] Regilar expressions problem

2002-04-12 Thread Oliver Beddows
On Saturday 13 April 2002 2:13 am, you wrote: > I have an interactive website, with forums programmed by me.  They have > smilies, and I'm trying to make a way  for users to be able to type smilies > without them changing to images if they want.  I'm trying to make it so if > they type "NOSMILE:)"

Re: [PHP] how to detect error

2002-04-12 Thread Rasmus Lerdorf
Read the chapter on connection handling in the manual. Basically you need to register a shutdown function using register_shutdown_function() and check connection_status() from that. -Rasmus On Fri, 12 Apr 2002, Charmaine Tian wrote: > Hi, > > If a PHP script is terminated due to time out (defi

Re: [PHP] variable scoping...

2002-04-12 Thread Rasmus Lerdorf
The documentation is outdated. That restriction has been lifted as of PHP version 4.0.6. (cc'ing phpdoc to fix) -Rasmus On Fri, 12 Apr 2002, Aric Caley wrote: > but the virtual() documentation says you can't use it on a php script? > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message > [

[PHP] inclusion of class definitions with unserialize_callback_func in php.ini

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 unseria

Re: [PHP] variable scoping...

2002-04-12 Thread Aric Caley
but the virtual() documentation says you can't use it on a php script? "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 goin

[PHP] Re: variable scoping...

2002-04-12 Thread Aric Caley
Believe me, I'm not doing it on purpose. I'm trying to get two different script packages to play nice with each other and I want to keep the modifications at a minumum to make it easier to update the software. Specificaly I'm talking about a weblog package (phpslash) and forums package (phpbb), a

[PHP] Regilar expressions problem

2002-04-12 Thread Leif K-Brooks
I have an interactive website, with forums programmed by me. They have smilies, and I'm trying to make a way for users to be able to type smilies without them changing to images if they want. I'm trying to make it so if they type "NOSMILE:)" it will remove the NOSMILE and not display the smiley

Re: [PHP] Monitoring a SSL Auth'd page

2002-04-12 Thread Rasmus Lerdorf
See the curl extension. http://php.net/curl And as of PHP 4.3 you will be able to open an https page directly with fopen(). -Rasmus On Fri, 12 Apr 2002, Ninety-Nine Ways To Die wrote: > Ok I got a question for you guys and gals, I am not sure how to go about this, >looking for opinions. > >

Re: [PHP] session_is_registered

2002-04-12 Thread Oliver Beddows
Sorry...I must get some sleep. Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: country ip recognition and php

2002-04-12 Thread Manuel Lemos
Hello, Nick Wilson wrote: > What functions do I need to be looking at if I want to determine from > what country a visitor is from? > > Is this problematical, I look at my logs shows that not all visitors > form .dk have that at the end of the refferer string... You may use GetEnv("REMOTE_HOST"

Re: [PHP] session_is_registered

2002-04-12 Thread Oliver Beddows
On Saturday 13 April 2002 1:19 am, you wrote: > Sorry it still does not work. Can it be because I have HEADER(Location: > ...) redirection after the session_registered('var1')? > > Regards, > Norman Okay, This worked on my machine, PHP v4.1.2. Regards, Oliver -- PHP General Mailing List (htt

Re: [PHP] passing array from one page to itself?

2002-04-12 Thread Richard Baskett
If you are passing it through a posted form, just name your array variable name[] So for example: When it is posted php will realize it's an array and treat it such. Or if you are just passing it through a link, you can do the same thing.. link Or you can serialize/deserialize.. Or you cou

Re: [PHP] passing array from one page to itself?

2002-04-12 Thread sundogcurt
You didn't by any chance go by the name 99ways2die at one time did you? I thought of that but when the second page loads the values are dumped into a db and I have it written already and it uses an array, I would like to keep it that way (Gru) [EMAIL PROTECTED] wrote: >You could do something

[PHP] New to web / PHP development. Please take pity on me.

2002-04-12 Thread Marc Shlaes
I made the simplest program I could to try to figure out why my session_start() isn't working. PHPINFO tells me that 1. Sessions are enabled. 2. The path c:/temp is shown so php.ini is doing the right thing The path exists and can be successfully written to from the OS The OS is WIN98 running A

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

[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

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

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

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

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

[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

Re: [PHP] quotes

2002-04-12 Thread hugh danaher
Heidi, to your input: addslashes() to your output: stripslashes() Hope this helps, Hugh - Original Message - From: "Heidi Belal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]>; "Egypt Developers" <[EMAIL PROTECTED]>; "Egypt Programmers" <[EMAIL PROTECTED]>; "js-jive mailing list"

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

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

[PHP] quotes

2002-04-12 Thread Heidi Belal
Dear All, I'm facing a problem and can't figure out the solution and would love anyones help. the situation is this: i have a form for users to fill, i take their entry and enter it in the database, then i take it and display it in a form so they can edit it. the problem is this: if uses enter dou

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

[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

[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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

[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

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

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

[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

[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

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

[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

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

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

  1   2   >