[PHP] Running PHP script within stylesheet?
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,// resource xh $xml,// string xml $xsl,// string xsl NULL,// string result array(), // array arguments array() // array parameters ) ) { printf( Sablotron Error (%s): br /strong%s/strong, xslt_errno($_parser), xslt_error($_parser) ); } xslt_free($_parser); echo $result; ? On Mon, Jun 10, 2002 at 02:23:21PM +0800, James wrote: It's quite easy to display a result within a table, here are two examples... ?php $myvar = Hello World; ? html body table tr td?= $myvar ?/td /tr /table /body /html ?= $var ? is the equivalent to ?php echo $var ? snip -- Bill Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP function for listing number of columns in table
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 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHP function for listing number of columns in table No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use that function to find out how many columns are in the table. www.php.net/mysql_num_fields ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP function for listing number of columns in table Pardon the probably stupid question but, Is there a PHP function for listing number of columns in a mySQL table? Thanks in advance JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: simplicity with 2 queries..
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 ($array = mysql_fetch_array($result)) { $quiz_id = $array[quiz_id]; } else { // log in failed } } I think you need to spend a bit of time on basic sql and structure your code a bit if you want the desired result. Tim Ward www.chessish.com http://www.chessish.com [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- From: Jule Slootbeek [SMTP:[EMAIL PROTECTED]] Sent: 10 June 2002 04:35 To: php-general Subject: simplicity with 2 queries.. Hey guys and gals, I have the following function which accesses the following tables, now i want to know if there is a way to get the quiz_id from table quiz without runnning both these queries... thanks, Jule --tables-- mysql describe user; ++--+--+-+-++ | Field | Type | Null | Key | Default | Extra | ++--+--+-+-++ | user_id| int(10) unsigned | | PRI | NULL| auto_increment | | first_name | varchar(10) | | | | | | last_name | varchar(20) | | | | | | email | varchar(100) | | | | | | username | varchar(16) | | | | | | password | varchar(32) | | | | | ++--+--+-+-++ mysql describe quiz; +-+--+--+-+-++ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+-++ | quiz_id | int(10) unsigned | | PRI | NULL| auto_increment | | user_id | int(10) unsigned | | | 0 | | | title | varchar(255) | | | | | | noa | tinyint(2) | | | 0 | | +-+--+--+-+-++ --function-- function addquiz_get_quiz_id() { global $valid_user, $valid_password; mysql_select_db($db_glob, $link_glob); $table_user = user; $table_quiz = quiz; $query = SELECT * FROM $table_user WHERE username='$valid_user' AND password='$valid_password'; $result = mysql_query($query); $user_info = mysql_fetch_array($result); $user_id = $user_info[user_id]; $query = SELECT * FROM $table_quiz WHERE user_id='$user_id'; $result = mysql_query($query); $user_info = mysql_fetch_array($result); $quiz_id = $user_info[quiz_id]; mysql_close($link_glob); return $quiz_id; } -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP function for listing number of columns in table
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 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 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHP function for listing number of columns in table No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use that function to find out how many columns are in the table. www.php.net/mysql_num_fields ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP function for listing number of columns in table Pardon the probably stupid question but, Is there a PHP function for listing number of columns in a mySQL table? Thanks in advance JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] help me please! :)
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... $n = 50; for ($i=1; $i=$n;i++){ ... echo $liv_$i; in asp i do: response.write (request(liv_ + i)) ... } But i get only 1 2 3 ... 50 What can i do to get $liv_1 ... $liv_2... ??? Thank you a lot! Veronica Ghezzi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql dump -- via php
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 any other way to create all the tables and records from the dumpfile.txt into the database on the database server?? Maybe it is possible to copy paste the sql statements into a php file which can do this? I can then upload this php file to the webserver and perform the job. Maybe anybody can advise me on the php code part of this solution. Regards, thx Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -
Re: [PHP] PHP function for listing number of columns in table
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 Holmes [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:18 AM Subject: RE: [PHP] PHP function for listing number of columns in table 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 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 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHP function for listing number of columns in table No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use that function to find out how many columns are in the table. www.php.net/mysql_num_fields ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP function for listing number of columns in table Pardon the probably stupid question but, Is there a PHP function for listing number of columns in a mySQL table? Thanks in advance JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] help me please! :)
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 Subject: [PHP] help me please! :) 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... $n = 50; for ($i=1; $i=$n;i++){ ... echo $liv_$i; in asp i do: response.write (request(liv_ + i)) ... } But i get only 1 2 3 ... 50 What can i do to get $liv_1 ... $liv_2... ??? Thank you a lot! Veronica Ghezzi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Free Hosting /w PHP/MySQL {!?}
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 Brisbane, Australia Only catch is that I can't have downloads on my servers. I have a 5 Gig Monthty transfer limit, so no MP3s or thereabouts please. Contact me if you're interested. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help me please! :)
?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 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 Subject: [PHP] help me please! :) 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... $n = 50; for ($i=1; $i=$n;i++){ ... echo $liv_$i; in asp i do: response.write (request(liv_ + i)) ... } But i get only 1 2 3 ... 50 What can i do to get $liv_1 ... $liv_2... ??? Thank you a lot! Veronica Ghezzi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help me please! :)
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 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... $n = 50; for ($i=1; $i=$n;i++){ ... echo $liv_$i; in asp i do: response.write (request(liv_ + i)) ... } But i get only 1 2 3 ... 50 What can i do to get $liv_1 ... $liv_2... ??? Thank you a lot! Veronica Ghezzi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help me please! :)
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++){ ... echo $liv[$i]; Josep R. Raurell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql dump -- via php
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 problem: I cannot reach the sql pompt via SSH/telnet. Is there any other way to create all the tables and records from the dumpfile.txt into the database on the database server?? Maybe it is possible to copy paste the sql statements into a php file which can do this? I can then upload this php file to the webserver and perform the job. Maybe anybody can advise me on the php code part of this solution. The easiest solution is to install phpMyAdmin. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Doing gets it done. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Setting Cookies
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 PROTECTED] wrote in message 01c20e9f$c8720620$850d2dcb@intense">news:01c20e9f$c8720620$850d2dcb@intense... Hey all, I am having some troubles setting cookies at the moment wondering if anyone knows the solution. Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie(username, $HTTP_POST_VARS['username'], time()+31536000); setcookie(password, $HTTP_POST_VARS['password'], time()+31536000); only the cookie that was called last, i.e. 'password' will be set. I only started noticing this problem since I installed php4.2 and apache2.0, is that the cause? Has anyone shared a similar experience, and if so is there a fix? Thanks for your time as always. Regards, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Slow to warn...
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 reporting? What php developement package do you recommend for linux? Cheers, Dan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can a php script be placed within a stylesheet?
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 Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Javascript PHP cookies
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 cookie value and document.write(myvalue), over and over if I want, without EVER submitting. It works as the page loads. Need JS code? Yes, because it's a client side operation. Remember, it's the submit that is telling the web server to send a cookie. JavaScript code, being client side, can set the cookie without a page submit, just like a mathematical calculation can be done without a page submit in JavaScript but not with PHP. To further this clarification, the reason why you can't read the cookie that you're setting in the same page is because that cookie was never sent to the web server for PHP to recognize. In other words, you may think that because you set a cookie at some point during a given script (that is sent to the user agent), that cookie is now available later in the same script. It's not. The cookie needs to be sent to the web server with a page request in order for the web server/PHP to know it's there. This hasn't happened yet. To beat a dead horse, this is exactly what happens in this order, and the steps are separate: 1. User makes a GET/page request of the web server 2. The resource requested on the web server is a PHP script, and one of its effects is to say when this resource is sent to the browser, give this cookie along with it 3. Only AFTER the script executes and is transmitted (thus only AFTER the script is actually done doing its work) does the cookie appear on the client side. So the script is unable to read the cookie it is setting. 4. If the user makes another request to that domain, THEN the cookie is available, because the cookie is sent along with that request. In JavaScript, all of this is done on the client side, so the cookie can be read immediately once it is set without the need for requests and page submits or what have you. If you think in terms of HTTP it all makes total sense. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LDAP, SSL and Active Directory (W2K)
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 the certificate into php. Does anyone have some clues how to manage this? Basically, what I'm trying to do is to build a web-frontend to change passwords for AD accounts. I wouldn't like to re-invent the wheel, so I'd really appreciate if someone could post some code samples. Also, if somebody already knows about some working ASP (VB) code, that would also be very much appreciated. Anyway, it would be important to at least be able to authenticate users agains AD with php, what probably means that I still have to set-up a PHP/LDAP over a SSL connection to AD. If anyone knows how to get a certificate into PHP, so that it is possible to connect with something like this $ds = ldap_connect(ldaps://servername:636); that would be really great. I've been browsing a lot on the web now and I really have tried almost any search combinations with google and other search engines, but I couldn't find any usefull docs on this topic. There are many people looking into this issue, but finally most of them seem to fail when it comes to connect to AD over SSL. If someone here has experience in this field, I think he could do a favour to lots of developers, since it looks like this is a major problem when it comes to interoperability between Win2k and common Unix systems. Should I be successful in my research, I really would be willing to write a decent documentation about this, so that others wont have to waste so much time again, like others did on this topic. Kind regards to everyone, Andres -- Andres Petralli, Arpanet AG Steinengraben 18, 4002 Basel, Switzerland Tel: +41 (0)61 276 96 60, Fax: +41 (0)61 276 96 66 http://www.arpanet.ch/ PGP: CDD7 E772 D14B 407A 4343 6901 74A5 A74D AE98 6BE4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can a php script be placed within a stylesheet?
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: William S. [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:33 PM Subject: [PHP] Can a php script be placed within a stylesheet? 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 Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTML or PHP problem? Please check this ...
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 strtoupper() function changes the character (to another character but not to Ñ, or the corresponding upper character), so the ODBC manager reports an error message becouse he does not accept the converted character. Does somebody knows how can I get the correct character converted ? I will apprecciate so much your help ! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT
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 because Opera doesn't support 'overflow' properly. Greg: I'm assuming you're the web designer or at least know who the webdesigner is I appreciate the obvious effort to make your pages validate XHTML and CSS. There are a couple small errors that I thought I'd point out, not to say ha ha your code doesn't validate (because it's better than 99% of the web, and probably much better than several pages I've worked on) but just to try and be helpful There are a bunch of CSS errors listed at http://jigsaw.w3.org/css-validator/validator?uri=http://phpdocu.sourceforge.net/phpdocumentor.css ... It looks like there is some kind of expression there that the validator isn't aware of (and I've never seen): height:expression((document.body.clientHeight-105)*.30); As for the XHTML, line 229 needs a space before the 'width=105 height=31' img src=http://sourceforge.net/sflogo.php?group_id=11194amp;type=5width=105; height=31 alt=SourceForge Logo / The _target=blank isn't valid for the doctype defined no character set is defined The page looks great in Mozilla-1.0/win, and even in IE6/win, (heck even Netscape4.79 doesn't look bad ;-) but not in Opera6 TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML or PHP problem? Please check this ...
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 problem? Please check this ... 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 strtoupper() function changes the character (to another character but not to Ñ, or the corresponding upper character), so the ODBC manager reports an error message becouse he does not accept the converted character. Does somebody knows how can I get the correct character converted ? I will apprecciate so much your help ! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php cgi problem on RH linux
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 [-q] [-h] [-s [-v] [-i] [-f file] | {file [args...]} etc if I remove the -q (ie first line #!/usr/local/phpcgi/bin/php) I get: [root@dev bin]# ./test.php bash: ./test.php: No such file or directory PHP seems to be OK : [root@dev bin]# /usr/local/phpcgi/bin/php -m Running PHP 4.1.2 Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies [PHP Modules] xml standard session posix pcre mysql imap [Zend Modules] Not Implemented The same script works fine on another server (with a different path to php) so, not being a Linux guru I'm stuck at this point. The script's permissions are set to 755. Any help would be great! Many thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [debugger] ??
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 unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PEAR-DEV] [debugger] ??
#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 DBG version 2.10, but was dropped afterwards (dunno if the old version is still up on the site) PHPEdit is Opensource www.phpedit.com Maguma Light is freeware www.maguma.com Best regards, Lukas Smith [EMAIL PROTECTED] ___ DybNet Internet Solutions GbR Reuchlinstr. 10-11 Gebäude 4 1.OG Raum 6 (4.1.6) 10553 Berlin Germany Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de [EMAIL PROTECTED] -Original Message- From: Dan Bolser [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 4:20 PM Cc: [EMAIL PROTECTED]; PHP Mailing List; [EMAIL PROTECTED] Subject: [PEAR-DEV] [debugger] ?? 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. -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() function hangs
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
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. Can you please tell if this PHP class works for you so we can realize that it is really a PHP bug? http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() function hangs
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 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array_reverse() recursive
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 ( [2] = Array ( [other] = joe [3] = Array ( [joe] = monster [4] = Array ( [monster] = vision [4] = ) [5] = ) [4] = Array ( [joe] = vision [4] = ) [5] = ) [3] = ) [2] = Array ( [3] = Array ( [inside] = this [4] = Array ( [this] = briggs [5] = Array ( [briggs] = monster [6] = Array ( [monster] = vision [6] = ) [7] = ) [6] = Array ( [briggs] = this [7] = ) [7] = ) [5] = ) [4] = ) [3] = Array ( [4] = Array ( [outside] = that [4] = ) [5] = ) ) And nothing I do seems to be working. I can't reverse any of the inner arrays. Anyone have any ideas? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array_reverse() recursive
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 = $val) { if (is_array($val)) $arr[$key] = recursive_array_reverse($val); } return $arr; } Let me know if this works. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array_reverse() recursive
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 recursive_array_reverse($arr) { foreach ($arr as $key = $val) { if (is_array($val)) $arr[$key] = recursive_array_reverse($val); } return $arr; } Let me know if this works. D'oh, forgot the call to array_reverse :). function recursive_array_reverse($arr) { foreach ($arr as $key = $val) { if (is_array($val)) $arr[$key] = recursive_array_reverse($val); } return array_reverse($arr); } -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OO Question
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, visit: http://www.php.net/unsub.php
Re: [PHP] OO Question
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. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OO Question
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 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, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpDocumentor website issues
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, I am not a web designer for sourceforge either and can take no responsibility for any errors in display. Certainly, none of the issues you experience are intentional on the part of the web designer for phpdoc.org, as you can probably imagine. In defense of the web designer, he spent an entire day's work making the page work with all browsers he had access to, including IE 5 for PC, IE 6 for PC, Mozilla 1, Netscape 6.2, and Netscape 4.7. As I said, I've notified him of the issues involved, and he plans to take care of them in his free time. Thank you, Greg Beaver phpDocumentor team http://www.phpdoc.org -- works with most browsers http://www.sourceforge.net/projects/phpdocu -- probably works with all browsers - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Greg Beaver [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 10, 2002 12:29 AM Subject: Re: [PHP] phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT 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. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 10 Jun 2002 16:02:47 -0000 Issue 1397
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 irregularly 101358 by: Kris 101359 by: Tom Rogers logic question 101360 by: Justin French PHP/MySQL 101361 by: Jason Soza 101363 by: Miguel Cruz Re: Another Flat File question. 101362 by: Miguel Cruz Re: phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT 101364 by: Miguel Cruz 101382 by: Timothy J. Luoma Running PHP script within stylesheet? 101365 by: William S. 101366 by: William S. Re: PHP function for listing number of columns in table 101367 by: Tim Ward 101369 by: Mark 101372 by: hugh danaher help me please! :) 101370 by: Veronica Ghezzi 101373 by: Kevin Porter 101375 by: PHPCoder 101376 by: Marek Kilimajer 101377 by: Josep R. Raurell mysql dump -- via php 101371 by: Wilbert Enserink 101378 by: Jason Wong Free Hosting /w PHP/MySQL {!?} 101374 by: Liam MacKenzie Re: Setting Cookies 101379 by: Craig Donnelly Slow to warn... 101380 by: Dan Bolser Can a php script be placed within a stylesheet? 101381 by: William S. 101385 by: Andrew Brampton Re: Javascript PHP cookies 101383 by: Erik Price LDAP, SSL and Active Directory (W2K) 101384 by: Andres Petralli HTML or PHP problem? Please check this ... 101386 by: ignacio.estrada.cfe.gob.mx 101387 by: John Holmes [debugger] ?? 101388 by: Dan Bolser Re: [PEAR-DEV] [debugger] ?? 101389 by: Lukas Smith php cgi problem on RH linux 101390 by: Kevin Lowe mail() function hangs 101391 by: Phil Schwarzmann 101392 by: Manuel Lemos 101393 by: Peterhead Info Re: phpDocumentor website issues 101394 by: Greg Beaver Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Read the JOIN chapter of the MySQL manual and it'll tell you how to do it. It's not a PHP issue. (watch for line wrapping) http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html #JOIN ---John Holmes... -Original Message- From: Jule Slootbeek [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 11:35 PM To: php-general Subject: [PHP] simplicity with 2 queries.. Hey guys and gals, I have the following function which accesses the following tables, now i want to know if there is a way to get the quiz_id from table quiz without runnning both these queries... thanks, Jule --tables-- mysql describe user; ++--+--+-+-+ + | Field | Type | Null | Key | Default | Extra | ++--+--+-+-+ + | user_id| int(10) unsigned | | PRI | NULL| auto_increment | | first_name | varchar(10) | | | | | | last_name | varchar(20) | | | | | | email | varchar(100) | | | | | | username | varchar(16) | | | | | | password | varchar(32) | | | | | ++--+--+-+-+ + mysql describe quiz; +-+--+--+-+-++ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+-++ | quiz_id | int(10) unsigned | | PRI | NULL| auto_increment | | user_id | int(10) unsigned | | | 0 || | title | varchar(255) | | | || | noa | tinyint(2) | | | 0 || +-+--+--+-+-++ --function-- function addquiz_get_quiz_id() { global $valid_user, $valid_password; mysql_select_db($db_glob, $link_glob); $table_user = user; $table_quiz = quiz; $query = SELECT * FROM $table_user WHERE username='$valid_user' AND password='$valid_password'; $result = mysql_query($query); $user_info = mysql_fetch_array($result); $user_id = $user_info[user_id]; $query = SELECT * FROM $table_quiz WHERE user_id='$user_id'; $result = mysql_query($query); $user_info = mysql_fetch_array($result); $quiz_id = $user_info[quiz_id]; mysql_close($link_glob); return $quiz_id; } --
Re: [PHP] OO Question
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 { $this-two = new Two; $this-test = $this-two-test(); } } Can you do that? If so is that how you do it? Thanks. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] capturing bouncers.
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: text/html; charset=iso-8859-1\n; It is sending mails with from address [EMAIL PROTECTED] address but bouncers are not returning to this address. Is there any better way of doing this ? Regards, Subhendu Mohapatra Freelance web designer www.plus2net.net [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Calendars
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 the site. Is there something outthere already packaged like this? Kevin P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FUDforum 2.0 Stable Released
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 to be used in other languages, at this time there are 5 different languages to, which translations are available in the standard distribution and more will be available soon. The spell checker integrated into the forum, which utilizes pspell library also has multi-lingual support, thus permitting even the non English speakers to spell check their messages. FUDforum 2.0 also includes a powerful user group management system, that allows fine grained control over the users of the forum, for the administrator as well as the group manager(s) assigned by the administrator. In addition to these features, the forum contains all the other features you may have come to expect from a web forum, such as the ability to attach files to messages, include polls, private messaging system, FUDcode, which allows the user to style their text without the need for HTML, thread forum subscriptions with both e-mail ICQ notification, buddy and ignore lists, a full text search and many more. Despite all these features, FUDforum is extremely fast and scales extremely well, by using MySQL indexes and table views implemented in PHP to retrieve the data in the most expedient manner possible. The result, is that most forum pages take ~0.01-0.02 seconds to generate on most computers, even while the forum is under a heavy load. The forum, by default is setup with very secure file permissions, that are designed in such a way that given a reasonably well setup web server, your forum's data will be safe against hackers. You can download FUDforum from http://fud.prohost.org/download.php and if you have any questions, there is a support forum at http://fud.prohost.org/forum/, where you can get answers to your questions and concerns about the forum. Ilia Alshanetsky [EMAIL PROTECTED] FUDforum Core Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SMS with PHP
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
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 - Original Message - From: Alexandra Aguiar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 7:46 PM Subject: [PHP] SMS with PHP 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FUDforum 2.0 Stable Released
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 PROTECTED] Sent: Monday, June 10, 2002 1:54 PM Subject: [PHP] FUDforum 2.0 Stable Released 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 to be used in other languages, at this time there are 5 different languages to, which translations are available in the standard distribution and more will be available soon. The spell checker integrated into the forum, which utilizes pspell library also has multi-lingual support, thus permitting even the non English speakers to spell check their messages. FUDforum 2.0 also includes a powerful user group management system, that allows fine grained control over the users of the forum, for the administrator as well as the group manager(s) assigned by the administrator. In addition to these features, the forum contains all the other features you may have come to expect from a web forum, such as the ability to attach files to messages, include polls, private messaging system, FUDcode, which allows the user to style their text without the need for HTML, thread forum subscriptions with both e-mail ICQ notification, buddy and ignore lists, a full text search and many more. Despite all these features, FUDforum is extremely fast and scales extremely well, by using MySQL indexes and table views implemented in PHP to retrieve the data in the most expedient manner possible. The result, is that most forum pages take ~0.01-0.02 seconds to generate on most computers, even while the forum is under a heavy load. The forum, by default is setup with very secure file permissions, that are designed in such a way that given a reasonably well setup web server, your forum's data will be safe against hackers. You can download FUDforum from http://fud.prohost.org/download.php and if you have any questions, there is a support forum at http://fud.prohost.org/forum/, where you can get answers to your questions and concerns about the forum. Ilia Alshanetsky [EMAIL PROTECTED] FUDforum Core Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FUDforum 2.0 Stable Released
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 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 PROTECTED] Sent: Monday, June 10, 2002 1:54 PM Subject: [PHP] FUDforum 2.0 Stable Released 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 to be used in other languages, at this time there are 5 different languages to, which translations are available in the standard distribution and more will be available soon. The spell checker integrated into the forum, which utilizes pspell library also has multi-lingual support, thus permitting even the non English speakers to spell check their messages. FUDforum 2.0 also includes a powerful user group management system, that allows fine grained control over the users of the forum, for the administrator as well as the group manager(s) assigned by the administrator. In addition to these features, the forum contains all the other features you may have come to expect from a web forum, such as the ability to attach files to messages, include polls, private messaging system, FUDcode, which allows the user to style their text without the need for HTML, thread forum subscriptions with both e-mail ICQ notification, buddy and ignore lists, a full text search and many more. Despite all these features, FUDforum is extremely fast and scales extremely well, by using MySQL indexes and table views implemented in PHP to retrieve the data in the most expedient manner possible. The result, is that most forum pages take ~0.01-0.02 seconds to generate on most computers, even while the forum is under a heavy load. The forum, by default is setup with very secure file permissions, that are designed in such a way that given a reasonably well setup web server, your forum's data will be safe against hackers. You can download FUDforum from http://fud.prohost.org/download.php and if you have any questions, there is a support forum at http://fud.prohost.org/forum/, where you can get answers to your questions and concerns about the forum. Ilia Alshanetsky [EMAIL PROTECTED] FUDforum Core Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FUDforum 2.0 Stable Released
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 not all servers support PHP. Then there is the distinction between open closed sources forums like FUDforum phpBB which are open source and Vbulletin PHPthreads which are closed source. Personally, I have decided to write my own forum because after looking at the 2 prevailing open source forums Phorum phpBB2 I was not impressed by their code to put it lightly. Thus, I decided to make a clean break and write something, which in my option is better. In the end, having more choice is hardly a bad thing, no? Ilia On June 10, 2002 01:51 pm, Jeff Lewis wrote: 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 PROTECTED] Sent: Monday, June 10, 2002 1:54 PM Subject: [PHP] FUDforum 2.0 Stable Released 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 to be used in other languages, at this time there are 5 different languages to, which translations are available in the standard distribution and more will be available soon. The spell checker integrated into the forum, which utilizes pspell library also has multi-lingual support, thus permitting even the non English speakers to spell check their messages. FUDforum 2.0 also includes a powerful user group management system, that allows fine grained control over the users of the forum, for the administrator as well as the group manager(s) assigned by the administrator. In addition to these features, the forum contains all the other features you may have come to expect from a web forum, such as the ability to attach files to messages, include polls, private messaging system, FUDcode, which allows the user to style their text without the need for HTML, thread forum subscriptions with both e-mail ICQ notification, buddy and ignore lists, a full text search and many more. Despite all these features, FUDforum is extremely fast and scales extremely well, by using MySQL indexes and table views implemented in PHP to retrieve the data in the most expedient manner possible. The result, is that most forum pages take ~0.01-0.02 seconds to generate on most computers, even while the forum is under a heavy load. The forum, by default is setup with very secure file permissions, that are designed in such a way that given a reasonably well setup web server, your forum's data will be safe against hackers. You can download FUDforum from http://fud.prohost.org/download.php and if you have any questions, there is a support forum at http://fud.prohost.org/forum/, where you can get answers to your questions and concerns about the forum. Ilia Alshanetsky [EMAIL PROTECTED] FUDforum Core Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] safe mode and php cgi-binary
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 changes I make to php.ini are not reflected on the php()info page. No doc_root, nothing Do I lose the safe mode ability since we installed as a cgi? What do I need to do to see what happening? Thanks. Lewis Watson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] SMS with PHP
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 -Original Message- From: Alexandra Aguiar [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: [PHP] SMS with PHP 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] capturing bouncers
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 classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ForceType hack with Apache 2?
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 pass parameters in the manner of the relatively well-known method, e.g. http://www.server.com/info/display/123/index.php with Location info ForceType application/x-httpd-php /Location in the httpd.conf file. It works like a charm (on Linux, anyway). I've run into problems with it under FreeBSD, but I was forewarned that it might not work there. Another user of the framework, however, just installed Apache 2/PHP 4.2.1 on Linux, and reports that the smart URLs aren't being so smart, and generate 404s. Strangely, the URL http://www.server.com/info will correctly execute as PHP a script called info, but http://www.server.com/info/display/123 will NOT execute the info script, instead looking for a directory path that doesn't exist, and generating a 404 error. Since I don't have Apache 2 installed, I can't test it myself. Has anyone used this trick (and made it work) with Apache 2? I don't know whether to blame a fundamental change in Apache 2, or to look for some other configuration error in the user's system. Cheers, spud. --- a.h.s. boy spud(at)nothingness.orgas yes is to if,love is to yes http://www.nothingness.org/ PGP Fingerprint: 7B5B 2E7A FA96 865A D9D9 5D6D 54CD D2C1 3429 56B4 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] matrix functions
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 is incredebly stupid and simple but my brain doesnt tell me anything right now - how can i transform colums/rows quickly and efficient? Any help appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Switching from HTTPS to HTTP using PHP?
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 to once non-restricted pages. I'm not sure whether that is a problem, but . . . I gather this is normal behavior since I had requested https. But is it possible to unrequest ? My question is simple: is there a way to get out of or turn off https once it has been initiated -- using PHP? Since I have limited or no experience with https, any pointers, advice, or admonitions would be greatly appreciated. And they say, Ignorance is bliss -- I'm not too sure about that : Tia, Andre -- Please pray the Holy Rosary to end the holocaust of abortion. Remember in your prayers the Holy Souls in Purgatory. May God bless you abundantly in His love! For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] matrix functions
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 Message- From: johannes reichardt [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 8:32 PM To: [EMAIL PROTECTED] Subject: [PHP] matrix functions 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 is incredebly stupid and simple but my brain doesnt tell me anything right now - how can i transform colums/rows quickly and efficient? Any help appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Switching from HTTPS to HTTP using PHP?
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 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 to once non-restricted pages. I'm not sure whether that is a problem, but . . . I gather this is normal behavior since I had requested https. But is it possible to unrequest ? My question is simple: is there a way to get out of or turn off https once it has been initiated -- using PHP? Since I have limited or no experience with https, any pointers, advice, or admonitions would be greatly appreciated. And they say, Ignorance is bliss -- I'm not too sure about that : Tia, Andre -- Please pray the Holy Rosary to end the holocaust of abortion. Remember in your prayers the Holy Souls in Purgatory. May God bless you abundantly in His love! For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] matrix functions
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 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 is incredebly stupid and simple but my brain doesnt tell me anything right now - how can i transform colums/rows quickly and efficient? Any help appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -Pushkar S. Pradhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ForceType hack with Apache 2?
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 PM Subject: [PHP] ForceType hack with Apache 2? 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 pass parameters in the manner of the relatively well-known method, e.g. http://www.server.com/info/display/123/index.php with Location info ForceType application/x-httpd-php /Location in the httpd.conf file. It works like a charm (on Linux, anyway). I've run into problems with it under FreeBSD, but I was forewarned that it might not work there. Another user of the framework, however, just installed Apache 2/PHP 4.2.1 on Linux, and reports that the smart URLs aren't being so smart, and generate 404s. Strangely, the URL http://www.server.com/info will correctly execute as PHP a script called info, but http://www.server.com/info/display/123 will NOT execute the info script, instead looking for a directory path that doesn't exist, and generating a 404 error. Since I don't have Apache 2 installed, I can't test it myself. Has anyone used this trick (and made it work) with Apache 2? I don't know whether to blame a fundamental change in Apache 2, or to look for some other configuration error in the user's system. Cheers, spud. --- a.h.s. boy spud(at)nothingness.orgas yes is to if,love is to yes http://www.nothingness.org/ PGP Fingerprint: 7B5B 2E7A FA96 865A D9D9 5D6D 54CD D2C1 3429 56B4 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Calendars
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 the client to be able to go into the database and update the items and those items to appear on the site. Is there something outthere already packaged like this? I'm working on one right now that I will release some time in the near future :) I'll drop you a note when it's complete -- Tom Sommer E-Mail: webmaster(a)tsn.dk Web: http://www.tsn.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Switching from HTTPS to HTTP using PHP?
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 be able to distinguish whether or not the mode is https or not. [I'm thinking of my bank's secure pages -- after I'm finished with the secure stuff, I get booted out of https. I suppose that's what I expected would happen (only pages calling https would be in it.) Sigh . . . more reading to do : Regards, Andre On Monday 10 June 2002 02:28 pm, you wrote: 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 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 to once non-restricted pages. I'm not sure whether that is a problem, but . . . I gather this is normal behavior since I had requested https. But is it possible to unrequest ? My question is simple: is there a way to get out of or turn off https once it has been initiated -- using PHP? Since I have limited or no experience with https, any pointers, advice, or admonitions would be greatly appreciated. And they say, Ignorance is bliss -- I'm not too sure about that : Tia, Andre -- Please pray the Holy Rosary to end the holocaust of abortion. Remember in your prayers the Holy Souls in Purgatory. May God bless you abundantly in His love! For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0 or 1.3 for php on windows XP ?
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 available.. 2.0 1.3 .. i just want to know which one i should use, and if PHP is compatible with both.. and that if i do use 2.0, the Install Doc in PHP has given no instructions on how to install php on Apache 2.0, so how will i install it.. Any suggestions most welcome.. T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 or 1.3 for php on windows XP ?
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: Monday, June 10, 2002 2:49 PM Subject: [PHP] Apache 2.0 or 1.3 for php on windows XP ? 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 available.. 2.0 1.3 .. i just want to know which one i should use, and if PHP is compatible with both.. and that if i do use 2.0, the Install Doc in PHP has given no instructions on how to install php on Apache 2.0, so how will i install it.. Any suggestions most welcome.. T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calendars
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 and update the items and those items to appear on the site. Is there something outthere already packaged like this? There should be quite a few: http://freshmeat.net http://sourceforge.net http://phpclasses.gremlins.com.hk -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Do you have exactly what I want in a plaid poindexter bar bat?? */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multi-line textfields don't post
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
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 this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with header function
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); } else { copy($file,uploads/documents/.$file_name); } BUT I WOULD RATHER HAVE IT REDIRECT THEM TO ANOTHER PAGE USING if (file_exists(uploads/documents/.$file_name)==TRUE) { header(Location:http://www.mysite.com/file_exists.php;); } else { copy($file,uploads/documents/.$file_name); } THIS SCRIPT DOESN'T WORK...DOES ANYONE KNOW WHY??? Thanks Shane [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multi-line textfields don't post
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 Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:09 PM Subject: [PHP] multi-line textfields don't post 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] Help with header function
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 10, 2002 1:03 PM Subject: [PHP] Help with header function 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); } else { copy($file,uploads/documents/.$file_name); } BUT I WOULD RATHER HAVE IT REDIRECT THEM TO ANOTHER PAGE USING if (file_exists(uploads/documents/.$file_name)==TRUE) { header(Location:http://www.mysite.com/file_exists.php;); } else { copy($file,uploads/documents/.$file_name); } THIS SCRIPT DOESN'T WORK...DOES ANYONE KNOW WHY??? Thanks Shane [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with header function
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. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] storing html in a db
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 - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting XML Data
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 tags because they will be interpreted as XML tags. I am sure, however that there is another way of doing this. Does anyone know how? Have a look into XSLT... its all in the manual. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with header function
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
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 Data Hello, I have been working with XML in the recent weeks and I have recently come across the need to format some of the data in my XML. For example I might have a large XML file and 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 tags because they will be interpreted as XML tags. I am sure, however that there is another way of doing this. Does anyone know how? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] storing html in a db
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 PROTECTED]] Sent: Monday, June 10, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: [PHP] storing html in a db 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 - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing html in a db
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 in a db 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 - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Parse an email message for content
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 the link that is provided and then have the article abstract listed below. Can anyone point me in the correct direction on how I can learn how to do this? Thank you very much, Jonathan Duncan The daily email message I get comes in the following format: *-*-*-* Start Email Message *-*-*-* EMAIL HEADERS Bulleted list of article titles -article 1 -article 2 = (That is 5 equal characters) Article 1 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 1 abstract. This gives a brief excerpt of the article. = (That is 5 equal characters) Article 2 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 2 abstract. This gives a brief excerpt of the article. - Copyright text ends the message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Switching from HTTPS to HTTP using PHP?
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 server. You can tell whether you're in encrypted mode or not by checking the variable: $_SERVER['HTTPS'] == on One thing to check, anchors with no protocol specified default to the current protocol. If you're in an encrypted page and have a link like this: a href='/index.php'Home Page/a The protocol will default to https and this may be the source of the problem you're experiencing. -Ed - 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 be able to distinguish whether or not the mode is https or not. [I'm thinking of my bank's secure pages -- after I'm finished with the secure stuff, I get booted out of https. I suppose that's what I expected would happen (only pages calling https would be in it.) Sigh . . . more reading to do : Regards, Andre This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] multi-line textfields don't post
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 data inside doesn't transfer over. But single-line textfields work just fine. how do i fix this? This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse an email message for content
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: [PHP] Parse an email message for content 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 the link that is provided and then have the article abstract listed below. Can anyone point me in the correct direction on how I can learn how to do this? Thank you very much, Jonathan Duncan The daily email message I get comes in the following format: *-*-*-* Start Email Message *-*-*-* EMAIL HEADERS Bulleted list of article titles -article 1 -article 2 = (That is 5 equal characters) Article 1 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 1 abstract. This gives a brief excerpt of the article. = (That is 5 equal characters) Article 2 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 2 abstract. This gives a brief excerpt of the article. - Copyright text ends the message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] Parse an email message for content
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] Help with header function
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 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[2]: [PHP] Parse an email message for content
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 This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with header function
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 This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing html in a db
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. 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 PROTECTED]] Sent: Monday, June 10, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: [PHP] storing html in a db 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 - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with header function
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 is a syntax error within his header text.. just not the one you thought it was. 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 -Kevin - Original Message - From: Lazor, Ed [EMAIL PROTECTED] To: 'Kevin Stone' [EMAIL PROTECTED]; PHP-general [EMAIL PROTECTED] Sent: Monday, June 10, 2002 2:00 PM Subject: RE: [PHP] Help with header function 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 This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compare 2 resultsets of db-query
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 FIELD1, TOTAL and SUB. Query 1 returns more rows as query 2. Field1 is the same in both queries so I should be able to 'link' the results of both queries together. How do I do this?? Thanks! Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with header function
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 This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] url string
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 = somefile.php?user=?username?pass=?userpass?/script ? I have also tried it this way: echo script window.location = 'somefile.php?user=$usernamepass=$userpass'/script; Unfortunately both ways do not work. In the first instance the script jumps to the window location but does not pass php variables into the url string. In the second instances the java script does not even compile. Is there a way to do this with php?...html?...javascript? ...I think that window.location does not except url string variables or something. Anyway if anyone can help it would be appreciated. Thanks. Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] url string
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 PM To: [EMAIL PROTECTED] Subject: [PHP] url string 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 = somefile.php?user=?username?pass=?userpass?/script ? I have also tried it this way: echo script window.location = 'somefile.php?user=$usernamepass=$userpass'/script; Unfortunately both ways do not work. In the first instance the script jumps to the window location but does not pass php variables into the url string. In the second instances the java script does not even compile. Is there a way to do this with php?...html?...javascript? ...I think that window.location does not except url string variables or something. Anyway if anyone can help it would be appreciated. Thanks. Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Compare 2 resultsets of db-query
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 there when you need to work with it. Then again... you don't seem to be sorting the results, so you could just as easily start the table, run the db query, dump the results, run another query and dump the results, and then close the table. I don't know if what I just said makes sense, so here's a psuedo example: table ?php $sql = query#1; $Results = mysql_query($sql, $DBLink); while ($Row = mysql_fetch_array($Results) ) { print tr; print td.$Row[0]./td; print td.$Row[1]./td; print td.$Row[2]./td; print /tr; } $sql = query#1; $Results = mysql_query($sql, $DBLink); while ($Row = mysql_fetch_array($Results) ) { print tr; print td.$Row[0]./td; print td.$Row[1]./td; print td.$Row[2]./td; print /tr; } ? /table -Original Message- From: Danny Kruitbosch [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Compare 2 resultsets of db-query 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 FIELD1, TOTAL and SUB. Query 1 returns more rows as query 2. Field1 is the same in both queries so I should be able to 'link' the results of both queries together. How do I do this?? Thanks! Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parse an email message for content
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 idea on how to actually read the email files. I have been reading about fread for reading the file and then I have considered doing an fseek to start reading where the email headers stop, and then explodeing the contents of the file separated by the = delimiter that comes in the message. However, I do not know where to start. Any pointers? Thanks, Jonathan Duncan Ed Lazor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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: [PHP] Parse an email message for content 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 the link that is provided and then have the article abstract listed below. Can anyone point me in the correct direction on how I can learn how to do this? Thank you very much, Jonathan Duncan The daily email message I get comes in the following format: *-*-*-* Start Email Message *-*-*-* EMAIL HEADERS Bulleted list of article titles -article 1 -article 2 = (That is 5 equal characters) Article 1 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 1 abstract. This gives a brief excerpt of the article. = (That is 5 equal characters) Article 2 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 2 abstract. This gives a brief excerpt of the article. - Copyright text ends the message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: url string
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 PROTECTED]... 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 = somefile.php?user=?username?pass=?userpass?/script ? I have also tried it this way: echo script window.location = 'somefile.php?user=$usernamepass=$userpass'/script; Unfortunately both ways do not work. In the first instance the script jumps to the window location but does not pass php variables into the url string. In the second instances the java script does not even compile. Is there a way to do this with php?...html?...javascript? ...I think that window.location does not except url string variables or something. Anyway if anyone can help it would be appreciated. Thanks. Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse an email message for content
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 idea on how to actually read the email files. I have been reading about fread for reading the file and then I have considered doing an fseek to start reading where the email headers stop, and then explodeing the contents of the file separated by the = delimiter that comes in the message. However, I do not know where to start. Any pointers? This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Can a php script be placed within a stylesheet?
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 .css But wouldn't that prevent it from being parsed as a CSS file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Can a php script be placed within a stylesheet?
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 can be done via a .htaccess or something similar... Here is a example in a .htaccess file: AddType application/x-httpd-php .css But wouldn't that prevent it from being parsed as a CSS file? This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Can a php script be placed within a stylesheet?
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 I interpret it at least... Does the CSS file _HAVE_ to end in .css? Or does it just matter how you link ---John Holmes... - Original Message - From: Timothy J. Luoma [EMAIL PROTECTED] To: Andrew Brampton [EMAIL PROTECTED] Cc: William S. [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Monday, June 10, 2002 5:05 PM Subject: [PHP] Re: Can a php script be placed within a stylesheet? 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 .css But wouldn't that prevent it from being parsed as a CSS file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Calendars
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 the site. Is there something outthere already packaged like this? I've got an older version online (with a tar.gz of the code I use) at calendar.outbackqld.net.au although it's old now and the new version (which you can view at www.isisford.qld.gov.au) isn't quite ready to be packaged up as an archive for release yet. If it looks like something you're interested in then let me know and I could package up what's there - it's just not real portable in the newer form yet. CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Can a php script be placed within a stylesheet?
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 instead I use: header(Content-Disposition: filename=file.pdf); -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse an email message for content
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, 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 idea on how to actually read the email files. I have been reading about fread for reading the file and then I have considered doing an fseek to start reading where the email headers stop, and then explodeing the contents of the file separated by the = delimiter that comes in the message. However, I do not know where to start. Any pointers? Thanks, Jonathan Duncan Ed Lazor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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: [PHP] Parse an email message for content 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 the link that is provided and then have the article abstract listed below. Can anyone point me in the correct direction on how I can learn how to do this? Thank you very much, Jonathan Duncan The daily email message I get comes in the following format: *-*-*-* Start Email Message *-*-*-* EMAIL HEADERS Bulleted list of article titles -article 1 -article 2 = (That is 5 equal characters) Article 1 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 1 abstract. This gives a brief excerpt of the article. = (That is 5 equal characters) Article 2 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 2 abstract. This gives a brief excerpt of the article. - Copyright text ends the message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SAFE MODE
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 my proper host doesnt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Arrays
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 arrays are used. -- - Daniel Broome, siliconBLUE Ltd, Web Author, http://siliconblue.com Mob: 64-21-178-5120 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Switching from HTTPS to HTTP using PHP?
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 protocol was requested. That should fix things, thanks for the explanation. Regards, Andre On Monday 10 June 2002 03:48 pm, you wrote: 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 server. You can tell whether you're in encrypted mode or not by checking the variable: $_SERVER['HTTPS'] == on One thing to check, anchors with no protocol specified default to the current protocol. If you're in an encrypted page and have a link like this: a href='/index.php'Home Page/a The protocol will default to https and this may be the source of the problem you're experiencing. -Ed - 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 be able to distinguish whether or not the mode is https or not. [I'm thinking of my bank's secure pages -- after I'm finished with the secure stuff, I get booted out of https. I suppose that's what I expected would happen (only pages calling https would be in it.) Sigh . . . more reading to do : Regards, Andre *** * This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- Please pray the Holy Rosary to end the holocaust of abortion. Remember in your prayers the Holy Souls in Purgatory. May God bless you abundantly in His love! For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] self processing forms
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 fahrenheit temperature I enter. Moreover, using another version of this script, as shown in Example 7.4, p. 167, simply clears the text field, and never returns an output. I can't figure out why I am not getting a correct output - perhaps something in my php.ini file? A copy of the code I am using (Example 7.3) is as follows: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleUntitled/title /head body ?php if ($_SERVER['REQUEST_METHOD'] == 'GET'){ ? form action=?php echo $_SERVER['PHP_SELF'] ? method=POST Fahrenheit temperature: input type=text name=fahrenheit' / input type=submit name=Convert to Celsius! / /form ?php } elseif ($_SERVER['REQUEST_METHOD'] == 'POST') { $fahr=$_POST['fahrenheit']; $celsius=($fahr - 32) * 5/9; printf(%.2fF is %.2fC, $fahr, $celsius); //echo The temperature in degrees celsius is $celsius; } else { die(This script only works with GET and POST requests.); } ? /body /html ** Thanks much in advance, Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php