Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-10 Thread Jaap van Ganswijk
At 2003-06-09 18:22 -0400, Dan Anderson wrote: Is it possible to tell PHP when converting a number to a string (i.e. in an echo or print command) to use x decimal places? Specifically, if I ?php echo '$' . $some_price; ? And some_price is $1.50, it outputs: $1.5 This should work:

[PHP] if ($xxxxx) { function not working?

2003-06-10 Thread Ben Houlton
When I use the if ($xxx) fuction to use the web addresses function to call up a command it desnt work! All it does is come up with the command line with: }else { if (!id !edit) { echo blah blah blah; } } I'm using PWS and localhost//HPPAV server. Please help! -- PHP

RE: [PHP] HTML and PHP

2003-06-10 Thread Jaap van Ganswijk
At 2003-06-04 15:59 -0400, Edward Peloke wrote: you would have to use echo or print statements... Yes. After a while I stopped mixing PHP and HTML parts and started writing everything in PHP using echo and print statements. That way the code is much more regular and flexible. Greetings, Jaap

[PHP] Documents on Images.

2003-06-10 Thread Philip J. Newman
Can someone point me to some documents about pulling images from out side the doc root? thanks / Phil

Re: [PHP] if ($xxxxx) { function not working?

2003-06-10 Thread Larry_Li
if (!id !edit) - something wrong here. Normally id0. if so, id=true. !id=false. (false anything) is false. echo blah blah blah will never be executed. ---

[PHP] Re: if ($xxxxx) { function not working?

2003-06-10 Thread Jean-Christian Imbeault
Please post the whole code. If I understand what you are attempting to say you are probable just missing braces in the right place or php start -end tags. Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to use objects, variables in an eval() func ?

2003-06-10 Thread LPA
Hi, I have an eval which evaluate a block of code before echo the result on the screen.. Here is the func : function t_eval($texte) { ob_start(); eval(?.$texte); $retval = ob_get_contents(); ob_end_clean(); return $retval; } But I use some objects for databases, ... and when i trying to

[PHP] Re: HTML and PHP

2003-06-10 Thread Jean-Christian Imbeault
Christian Ista wrote: Look the code below. Is it an obligation to multiply the number of ?php ?. There is no other way ? not possible to use only an open php tag (?php) and a clode php tag (?) ? Sure, instead of using ?php ? use echo or print. switch($constant_lastupdate[$i][3]){ case '1' :

Re: [PHP] Documents on Images.

2003-06-10 Thread Dan Anderson
Can someone point me to some documents about pulling images from out side the doc root? Go to php.net and search for the following functions: file() fopen() fget() These functions should have listings to other functions. In case you knew about these functions but didn't know, you can use

[PHP] add groups to linux with apache + php

2003-06-10 Thread josemaria
Hi everybody, Maybe this is not the exact place for this post, as is more a problem with permissions and linux, but I have been searching all around and I cannot find an answer to my problem, so if somebody can lend a hand it will be greatly appreciated. My problem is that i have written a

Re: [PHP] add groups to linux with apache + php

2003-06-10 Thread Dan Anderson
a) $man su for more info b) because suing and passing in arbitrary commands is a hackers dreams you may have some problems with safe mode and the like -Dan On Tue, 2003-06-10 at 03:45, josemaria wrote: Hi everybody, Maybe this is not the exact place for this post, as is more a problem with

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread SLanger
Hello Well here is my opinion on the two. I think it is a lot easier to get an app ready and running with PHP (especially database driven) than it is with JSP. The memory footprint of PHP is a lot lower than with JSP. Alone the JVM that needs to be loaded requires lots of resources. Also

[PHP] Automatically update other sections of page

2003-06-10 Thread Michael Benbow
Hi, I've created a very advanced web form which acts as an application and I am in desperate need of help. The application works great, and it utilizes components such as combo boxes, checkboxes and radio buttons. It is split into sections using iframes, meaning that each section is

[PHP] Read website with script src

2003-06-10 Thread Johannes Reichardt
Hi All! I have a small problem with reading a file via crontab. For better performance i read a dynamic php page every hour, so the actual page is static with better performance. Actually there is some script src that is not being executed by fopen, that means the script src.. is just taken - it

[PHP] Loading an image file as a PHP file.

2003-06-10 Thread Philip J. Newman
To Do: I would like to call image /user/mysite/image_01.jpg using something like /user/mysite/public_html/loadimage.php?image=1 is this a simple procedure or hard ... any suggestions or someone want to point me in the right direcion/ Phil

[PHP] Re: Sessions problem

2003-06-10 Thread Cristian MARIN
It's a bit large the concept not working. The code seems OK but I can't tested or help you because I can't see what it should do. If I register the my_email by hand it will enter to the do_session_crap() ... if not I don't get anything. When you are registering the my_email and how do you get

[PHP] Re: if ($xxxxx) { function not working?

2003-06-10 Thread Ben Houlton
HTML BODY ?php $db = mysql_connect(localhost,root); mysql_select_db(main,$db); if ($submit) { if ($id) { $sql = UPDATE edit SET sub='$sub',msg='$msg',name='$name',email='$email',newday='$newday' WHERE id=$id; } else { $sql = INSERT INTO edit

[PHP] Re: How can I change the timezone?

2003-06-10 Thread Cristian MARIN
You should use the putenv() to set temporarly another timezone. Read the notes in the php manual: http://www.php.net/manual/en/function.putenv.php -- - Cristian MARIN InterAKT Online (www.interakt.ro) +4021 411 2610 [EMAIL PROTECTED] Erick

[PHP] Re: if ($xxxxx) { function not working?

2003-06-10 Thread Thomas Seifert
do you even have register_globals enabled? otherwise $submit, $id and so on will not be set. Thomas On Tue, 10 Jun 2003 19:11:21 +1000 [EMAIL PROTECTED] (Ben Houlton) wrote: HTML BODY ?php $db = mysql_connect(localhost,root); mysql_select_db(main,$db); if ($submit) { if

[PHP] PHP in VS.Net

2003-06-10 Thread Ulrik
Hello, I while back somebody on this list posted me a link to a registry update which enabled syntax highlighting of PHP file in Visual Studio .Net. Due to some tragid data loss, I am now back with a unpatched Visual Studio .Net and I can't find the mentioned registry hack on google. If anybody

Re: [PHP] if ($xxxxx) { function not working?

2003-06-10 Thread Ben Houlton
But the $id is ment to be a number sorting out each record. Not an on/off function. If I'm reading your message wrong sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to make php working with asp?

2003-06-10 Thread yanxizhen
Hi! I want to using asp in a php file,how to do it? thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Loading an image file as a PHP file.

2003-06-10 Thread Cristian MARIN
You should make the maping some how between the images name(+location) and the numbers. I see two solutions: 1. Use a database table in which the image number is the id table images_img{ id_img, - the number you are sending name_img - a name if you need this path_img

[PHP] Re: if ($xxxxx) { function not working?

2003-06-10 Thread Ben Houlton
I thought it was the gobal command i tried global $submit; (etc..) earlier today but It didn't work so could you give me an exampe of how it works please? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if ($xxxxx) { function not working?

2003-06-10 Thread Cristian MARIN
Why don't you use the traditional way ? if ( id0 !edit){ echo aa; } It always work. -- - Cristian MARIN InterAKT Online (www.interakt.ro) +4021 411 2610 [EMAIL PROTECTED] Larry Li [EMAIL PROTECTED] wrote in message

RE: [PHP] sessions, IE and pop-up windows

2003-06-10 Thread Ford, Mike [LSS]
-Original Message- From: Jason k Larson [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 22:23 Try adding the SessionID to the URL. openEdit(add=eventamp;cellid=10amp;?PHP echo Session_Name ().'='.Session_ID();?); or a little better: $thisSession =

RE: [PHP] Want to move M$Access frontend to PHP/MYSQL. Need suggestions...

2003-06-10 Thread electroteque
i cant help much seeing that u already are using mysql why an access frontend ? i'm currently doing a access to mysql intergration , i moved the db over using sqlyog's odbc import , then i basically had to build the forms from scratch is there a problem with that ?? if u are moving over u may

RE: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-10 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 23:54 - Original Message - From: Emma Jane Hogbin [EMAIL PROTECTED] To: [EMAIL PROTECTED] What ended up working was passing the session ID to the pop-up window manually by including it

[PHP] Re: Re: if ($xxxxx) { function not working?

2003-06-10 Thread Ben Houlton
Now I get a blank page and all the code... that I can think of is the same... Look here: HTML BODY ?php $db = mysql_connect(localhost,root); mysql_select_db(kangaroo,$db); if ($submit) { if ($id) { $sql = UPDATE edit SET sub='$sub',msg='$msg',name='$name',email='$email',newday='$newday'

RE: [PHP] PHP/Javascript Help

2003-06-10 Thread Ford, Mike [LSS]
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 15:48 Thanks for your reply. I had actually made a mistake in the code. It looks like this now: How could I still use the id thing on this? Well, the addition of the stripslashes() call

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Joel Rees
You might want to look around the jakarta projects and ask questions on some of those mailing lists. Thanks for the advice. I'll try that. But I *would* like to hear the opinions of PHP'ers too. I'm worried that by asking people on that list Ill get one-sided views. Of COURSE you'll

[PHP] Safe mode Problem

2003-06-10 Thread Cristian MARIN
How can I disable the Safe Mode for a php 4.3.2 compiled on linux with --enable-safe-mode. The problem is I can't touch the machine so I can't test if I change the setting in the php.ini it just ignore the flag and I don't have the posibility to reproduce this on my server. Even a link to

[PHP] preg_match ;)

2003-06-10 Thread Johannes Reichardt
Hi there! Sorry for annoying you with stupid questions, but actually i am fooling around with this problem since hours: 3:brbfoo middot; what i need is (what else?) foo. i followed the http referer example on php.net but i simply failed - i never get foo if i try to match it somewhat like

[PHP] Please help

2003-06-10 Thread Ben Houlton
I've tried this code on a web server and it worked, but on my localhost server it did not work. It just looped the ADD RECORD text (not including database infomation). My code is below: HTML BODY ?php $register_globals; $db = mysql_connect(localhost,root); mysql_select_db(kangaroo,$db); if

[PHP] Warning Spammer

2003-06-10 Thread myphp
The email address I use on this list is never used anywhere else in the world so only a list member must have used it to send me the message below. It did not come through the php lists. Can anyone translate it into english or dont bother its probably spam. If it is spam then could the moderators

RE: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Jay Blanchard
[snip] I'm worried that PHP won't scale well. And by scaling I don't mean under heavy load, I mean maintenance wise :) I can't imagine having to do a feature upgrade on a PHP project with more than 100 files ... (this file requires that file which requires that one and so on ...) [/snip] This is

RE: [PHP] Loading an image file as a PHP file.

2003-06-10 Thread Jay Blanchard
[snip] I would like to call image /user/mysite/image_01.jpg using something like /user/mysite/public_html/loadimage.php?image=1 is this a simple procedure or hard ... [/snip] It is quite simple Newman. Create a PHP page that reacts to the passing of a variable to determine which image to call.

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread CPT John W. Holmes
Agree 100%. Don't assume that just because you use JSP, or any other language, your program is going to instantly scale well and be easy to maintain. You can write crappy, inefficient code in any language. You can also write good programs in most any language if you put the proper planning into it

Re: [PHP] Warning Spammer

2003-06-10 Thread Lars Torben Wilson
On Tue, 2003-06-10 at 04:33, myphp wrote: The email address I use on this list is never used anywhere else in the world so only a list member must have used it to send me the message below. It did not come through the php lists. Come again? I don't follow your logic. Anyone could have gotten

[PHP] Re: Loading an image file as a PHP file.

2003-06-10 Thread Cristian MARIN
You can use the following code also: for url www.yoursite.com/index.php?image=1 ?php if (isset($HTTP_GET_VARS['image']) $HTTP_GET_VARS['image'] 0){ ? img src=/user/mysite/image_?php echo $HTTP_GET_VARS['image']?.jpg ?php } ? and the /user/mysite/image_1.jpg will be

[PHP] can't figure out why

2003-06-10 Thread David McGlone
Hi all, I cannot figure out why my code is not displaying the next product in the database. Could anyone take a look and see if they could give me a hand, I've attached the code. Thanks in advance -- David M. Edification Web Solutions http://www.edificationweb.com jerzees.php Description:

[PHP] Table issue

2003-06-10 Thread Steve Marquez
I am attempting to insert an article into a MySQL table on a remote server, via a PHP Forms script. I am able to insert the article on my server, and PHP MyAdmin works on both servers, however, when I use my script on the remote server it does not allow for long articles. (The articles have not

[PHP] XML-RPC problem

2003-06-10 Thread Evandro Sestrem
Hi, I'm using the XML-RPC implementation from Useful (http://phpxmlrpc.sourceforge.net) to do my client in PHP. When this client receives a response from my server and this response is a array of struct with more than 1 item, occurs a problem. When the response array of struct has just 1 item it

Re: [PHP] Warning Spammer

2003-06-10 Thread Randum Ian
There is a public archive of this list held on a WWW server. If you have ever posted it will be on there. Try typing your name or email into Google. On Tue, 2003-06-10 at 04:33, myphp wrote: The email address I use on this list is never used anywhere else in the world so only a list member

RE: [PHP] Table issue

2003-06-10 Thread Jay Blanchard
[snip] I am attempting to insert an article into a MySQL table on a remote server, via a PHP Forms script. I am able to insert the article on my server, and PHP MyAdmin works on both servers, however, when I use my script on the remote server it does not allow for long articles. (The articles

Re: [PHP] PHP using Linter...

2003-06-10 Thread Scott Fletcher
Linter is a SQL database that is written by a company in Russia and is for everyone around the world to use. It is smaller, faster, use less memory, cost less than most of the pricy 3rd party software like MS-SQL, IBM-DB2, Oracle, etc... Linter can also sychronize (mirror) the database between

[PHP] Re: How to use objects, variables in an eval() func ?

2003-06-10 Thread Shawn McKenzie
Maybe: global $yourobject; -Shawn Lpa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have an eval which evaluate a block of code before echo the result on the screen.. Here is the func : function t_eval($texte) { ob_start(); eval(?.$texte); $retval = ob_get_contents();

Re: [PHP] Table issue

2003-06-10 Thread Steve Marquez
Yes, I am assuming that because PHP MyAdmin works with the long article that it is my script that is the issue. The table is a longtext table. All permissions are correct. The exact same script works perfectly on my server. The funny thing is that every single line text field inserts into the

Re: [PHP] Please help

2003-06-10 Thread Wendell Brown
On Tue, 10 Jun 2003 21:14:52 +1000, Ben Houlton wrote: I've tried this code on a web server and it worked, but on my localhost server it did not work. It just looped the ADD RECORD text (not including database infomation). My code is below: HTML BODY ?php $register_globals; It sounds like

[PHP] Php get vcard info?

2003-06-10 Thread MIKE YRABEDRA
Is it possible to use php to snag vCard info and insert it into a form? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com/ P: 770.382.1195

[PHP] Re: reading a file into variable for using in a javascript

2003-06-10 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi all, I am reading the content of a text file into a variable to be used in a javascript. I am reworking some code that was originally done using ColdFusion and the jsStringFormat(var) function. What is the PHP equivalent string

RE: [PHP] preg_match ;)

2003-06-10 Thread Boaz Yahav
Try this : ? $str=3:brbfoo middot;; preg_match('/3:brb(.*?)middot;/i',$str,$result); Echo $result[1]; ? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Johannes Reichardt [mailto:[EMAIL PROTECTED] Sent:

[PHP] How to show BLOB ?

2003-06-10 Thread Roman Duriancik
I have a blob in the database. I want to open a file=BLOB in the browser such a way as if I clicked on a link. So if it is pdf, its opened by pdf plugin, if it is doc, it is open by word plugin, if it is zip the dialog for opening/saving to disk is opened, if it is jpeg it is directly displayed in

Re: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-10 Thread Emma Jane Hogbin
On Tue, Jun 10, 2003 at 10:47:58AM +0100, Ford, Mike [LSS] wrote: Well, first of all the fact that this solution works means it has nothing to do with the output buffering setting, nor whether there's a session_write_close() in the calling script (although that's good practice

[PHP] Array[array]

2003-06-10 Thread Erich Kolb
How do I get a value from an array thats inside of an array? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to show BLOB ?

2003-06-10 Thread CPT John W. Holmes
I have a blob in the database. I want to open a file=BLOB in the browser such a way as if I clicked on a link. So if it is pdf, its opened by pdf plugin, if it is doc, it is open by word plugin, if it is zip the dialog for opening/saving to disk is opened, if it is jpeg it is directly

[PHP] using % and £ in strings

2003-06-10 Thread bob pilly
Hello I am trying to let a user enter notes about an appointment but are having errors when trying to write their input to a database. The users input goes into string $appnotes $query2=update appresult set appresult = '$appointmentresult',product='$product',fees='0',appnotes='$appnotes' where

RE: [PHP] how to make php working with asp?

2003-06-10 Thread Dan Joseph
Hi, -Original Message- I want to using asp in a php file,how to do it? thanks! As far as I know, that is not possible. ASP and PHP are two different languages. It would be like someone programming an application in both C++ and Java at the same time. If there is no reason

RE: [PHP] php and flash chat program

2003-06-10 Thread Russell P Jones
The best way I can see to answer this would be to use the body onUnload=function() in javascript and just have that function run what you need. You could have php put the screen name into some variable in the javascript and then onUnload (the user either closes the browser or changes the page) run

Re: [PHP] php and flash chat program

2003-06-10 Thread Awlad Hussain
How about using session??? - Original Message - From: Russell P Jones [EMAIL PROTECTED] To: Matt Palermo [EMAIL PROTECTED] Cc: 'PHP General' [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 3:11 PM Subject: RE: [PHP] php and flash chat program The best way I can see to answer this would

[PHP] Re: Warning Spammer

2003-06-10 Thread Ben Houlton
taken straight from google.com translation page... ( i'm not really portuguese ;)) ei myphp Well-taken care of with what it speaks the Cellular one... it tb has heard... to remove [EMAIL PROTECTED] of our list he answers this email and he places to remove in them pardons the upheaval... ok?

[PHP] PHP Hosting Sites

2003-06-10 Thread Martin, Stanley G
Anybody have any GOOD experience with PHP Web Hosting sites? I found a list at http://www.zend.com/hosting_sites/phphosting.php?CID=484 but don't know enough about them to make a safe decision. Stanley G. Martin System Administrator Sprint - EIS3 Customer Care [EMAIL PROTECTED]

RE: [PHP] PHP Hosting Sites

2003-06-10 Thread Mike Brum
I've had good experiences with www.phpwebhosting.com for smaller sites (virtual hosting). I haven't had any super-high traffic sites hosted on them though. Full support of PHP mySQL and fairly inexpensive. -M -Original Message- From: Martin, Stanley G [mailto:[EMAIL PROTECTED] Sent:

[PHP] What does this do?

2003-06-10 Thread Stephen Goddard
Hi, Can anyone tell me what this does ${varname} I cant find any information as to what the braces do. Cheers Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Hosting Sites

2003-06-10 Thread Edward Peloke
I host with http:\\www.ht-tech.net very good and knowledgeable. -Original Message- From: Martin, Stanley G [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 10:33 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Hosting Sites Anybody have any GOOD experience with PHP Web Hosting

RE: [PHP] PHP Hosting Sites

2003-06-10 Thread Chris Hayes
Please add whether or not they have safe_mode turned on? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: use print

2003-06-10 Thread Stephen Goddard
You can print from PHP ! The scrip below will print a bmp. It requires you to enable php_printer.dll in your php.ini file The printer handle must be the same, as the shown printer name, in the printers folder (win) For more info look here :- http://uk.php.net/manual/en/ref.printer.php ?

Re: [PHP] PHP Hosting Sites

2003-06-10 Thread Russell P Jones
I recently hosted with a company called networkeleven (http://www.networkeleven.com)... I required a custom build of php because i use DOMXML to run most of my site. They completed the task in literally under 15 minutes after my request. Since then, I have had no service interuptions and

[PHP] check is pop address

2003-06-10 Thread Philip S
Hi there, I was wondering whether someone could tell me whether it is possible to use PHP to check whether a user supplied email address is a pop address as opposed to a web based address like hotmail. Have done some searching but cant seem to turn any answers up. Thanx in advance for any replys,

[PHP] Re: check is pop address

2003-06-10 Thread R'twick Niceorgaw
check the IMAP functions If you have the pop server address (ip, port), user name and password you can do it http://us4.php.net/imap HTH R'twick Philip S [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I was wondering whether someone could tell me whether it is possible to

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread myphp
Just as well I didnt bother looking it up. LOL Thanks, and now that I realize that this list is archived and any idiot can get my email them ...sigh... too bad. - Quoting Ben Houlton [EMAIL PROTECTED]: taken straight from google.com translation page... ( i'm not really portuguese ;))

[PHP] Mail() problem

2003-06-10 Thread Maikel Verheijen
Hi list, Has anyone ever tried to use REMOTE_ADDR to be sent along with emails sent from php-scripts that use the mail() function? I have built a small auto-relaying sendmail (crudely based on mini-sendmail, http://www.acme.com/software/mini_sendmail/) that adds a received header containing the

RE: [PHP] PHP using Linter...

2003-06-10 Thread Ralph
Why don't you just use mySQL? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 5:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP using Linter... Linter is a SQL database that is written by a company in Russia and is for everyone around

[PHP] spawning new window with PHP

2003-06-10 Thread Amanda McComb
I have a list of urls in a MySQL database and I use PHP to get them out. I need to spawn a new window and use one of those URLs as the location for the new window. Is there PHP code that can do this? Here is part of the javascript I currently use: SCRIPT Language=JavaScript

RE: [PHP] Re: Warning Spammer

2003-06-10 Thread Mike Brum
What I've done is created a separate account for the PHP mySQL mailing lists for that purpose. If the spam count gets crazy on this address, it's simple to just create a new account and send all of that mail to the trash. -M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [PHP] spawning new window with PHP

2003-06-10 Thread Henrik Hudson
On Tuesday 10 June 2003 10:18, Amanda McComb wrote: I have a list of urls in a MySQL database and I use PHP to get them out. I need to spawn a new window and use one of those URLs as the location for the new window. Is there PHP code that can do this? Here is part of the javascript I

Re: [PHP] using % and £ in strings

2003-06-10 Thread Marek Kilimajer
Try: $string=stripslashes($string); // only if magic_quotes are on ini_alter(magic_quotes_sybase,1); $string=addslashes($string); bob pilly wrote: Hello I am trying to let a user enter notes about an appointment but are having errors when trying to write their input to a database. The users

Re: [PHP] PHP using Linter...

2003-06-10 Thread Scott Fletcher
It only take a few minutes to install Linter and have it up and running. Configuring and maintaining it is a breeze. You can even install a newer version of Linter over the older one and still have the database intact without having to restore the database. You don't get a lot of headache with

Re: [PHP] spawning new window with PHP

2003-06-10 Thread Marek Kilimajer
Simply name the window lastwin=window.open(http://www.google.com;, some_name); and then create links: a href= url target=some_name nothing with php Amanda McComb wrote: I have a list of urls in a MySQL database and I use PHP to get them out. I need to spawn a new window and use one of those URLs

[PHP] Mail Username

2003-06-10 Thread Josh Thomas
I know that if you use sendmail to perform your mailings in php that the sender shows up as the user and group for Apache. Now is there a way to make the mail command display a different user in the from field? I know that I could change the user/group for Apache to fix it, but is there a setting

[PHP] Re: Array[array]

2003-06-10 Thread Joaco
Try this: Array[i][j] where i is the index of the array stored in the array and j is the index of the value in the stored array. Erich Kolb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do I get a value from an array thats inside of an array?

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Richard Baskett
Yeah that's why I use this address [EMAIL PROTECTED], I receive a whole bunch of junk mail to that address because of my replies or questions to this list. I have tried to get the archives password protected the way apple does it or other mailing lists do it, but I didn¹t receive that much

Re: [PHP] Mail Username

2003-06-10 Thread John S. Huggins
You can add extra info into the appropriate fields like so. mail([EMAIL PROTECTED], the subject, $message, From: [EMAIL PROTECTED],[EMAIL PROTECTED]); However, your local sendmail might restrict this behavoir of changing the sender identity. Mine simply complaines about it in the mail

Re: [PHP] Re: Re: if ($xxxxx) { function not working?

2003-06-10 Thread Philip Olson
On Tue, 10 Jun 2003, Ben Houlton wrote: Now I get a blank page and all the code... that I can think of is the same... Look here: HTML BODY ?php $db = mysql_connect(localhost,root); mysql_select_db(kangaroo,$db); if ($submit) { if ($id) { [snip] Do this, to help us and you

Re: [PHP] Array[array]

2003-06-10 Thread Philip Olson
On Tue, 10 Jun 2003, Erich Kolb wrote: How do I get a value from an array thats inside of an array? $array = array('a' = 'apple'); print $array['a']; // apple $array = array('a' = array('b' = 'banana')); print $array['a']['b']; // banana $array = array(array(array(array('c' =

Re: [PHP] Bitwise flagging in mysql database

2003-06-10 Thread Jason Wong
On Tuesday 10 June 2003 06:08, Mike Mannakee wrote: I have a script that is collecting a bunch of information, and storing this in a database. However, the rows are kinda big and I'm thinking of packing the information into flag bits, and storing this information in one string in the

RE: [PHP] Want to move M$Access frontend to PHP/MYSQL. Need suggestions...

2003-06-10 Thread Apollo (Carmel Entertainment)
Why an MS Access front end? Old school talent booking agents, they do not want to see any changes, so you have to do everything in the background. Only my Dir of Ops. understands what I am talking about, since she benefits every time I move my finger. Person who originaly wrote the Access database

[PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread Craig
MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc Anyone know of articles/examples that specifically deal with this issue? Any insight appreciated. Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread Dan Joseph
Hi, -Original Message- MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc Anyone know of articles/examples that specifically deal with this issue? Look into the Top() function for MSSQL. It goes something like: SELECT Top(10) * FROM table

Re: [PHP] What does this do?

2003-06-10 Thread Steve Keller
At 6/10/2003 02:56 PM, Stephen Goddard wrote: Can anyone tell me what this does ${varname} I cant find any information as to what the braces do. Which is odd because searching for braces at PHP.net takes you the strings section, which explains in detail several functions of curly braces.

Re: [PHP] Table issue

2003-06-10 Thread Mark
What application are you copying the data from? We've run into some odd problems when text from MS Word is copied into a textarea field and put into a database. Certain characters that one would think were standard ASCII ended up being odd special characters. That migh tbe breaking the db update.

[PHP] help with cURL

2003-06-10 Thread Ken Harris
The latest version of curl has a problem with certain SSL certificates. The cURL commandline added a -k option to override the problem. Is there a PHP CURL_something foe curl_setopt to do the same override? Ken - This mail sent through IMP:

[PHP] Generate PHP using PERL???

2003-06-10 Thread Todd Snyder
I hope this hasn't been asked too many times before because I've done an archive search and cant find the answer to my question. I presently have much of my web site (www.home-fires.com) dynamically generated using PERL scripts. I have a need to reduce image sizes and my host supports this

[PHP] How to use objects, variables in an eval() func ?

2003-06-10 Thread LPA
Hi, I have an eval which evaluate a block of code before echo the result on the screen.. Here is the func : function t_eval($texte) { ob_start(); eval(?.$texte); $retval = ob_get_contents(); ob_end_clean(); return $retval; } But I use some objects for databases, ... and when i trying to

Re: [PHP] Generate PHP using PERL???

2003-06-10 Thread Wendell Brown
On Tue, 10 Jun 2003 12:05:32 -0500, Todd Snyder wrote: My hope is that their is some directive that I can output at the start that will invoke the PHP interpreter so that my output will be run as a PHP script rather than just HTML. Generally speaking a script will be interpreted by one or the

[PHP] Best PHP books

2003-06-10 Thread Brian @ BHTSystems
Does anyone have any recommendations for a good PHP book? I tried the Learn PHP in 24 hours book, but it was incredibly light on details. I'm looking for a book that has at least a complete function reference and is geared towards the intermediate to advanced level programmer. Thanks in advance

Re: [PHP] Best PHP books

2003-06-10 Thread Matt Palermo
I have The PHP Black Book, and I find that it works great. Here is a link to amazon.com where it is located: http://www.amazon.com/exec/obidos/ASIN/1588800539/102-8343451-6560118 Good luck. Matt - Original Message - From: Brian @ BHTSystems [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread CPT John W. Holmes
-Original Message- MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc Anyone know of articles/examples that specifically deal with this issue? Look into the Top() function for MSSQL. It goes something like: SELECT Top(10) * FROM table You should be able

RE: [PHP] Best PHP books

2003-06-10 Thread Jay Blanchard
[snip] Does anyone have any recommendations for a good PHP book? I tried the Learn PHP in 24 hours book, but it was incredibly light on details. I'm looking for a book that has at least a complete function reference and is geared towards the intermediate to advanced level programmer. [/snip] I

Re: [PHP] Best PHP books

2003-06-10 Thread Ryan A
I myself use PHP BlackBook and started off on that got me this far and still keeps me going. HTH Cheers, -Ryan - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Brian @ BHTSystems [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 6:49 PM Subject: RE:

  1   2   >