[PHP] Running PHP script within stylesheet?

2002-06-10 Thread William S.
Sorry, perhaps I should have been a bit more specific. Here is my *.php file. I want the hello world script to output to the Right Menu table on my web page: http://213.84.71.105/ . ?php $xml = ./test.xml; $xsl = ./test.xsl; $_parser = xslt_create(); if( !$result = xslt_process( $_parser,

RE: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread Tim Ward
Just off the top of my head wouldn't describe then mysql_num_rows() be a lot more efficient. Tim Ward www.chessish.com http://www.chessish.com [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- From: John Holmes [SMTP:[EMAIL PROTECTED]] Sent: 09 June 2002 18:29

[PHP] RE: simplicity with 2 queries..

2002-06-10 Thread Tim Ward
If ($result = mysql_query(SELECT * FROM $table_user, $table_quiz WHERE $table_quiz.user_id=$table_user.user_id AND username='$valid_user' AND password='$valid_password')) { if

RE: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread Mark
yes, I think getting the result set for 'describe $table' or 'show fields from $table' and then doing mysql_num_rows() on that is best because it will return right away and will work for empty tables as well. On Mon, 10 Jun 2002 09:00:41 +0100, Tim Ward wrote: Just off the top of my head

[PHP] help me please! :)

2002-06-10 Thread Veronica Ghezzi
Hi, i must get the information saved in a several select list named liv_1 select name=liv_1 liv_2 select name=liv_2 liv_3 select name=liv_3 liv_n select name=liv_n To get the value i work in this way...

[PHP] mysql dump -- via php

2002-06-10 Thread Wilbert Enserink
Hi all, I have a .txt file containing a mysql dump. Normally when I would restore this dump I would go to the mysql 'prompt' and type something like: mysql dimpfile.txt. I would use SSH or telnet for this. Now I have this new problem: I cannot reach the sql pompt via SSH/telnet. Is there

Re: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread hugh danaher
what's the matter with using mssql_num_fields() and get the answer directly. $fields = mysql_list_fields($db, $table, $link); $columns = mysql_num_fields($fields); Hugh - Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; John

RE: [PHP] help me please! :)

2002-06-10 Thread Kevin Porter
You need to escape the dollar sign with a backslash to prevent PHP trying to interpolate the variable $liv (which presumably doesn't exist). echo \$liv_$i; HTH, - Kev -Original Message- From: Veronica Ghezzi [SMTP:[EMAIL PROTECTED]] Sent: 10 June 2002 09:24 To: Php-General

[PHP] Free Hosting /w PHP/MySQL {!?}

2002-06-10 Thread Liam MacKenzie
Free hosting for PHP Developers! As many MySQL Databases as you need (Also accessible remotely if needed) PHP with all the bits http://scripts.operationenigma.net/phpinfo.php FTP Access Subdomain or Your own Domain Tech Support over MSN if needed 98% Uptime 2 Megabit Connection based in

Re: [PHP] help me please! :)

2002-06-10 Thread PHPCoder
?php $i = 1; $liv_1 = one; $liv_2 = two; $liv_3 = three; $liv_4 = four; $liv_5 = five; while ($i = 5 ) { $do = echo \$liv_{$i};; eval($do); echo br; $i ++; } ? Simply echoing the \$liv_$i will not work, need to evaluate the string after parsed as in example above... Kevin Porter wrote: You

Re: [PHP] help me please! :)

2002-06-10 Thread Marek Kilimajer
Try: for ($i=1; $i=$n;i++){ ... $tmp=liv_$i; echo {$$tmp}; ... } Veronica Ghezzi wrote: Hi, i must get the information saved in a several select list named liv_1 select name=liv_1 liv_2

Re: [PHP] help me please! :)

2002-06-10 Thread Josep R. Raurell
This work for me: liv_1select name=liv[1] liv_2select name=liv[2] liv_3select name=liv[3] liv_nselect name=liv[n] To get the value i work in this way... $liv= $_REQUEST['liv']; $n = 50; for ($i=1; $i=$n;i++){ ...

Re: [PHP] mysql dump -- via php

2002-06-10 Thread Jason Wong
On Monday 10 June 2002 16:34, Wilbert Enserink wrote: Hi all, I have a .txt file containing a mysql dump. Normally when I would restore this dump I would go to the mysql 'prompt' and type something like: mysql dimpfile.txt. I would use SSH or telnet for this. Now I have this new

[PHP] Re: Setting Cookies

2002-06-10 Thread Craig Donnelly
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.cooki es Use Superglobals...you will see what I mean. Also, Apache 2.0 is not recommended as of yet for PHP commercial development http://www.apacheweek.com/issues/02-06-07 Regards, Craig Scott 'Intense!' Reismanis [EMAIL

[PHP] Slow to warn...

2002-06-10 Thread Dan Bolser
Hi, I recently upgraded my server and now, when developing php, the server takes ages to respond to any php bug. I.e. When I am trying to debug my scripts, it takes ages to see what warning messages I get. Is there some check in the php.ini I used to have set which allows fast error

[PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread William S.
Can a php script be put within a stylesheet and work properly? If so, how? For instance, this script put inside an XSL stylesheet file: ?php $myvar = Hello World; echo $myvar; ? Then it is transformed into html via Sablotron. -- Bill

Re: [PHP] Re: Javascript PHP cookies

2002-06-10 Thread Erik Price
On Sunday, June 9, 2002, at 12:56 AM, John Taylor-Johnston wrote: Absolutely. I've done it. Cookies are cookies. What I don't like is that the cookie is not saved unitl after a submit. In Javascript, I have JS code that will assign a value and save it to a cookie and then recall the

[PHP] LDAP, SSL and Active Directory (W2K)

2002-06-10 Thread Andres Petralli
Hi NG Users, I'm implementing some php 4.2.x code to manipulate Microsofts AD. I have already set-up the domain controller to handle LDAP over SSL (Port 636) and it looks like it is working, at least I can download a certificate when I browse the server with HTTPS. The problem now is to get

Re: [PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread Andrew Brampton
Yes you can place one in a style sheet you just need to tell apache (or whatever) that .css should be parsed by PHP, this can be done via a .htaccess or something similar... Here is a example in a .htaccess file: AddType application/x-httpd-php .css andrew - Original Message - From:

[PHP] HTML or PHP problem? Please check this ...

2002-06-10 Thread ignacio . estrada
I have a capture form using text fields. This form receives data from the user and then through a php module the data will be stored on an Oracle database via ODBC. All the data is converted to caps using the strtoupper() function. However when the user writes characters like ñ the

[PHP] Re: phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-10 Thread Timothy J. Luoma
On Mon, 10 Jun 2002, Miguel Cruz wrote: On Sun, 9 Jun 2002, Greg Beaver wrote: June 9, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0rc1 http://www.phpdoc.org Best of all, with OSX IE 5.14, the page comes up completely blank. Well in Opera6/Win it's just a big mess, probably

Re: [PHP] HTML or PHP problem? Please check this ...

2002-06-10 Thread 1LT John W. Holmes
Can you do the strtoupper() in your query, using the appropriate Oracle function? Maybe it'll handle the different character sets better. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 3:07 PM Subject: [PHP] HTML or PHP

[PHP] php cgi problem on RH linux

2002-06-10 Thread Kevin Lowe
Hi, I have a RH 7.2 server with php 4.1.2 installed as a CGI. I'm trying to run this script #!/usr/local/phpcgi/bin/php -q ? print hello; ? I get this as output: [root@dev bin]# ./test.php Error in argument 1, char 3: option not found Error in argument 1, char 3: option not found Usage: php

[PHP] [debugger] ??

2002-06-10 Thread Dan Bolser
I want to use this package, with DBG v2.10pl1, (C) 2000,2001, by Dmitri Dmitrienko, [EMAIL PROTECTED], http://dd.cron.ru but I dont want to spend any money. Any one know of a nusphere hack? What is the story behind that? Cheers, Dan. -- PHP General Mailing List (http://www.php.net/) To

[PHP] RE: [PEAR-DEV] [debugger] ??

2002-06-10 Thread Lukas Smith
#1 Don't cross post like this ... asking about a free Editor that integrates with DBG would fit php-general but definitely not php-dev or pdphoc #2 Don't come to any of this lists for hacks for software #3 DBG is freeware and there are several Editors that integrate DBG SE IDE was bundeled with

[PHP] mail() function hangs

2002-06-10 Thread Phil Schwarzmann
Whenever a user runs the mail function, an e-mail messsage is sent properly but the page just hangs. Has anyone else had this problem?

[PHP] Re: mail() function hangs

2002-06-10 Thread Manuel Lemos
Hello, On 06/10/2002 12:07 PM, Phil Schwarzmann wrote: Whenever a user runs the mail function, an e-mail messsage is sent properly but the page just hangs. Has anyone else had this problem? I heard it happens on Windows but I am not sure why. It looks like it is missing \r\n somewhere.

Re: [PHP] mail() function hangs

2002-06-10 Thread Peterhead Info
I have read that the mail function doesn't come back if it fails ... but from what you are saying, the function didn't fail ... - Original Message - From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 4:07 PM Subject: [PHP] mail() function hangs

[PHP] array_reverse() recursive

2002-06-10 Thread Chris Boget
Does anyone have or know of a function that will take an array and do array_reverse() recursively? I have the following array/structure: Array ( [0] = Array ( [0] = Array ( [0] = bob ) ) [1] = Array

Re: [PHP] array_reverse() recursive

2002-06-10 Thread Stuart Dallas
Monday, June 10, 2002, 5:07:48 PM, you wrote: Does anyone have or know of a function that will take an array and do array_reverse() recursively? I have the following array/structure: Something like this (UNTESTED!!)... function recursive_array_reverse($arr) { foreach ($arr as $key =

Re: [PHP] array_reverse() recursive

2002-06-10 Thread Stuart Dallas
Monday, June 10, 2002, 5:12:50 PM, you wrote: Monday, June 10, 2002, 5:07:48 PM, you wrote: Does anyone have or know of a function that will take an array and do array_reverse() recursively? I have the following array/structure: Something like this (UNTESTED!!)... function

[PHP] OO Question

2002-06-10 Thread Jay
I was wondering can I create a new Object inside of a different class? class One { //constructor function One { $this-two = new Two; $this-test = $this-two-test(); } } Can you do that? If so is that how you do it? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] OO Question

2002-06-10 Thread Erik Price
On Monday, June 10, 2002, at 12:17 PM, Jay wrote: I was wondering can I create a new Object inside of a different class? class One { //constructor function One { $this-two = new Two; $this-test = $this-two-test(); } } Can you do that? If so is that how you do it? Exactly.

Re: [PHP] OO Question

2002-06-10 Thread Danny Shepherd
Yes, you can do that and yes that's how you do it :) Danny. - Original Message - From: Jay [EMAIL PROTECTED] To: Php-General (E-mail) [EMAIL PROTECTED] Sent: Monday, June 10, 2002 5:17 PM Subject: [PHP] OO Question I was wondering can I create a new Object inside of a different

Re: [PHP] phpDocumentor website issues

2002-06-10 Thread Greg Beaver
Miguel and others Sorry about the OSX problem and Opera 6 issue, I am not responsible for the web design, but will pass this on to the web designer. You can also directly view the sourceforge project at http://www.sourceforge.net/projects/phpdocu which will probably work in OSX IE 5. However,

php-general Digest 10 Jun 2002 16:02:47 -0000 Issue 1397

2002-06-10 Thread php-general-digest-help
php-general Digest 10 Jun 2002 16:02:47 - Issue 1397 Topics (messages 101355 through 101394): Re: simplicity with 2 queries.. 101355 by: John Holmes 101356 by: Bogdan Stancescu 101368 by: Tim Ward Re: Date? 101357 by: Bogdan Stancescu fputs/fgets working

Re: [PHP] OO Question

2002-06-10 Thread Gerard Samuel
Im no OO coder but I did try this before. I made (well started to anyway) a class that uses two other classes, and yes, $this-that-do_something() did work for me Jay wrote: I was wondering can I create a new Object inside of a different class? class One { //constructor function One {

[PHP] capturing bouncers.

2002-06-10 Thread Subhendu Mohapatra
I am sending mails from my site by PHP code ( mail($em, $sub, $temp, $headers); ) and wants to capture bouncers in one email address.( My intention is to remove those bounced address ). I have set the from address like this $from=From:[EMAIL PROTECTED]\n; $headers = $from.Content-Type:

[PHP] Calendars

2002-06-10 Thread Kevin P
Hi I am trying to feature a calendar on a web site. I would like it to display on a page and be able to change to another month when this is requested and display items for the general public. I want the client to be able to go into the database and update the items and those items to appear on

[PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Ilia A.
FUDforum 2.0 is a web forum released under the GPL license, written in PHP4 utilizing a MySQL database backend. The forum is completely customizable via a templating system, which is compiled for optimal performance. The templating system also has integrated i18n support, which allows the forum

[PHP] SMS with PHP

2002-06-10 Thread Alexandra Aguiar
Hello ppl... i'd like to know if it's possible that a php script sends message to a cell phone... i please anything about it ... thnx in advance.. Alexandra Aguiar

Re: [PHP] SMS with PHP

2002-06-10 Thread Chris Knipe
Not as far as I know. But the PHP script may very likely be able to send a message to a SMS Gateway... SMS messages doesn't run on TCP/IP (Your cell phone doesn't have a IP Address). Kind Regards, Chris Knipe MegaLAN Corporate Networking Services Tel: +27 21 854 7064 Cell: +27 72 434 7582

Re: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Jeff Lewis
Is it just me or the forum area totally overflowing with choices? I often wonder why people don't pool talents and work on really great products, instead people break off and make their own system - quite unusual... Jeff - Original Message - From: Ilia A. [EMAIL PROTECTED] To: [EMAIL

RE: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Ray Hunter
Try using a different database and it might be worth while... Thank you, RAY HUNTER -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 11:51 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] FUDforum 2.0 Stable Released Is it

Re: [PHP] FUDforum 2.0 Stable Released

2002-06-10 Thread Ilia A.
Jeff, You are absolutely correct that there are many forum software choices out there however, not are identical or even similar. First there is the design language choice, there are many forums that are written in PHP, but there are no less forums written in PERL, ASP and ColdFusion because

[PHP] safe mode and php cgi-binary

2002-06-10 Thread Lewis Watson
I have compiled and installed php4.2.1 on my linux www server that runs apache. Since we have many virtual hosts and utilize suexec I decided to install php as a binary and be able to use php as a cgi binary. I am able to run my php scripts through suexec which is great. The problem is that any

RE: [PHP] SMS with PHP

2002-06-10 Thread Jared Boelens
I had this exact need but I was solved partially by my cell phone provider. I have verizon and verizon actaully assigns each phone an email address if you have text messenging. So all i had to do was send an email to that address and it would go to my phone in about 30 seconds or so. -Jared

Re: [PHP] capturing bouncers

2002-06-10 Thread Analysis Solutions
Hi Subhendu: On Mon, Jun 10, 2002 at 10:38:10PM +0530, Subhendu Mohapatra wrote: $from=From:[EMAIL PROTECTED]\n; $headers = $from.Content-Type: text/html; charset=iso-8859-1\n; That should have a space in there. Also, it's best to have an \r too. From: [EMAIL PROTECTED]\r\n; --Dan --

[PHP] ForceType hack with Apache 2?

2002-06-10 Thread a . h . s . boy
I've built an application framework in PHP that makes heavy use of the smart URL technique for passing variables, which works great with Apache 1.3.22. I have reports, however, that it breaks under Apache 2.x, and would like to verify whether or not anyone can confirm this. I'm using URLs to

[PHP] matrix functions

2002-06-10 Thread johannes reichardt
hi list, i have a question regarding a class for matrix modifications so i dont have to re-invent the wheel ;) i would like to do things like this: matrix with 5*5 colums/rows x x x x x 0 0 0 0 0 x x x x x x x x x x x x x x x x x x x x x x x x x 0 0 0 0 0 x x x x x x x x x x maybe that

[PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc
After completing most of the coding for my site, I would like to use https for restricted areas that require login. In short tests, I've discovered that, yes, I can engage the encrypted mode while calling these pages, but I've also discovered that it stays in the https mode even when it passes

RE: [PHP] matrix functions

2002-06-10 Thread Lazor, Ed
I think this will work. You'll have to test it to confirm: $A[0][0] = x; $A[0][1] = x; $A[0][2] = x; $A[0][3] = x; $A[0][4] = x; $A[1][0] = 0; $A[1][1] = 0; $A[1][2] = 0; $A[1][3] = 0; $A[1][4] = 0; $B = $C = array(); $B = $A[0]; $C = $A[1]; $A[0] = $C; $A[1] = $B; -Original

RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed
Isn't it just an issue of whether you call http: or https: ? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Switching from HTTPS to HTTP using PHP? After completing most of the coding for my

Re: [PHP] matrix functions

2002-06-10 Thread Pushkar Pradhan
If there isn't one, (have you tried phpclasses.org etc.), I think the string functions are powerful enough. What kind of manipulations you need? Is it simple column/row transforms or doing all kinds of maptrix operations? hi list, i have a question regarding a class for matrix modifications so

Re: [PHP] ForceType hack with Apache 2?

2002-06-10 Thread Danny Shepherd
I ran into this problem too - but there is a conf directive to handle it now (even on FreeBSD, which I use) - http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo Danny - Original Message - From: a.h.s.boy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 7:14

[PHP] Re: Calendars

2002-06-10 Thread Tom Sommer
Kevin P [EMAIL PROTECTED] skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I am trying to feature a calendar on a web site. I would like it to display on a page and be able to change to another month when this is requested and display items for the general public. I want

Re: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc
Hi Ed, Maybe it's just one of those slow days, brain-wise. But I have a 'problem' with https remaining in that mode even on pages that haven't specifically requested it. That was not my understanding how it worked. Now, if I have to call http on pages that do not need https, then how would I

[PHP] Apache 2.0 or 1.3 for php on windows XP ?

2002-06-10 Thread Thomas Edison Jr.
Glory! I have Windows XP Home Edition.. and i downloaded the latest PHP mySQL. I have Apache 1.3.19 earlier, which for some reason gives Service Apache Not Installed now even when everything is installed, on my windows XP. So i decided to get a new Apache Web Server. They have 2 versions

Re: [PHP] Apache 2.0 or 1.3 for php on windows XP ?

2002-06-10 Thread Thomas Edison Jr.
Ok... i'll go for 1.3.24 Thanks, T. Edison Jr. --- R'twick Niceorgaw [EMAIL PROTECTED] wrote: use apache 1.3.24.. php has experimental support for apache 2.0.x.. so don't trust it much - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Calendars

2002-06-10 Thread Jason Wong
On Tuesday 11 June 2002 01:24, Kevin P wrote: Hi I am trying to feature a calendar on a web site. I would like it to display on a page and be able to change to another month when this is requested and display items for the general public. I want the client to be able to go into the database

[PHP] multi-line textfields don't post

2002-06-10 Thread Phil Schwarzmann
Whenever I use a mult-line textfield, the data inside doesn't transfer over. But single-line textfields work just fine. how do i fix this?

[PHP] Re: multi-line textfields don't post

2002-06-10 Thread Shane Kelly
Do you mean the data doesn't transfer over to your database? Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Whenever I use a mult-line textfield, the data inside doesn't transfer over. But single-line textfields work just fine. how do i fix

[PHP] Help with header function

2002-06-10 Thread Shane Kelly
I'm creating an upload form for users to upload files to my server. but I don't want them to overwrite existing files if they try to upload using the same file name... THE FOLLOWING SCRIPT WORKS PERFECTLY if (file_exists(uploads/documents/.$file_name)==TRUE) { die (File already exists);

Re: [PHP] multi-line textfields don't post

2002-06-10 Thread Kevin Stone
By multi-line text field do you mean a textarea field? Could be you're not using it right. Remeber this construct *requires* the closing tag. The vlaue goes between the two tags. textarea name=text cols=15 rows=5/textarea ? echo $_POST['text']; ? - Original Message - From: Phil

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
What kind of an error are you recieving? Could it be you're sending output prior to the header function? The alternative solution would be to include(file_exists.php); then exit. -Kevin - Original Message - From: Shane Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June

Re: [PHP] Help with header function

2002-06-10 Thread Stuart Dallas
On Monday, June 10, 2002 at 8:03:40 PM, you wrote: header(Location:http://www.mysite.com/file_exists.php;); You should have a space after Location:... header(Location: http://www.mysite.com/file_exists.php;); If that's not it, please post the error/what happens. We are not mind readers. --

[PHP] storing html in a db

2002-06-10 Thread W. Enserink
hi all, i was wondering, i'm making a php page. this php page is outputting a very lot of html to a browser. is it also possible to capture this html code and store it in a database? so later on i can retrieve a full html page without the dynamic elements in it thx Wilbert

Re: [PHP] Formatting XML Data

2002-06-10 Thread olinux
Check out these articles at DevShed http://www.devshed.com/Server_Side/XML/XMLwithPHP/ olinux --- Dan Hardiker [EMAIL PROTECTED] wrote: I would like some of the text to be bold, or maybe I would like to insert a hyper-link. Unfortunately it does not seem I can do this with ordinary HTML

Re: [PHP] Help with header function

2002-06-10 Thread Shane Kelly
I don't get an error message...but the page doesn't automatically forward to the redirected url. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Formatting XML Data

2002-06-10 Thread Ray Hunter
Also checkout phpbeginner.com it has an article about xslt, xml and php... www.phpbeginner.com Thank you, RAY HUNTER -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 9:21 AM To: PHP General List (PHP.NET) Subject: [PHP] Formatting XML

RE: [PHP] storing html in a db

2002-06-10 Thread Jared Boelens
You might consider using output buffering in order to accomplish that goal. http://www.php.net/manual/en/ref.outcontrol.php You could buffer the entire page and store the buffer into the DB at the end of the page load. -Jared -Original Message- From: W. Enserink [mailto:[EMAIL

Re: [PHP] storing html in a db

2002-06-10 Thread 1LT John W. Holmes
Look at the output buffering section in the manual. Read the user comments. http://www.php.net/manual/en/ref.outcontrol.php ---John Holmes... - Original Message - From: W. Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 3:34 PM Subject: [PHP] storing html

[PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan
I am trying to display on a web page a daily message from a mailing list that I am on. What I want is to have a script run on my server each day at a certain time that reads the mail file that contains the daily email message, takes the Article Titles and makes them the link text to be used with

RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed
I'm pretty sure it's just an issue of using HTTPS for encrypted pages and HTTP for unencrypted. For example: http://www.example.com is unencrypted and pulls from port 80 on the web server. Whereas, https://www.example.com would be encrypted and come from port 443 on the web

RE: [PHP] multi-line textfields don't post

2002-06-10 Thread Lazor, Ed
Give us a copy of the code so we can tell what you're talking about. -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: [PHP] multi-line textfields don't post Whenever I use a mult-line textfield, the

RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
You'll need to have a cgi version of PHP to use in cronjobs and you'll need to use http://www.php.net/manual/en/function.preg-grep.php Good luck =) -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 12:48 PM To: [EMAIL PROTECTED] Subject:

Re[2]: [PHP] Parse an email message for content

2002-06-10 Thread Julie Meloni
LE You'll need to have a cgi version of PHP to use in cronjobs Not entirely true; you can run a script off your server as well, using lynx -dump http://server/path/to/file as the line in crontab - Julie -- Julie Meloni -- [EMAIL PROTECTED] -- www.thickbook.com -- PHP General Mailing List

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
The only thing I can think of is that you have a syntax error in the header. -Kevin - Original Message - From: Shane Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:43 PM Subject: Re: [PHP] Help with header function I don't get an error message...but the

RE: Re[2]: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
Good point. -Original Message- LE You'll need to have a cgi version of PHP to use in cronjobs Not entirely true; you can run a script off your server as well, using lynx -dump http://server/path/to/file as the line in crontab - Julie

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
I'm pretty sure it was the lack of a space in the header field between Location: and the actual url. -Original Message- The only thing I can think of is that you have a syntax error in the header. -Kevin

Re: [PHP] storing html in a db

2002-06-10 Thread W. Enserink
thx great tip:-) - Original Message - From: Jared Boelens [EMAIL PROTECTED] To: W. Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:41 PM Subject: RE: [PHP] storing html in a db You might consider using output buffering in order to accomplish that goal.

Re: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
Don't be so sure. :) I did a test with two location headers, one with and one without a space, both worked properly. But when I purposfully misspelled Location to introduce a syntax error, the page did not redirect or give an error. This is exactly the result he was reporting so clearly there

[PHP] Compare 2 resultsets of db-query

2002-06-10 Thread Danny Kruitbosch
Hi, I've two queries on the same table. They have the following structure: Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1 Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 GROUP BY FIELD1 Now I want to print a table that prints the values of

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
LOL Yea, it's always much easier if we have actual code to work from rather than taking guesses in the dark. -Original Message- Why do I get the feeling I'm playing that mind bender game where you have to guess the right combination within so many turns? LOL

[PHP] url string

2002-06-10 Thread Kris Vose
I am looking for a way to pass two variables in a url string to a php script. I originally was using java script to acomplish this because once the user is redirected they can not press the back button to get back to the original page. It looks like this: ? script window.location =

RE: [PHP] url string

2002-06-10 Thread Leotta, Natalie (NCI/IMS)
Instead of window.location, try document.formName.target = file.php?params - that's how I have mine set up and it works well. You need to follow that with document.formName.submit() -Natalie -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 4:41

RE: [PHP] Compare 2 resultsets of db-query

2002-06-10 Thread Lazor, Ed
What you're asking is considered a UNION. I'm not sure which database you're using, so I can't tell if it supports UNIONs or not. If you're using MySQL, UNIONs are supported in version 4.0-alpha. Another approach is storing the results of both queries in single array and then pulling it from

Re: [PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan
Ed, Thanks for the reply. Actually, I have the module version and the cgi version of PHP running on my server. I have another script that I run daily, but that is a different beast with my own content. Also, I know about egrep and preg_egrep, great functions. However, I am looking for an

[PHP] Re: url string

2002-06-10 Thread Scott Hurring
Did you verify that the variables actually contain data? They're probably empty, which is why they dont seem to be passing correctly. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- Kris Vose [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
Exploding at the = is a good idea. I'd just fread the file into a variable, explode it, and then egrep up to the first delimeter. I'm not sure if this is the best approach... but it's the most likely approach I'd take if I were working on this. =) --- I am looking for an

[PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Timothy J. Luoma
On Mon, 10 Jun 2002, Andrew Brampton wrote: Yes you can place one in a style sheet you just need to tell apache (or whatever) that .css should be parsed by PHP, this can be done via a .htaccess or something similar... Here is a example in a .htaccess file: AddType application/x-httpd-php

RE: [PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Lazor, Ed
CSS in this sense is client side. As long as the PHP output is valid style codes, you should be ok. -Original Message- On Mon, 10 Jun 2002, Andrew Brampton wrote: Yes you can place one in a style sheet you just need to tell apache (or whatever) that .css should be parsed by PHP, this

Re: [PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread 1LT John W. Holmes
The PHP parsing would take place before the file is sent to the browser. The CSS goes into effect when it hits the browser, on the client side, so it wouldn't matter. All the client cares is that there was a CSS file sent, it doesn't care if it was text or created by PHP or whatever. That's how

RE: [PHP] Calendars

2002-06-10 Thread David Freeman
I am trying to feature a calendar on a web site. I would like it to display on a page and be able to change to another month when this is requested and display items for the general public. I want the client to be able to go into the database and update the items and those items to

Re: [PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Dan Hardiker
That's how I interpret it at least... Does the CSS file _HAVE_ to end in .css? Or does it just matter how you link HTTP content headers can be used to tell the client that this is a file of a different name. EG: I have a pdf outputted from a output.php file and to make it look like file.pdf

RE: [PHP] Parse an email message for content

2002-06-10 Thread Michael Geier
while not documented, PHP now has the mail-parse functions (see documentation for function list) -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse an email message for content Ed,

[PHP] SAFE MODE

2002-06-10 Thread Georgie Casey
How do i setup safe mode scripting (each script has a different uid) on my win32, apache, php setup? my plesk host has to use it and i want to be able to test my scripts on my own computer. i set safe mode = On in my php.ini file but the script still lets me include a file, whereas the script on

[PHP] Arrays

2002-06-10 Thread Dan
I'm trying to get my head around arrays and how to munipulate them. what I need to do is add html around the arrays eg. lia href='.$link(0).'.$name./a/li; I have my head around that but I the number of lines the I need to create is going to change so I need the script to repeat untill all the

Re: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Andre Dubuc
Thanks Ed, As you mentioned in your last lines, I'll have to specify the http protocol for the ordinary pages -- I hadn't done that yet. I assumed it would default to http; but, if I had thought about it, that wouldn't make sense. Unless told otherwise, https would not know that another

[PHP] self processing forms

2002-06-10 Thread Bill Hudspeth
I am using the O'Reilly Programming PHP manual, and have copied the code from Example 7.3, p. 166. I have the magic_quotes_gpc set to ON in php.ini (though toggling between on and off doesn't seem to have any effect). My processed form reports 0.00F is -17.78C regardless of the initial

  1   2   >