[PHP] Re: Concerning number_format()
$price = number_format( (int) $price, 2, '.', ''); Ed Curtis wrote: I'm using an example straight from the manual on the php site that doesn't seem to work. $price = 1234.567890; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] binary or text file
I'm doing a bit of data recovery using php as the scripting language.. Is there a way to determine is a file is binary or text ? all the files are recovered but the file names do not have extensions ! eg chkdsk.exe would be dgfhgj5767363874 as a file name pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] dictionary
Got a bit of a peculiar problem. I'm recovering a hard disk which has got corrupted (work for a data recovery business). I've got a whole stack of text files which I need to clean up to try and get back some of the text information here's an example snippet YuR(I\aQMKNXe17lq~Pr?Xhb^~{ikiF..CIC1(P(}fzrEfxi45TSQhzMVhloi}vNHDfQkT%B3R|*ADt?'6T+?k%,^N{ 2wjObU=/[EMAIL PROTECTED]@WG8.AH9Y6IZDi:)L{y*TTpnBHxdz\\ilqvjTrldhBi(bTAAXAoB%}%l [EMAIL PROTECTED])[EMAIL PROTECTED]Ol4~Y// /7;{;e$zwv?xj)(8kkOg(61[EMAIL PROTECTED]`g|[EMAIL PROTECTED]Zw|04-7]I^n [EMAIL PROTECTED]'FCWL[w)fwe#5B^C`$PlW rcGSrVL _DlVM7KNnvOmp= Jk3]cqXR]{Qp;Y23`GPDjnP,Y6M}z`7NA(%Q!YTLvh4.o*{XQ$A'sm\/W{Njs:x3)GP;uFreD]N3GQQbb+X`kN[Product0] LANGUAGE=English MONIKER={DE907F20-A4A0-11d2-A985-00104B70545A} PRODUCT=LiveUpdate PRODUCTNAME=LiveUpdate The way I'm processing is by reading eacho file line by line, keeping all charachters ascii =32 = 127 What I want is a dictinary of some sort to try and eliminate the lines where and english word does not exist !! Anyone got any ideas ... greatly appreciated pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dictionary
Linux ;- Craig Lonsbury wrote: are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig -Original Message- From: pete M [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 8:40 AM To: [EMAIL PROTECTED] Subject: [PHP] dictionary Got a bit of a peculiar problem. I'm recovering a hard disk which has got corrupted (work for a data recovery business). I've got a whole stack of text files which I need to clean up to try and get back some of the text information here's an example snippet YuR(I\aQMKNXe17lq~Pr?Xhb^~{ikiF..CIC1(P(}fzrEfxi45TSQhzMVhloi }vNHDfQkT%B3R|*ADt?'6T+?k%,^N{ 2wjObU=/[EMAIL PROTECTED]@WG8.AH9Y6IZDi:)L{y*TTpnBHxdz\\ilqvjT rldhBi(bTAAXAoB%}%l [EMAIL PROTECTED])[EMAIL PROTECTED]Ol4~Y// /7;{;e$zwv?xj)(8kkOg(61[EMAIL PROTECTED]`g|[EMAIL PROTECTED] pZw|04-7]I^n [EMAIL PROTECTED]'FCWL[w)fwe#5B^C`$PlW rcGSrVL _DlVM7KNnvOmp= Jk3]cqXR]{Qp;Y23`GPDjnP,Y6M}z`7NA(%Q!YTLvh4.o*{XQ$A'sm\/W{Nj s:x3)GP;uFreD]N3GQQbb+X`kN[Product0] LANGUAGE=English MONIKER={DE907F20-A4A0-11d2-A985-00104B70545A} PRODUCT=LiveUpdate PRODUCTNAME=LiveUpdate The way I'm processing is by reading eacho file line by line, keeping all charachters ascii =32 = 127 What I want is a dictinary of some sort to try and eliminate the lines where and english word does not exist !! Anyone got any ideas ... greatly appreciated pete -- 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: How to get the server information
print_r($_SERVER); pete K. Praveen Kumar wrote: Dear All, How can I get the Server Information which operating system the server is running? Using PHP. please let me know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP script for mysql queries
web client http://www.phpmyadmin.net/home_page/ ;-) Joffrey L Leevy wrote: Hi: Going thru some teething problems. Does anyone have a simple PHP program that will enable mysql queries to be executed and displayed using internet explorer or another medium? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: hard(?) syntax problem
unfortunately Constants are scalar only, arrays not allowed below is from the manual --- Constants do not have a dollar sign ($) before them; Constants may only be defined using the define() function, not by simple assignment; Constants may be defined and accessed anywhere without regard to variable scoping rules; Constants may not be redefined or undefined once they have been set; and Constants may only evaluate to scalar values. pete Adam I Agnieszka Gasiorowski Fnord wrote: I want to access a value of an array by key, but the array is not a variable - it is a constant. How do I do it? I tried $value = PL_ORT[$key]; , but this doesn't work (parse error)... I even tried $value = {PL_ORT[$key]}; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session for creating a unique shopping cart for each user
why use a cookie - the $_SESSION is itself a cookie I'd code it like php session_start() if (!isset($_SESSION['cart_id'])) { // code to get cart_id $_SESSION['cart_id'] = $cart_id; } include(db) include(products) Tore E. Mackay wrote: Don't realy know. Here is what I have: 1. An index.php that inculdes products.php if $file=products.php. 2. products.php includes db.php that contains databse connection and the code for creating a session. 3. When I click add product $file=cart.php and cart.php includes the db.php file that should connect me to the db and check if there is a session. It works fine if I go passed the index.php file. Maybe it is because the index.php file has echoed information. Any idea Tore Gareth Williams [EMAIL PROTECTED] skrev i melding news:[EMAIL PROTECTED] Have you already sent anything to the browser? Once the first echo has been performed, you can't send header information, as the header is sent with the first bit of text. On Friday, Oct 31, 2003, at 15:47 Europe/Amsterdam, Tore E. Mackay wrote: Hi, I am creating a shopping cart but experiensing some difficulty in creating unique shopping carts for each user. When I try to create a session I get this error message: Warning: session_start(): Cannot send session cookie - headers already sent This is the code: if(isset($_COOKIE[cartId])) { return $_COOKIE[cartId]; } else { session_start(); session_register(cartId, session_id(), time() + ((3600 * 24) * 30)); return session_id(); } If I remove the session_start() and session_register it works fine, but then everyone uses the same cart and that can't be good. Thanx!!! Regards Tore -- 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: Calendar Script
here's the calendar I use http://dynarch.com/mishoo/calendar/index.html pete Vijay Killu wrote: Dear PHP, Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) Thanks Regards, ___ PHPLover * : [EMAIL PROTECTED] Göd döësn't pläy dícë. - Älbërt Ëínstëín -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] returns no value
its $HTTP_SERVER_VARS['REMOTE_ADDR'] or in php4+ $_SERVER['REMOTE_ADDR'] Randall Perry wrote: Want to grab the client IP after client agrees to a contract, but am getting no value from the $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] var. Anyone know why this might happen? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PDF File generation on Fly in PHP
on windows you need to comment out the php_pdf.dll (or similar) in php.ini and reboot apache/iis to enable the pdf extension. pete Vijay Killu wrote: Hello, I've just came through a function which generates PDF files on fly in a php script. On going through the documentation, I came to know that It needs to be compiled in a different fashion using a configure parameter. I would be happy if someone could help me out. I use Windows XP and PHP 4.3.3 and I couldn't find the configure.exe anywhere in my system... Thanks Regards, ___ Vijay Corporate Communications Satyam Computer Services Limited TSR Towers, Rajbhavan Road Somajiguda, Hyderabad-500 082 INDIA * : +91 (40) 23306767 Extn 7825 * : [EMAIL PROTECTED] Göd döësn't pläy dícë. - Älbërt Ëínstëín -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Globals set to off - Sessions
function check_admin_user() { //global $admin_user; // if ( (session_is_registered(admin_user)) (isset($admin_user)) ) if ( isset($_SESSION['admin_user']) ) return true; else return false; } Steve Jackson wrote: I am not sure what I have to do in order to control sessions in PHP 4.33 when globals are set to off. I used to use the following function to check if the user was of admin status; function check_admin_user() // see if somebody is logged in as admin and notify them if not { global $admin_user; if ( (session_is_registered(admin_user)) (isset($admin_user)) ) return true; else return false; } Then in my protected pages I would say; if (check_admin_user()) // if you're an admin user display the following { Session_register(admin_user); // Do admin functions } Else { //Do login form } How do I adapt the check_admin_user() function and the pages to work in 4.33? Thanks, Steve Jackson Web Development and Marketing Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Post variables and mysql queries
$query=Select * from users where userid='.$_POST['userid'].'; ;-) pete Luis Lebron wrote: This may be a dumb question but here goes. I have been trying to use $_POST globals in sql queries. If I use the following query string it does not work $query=Select * from users where userid='$_POST['userid']'; However, this works $userid=$_POST[userid] $query=Select * from users where userid='$userid'; Is there a mistake in my syntax? thanks, Luis R. Lebron Sigmatech, Inc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simple array question
$array = array( 'fruit1' = 'apple', 'fruit2' = 'orange', 'fruit3' = 'grape', 'fruit4' = 'apple', 'fruit5' = 'apple'); // this cycle echoes all associative array // key where value equals apple while ($fruit_name = current($array)) { if ($fruit_name == 'apple') { echo key($array).'br'; } next($array); } René fournier wrote: Is there a simple way to return the key (name) of one element in an array? I looked up key() in the docs, but there are no examples or notes... Thanks. ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Create Popup Window using PHP
need a little bit of Javascript Here's a cut and paste from one of my projects script language=JavaScript function confirmEdit() { var f = document.frmEdit; if(confirm('Are you sure you want to save the changes. This operation CANNOT BE REVERSED')) { f.submit(); } } /script and then a button instead of submit form name=frmEdit action=save.php method=post input type=text name=name input type=text name=address input type=button name=Button2 value=Save Changes class=butt onClick=confirmEdit() /form Hope it helps Pete ;-) [EMAIL PROTECTED] wrote: Hi all, I have a Delete function here whereby when I click on Delete it will actually have some kinda popup window to prompt user whether they are sure to delete the following data.So, anyone have any idea how to create this popup window using PHP?? Appreciate very much for any help given=) Regards, Irin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Comments / Feedback script?
have a sniff around http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html pete Mike Yrabedra wrote: Anyone know of a good 'comments/ feedback' creation script that writes to a static text file (no MySQL)? The user would enter their email, name and comment. They would then be displayed on the page using an include function. ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ Whatever you do, work at it with all your heart, as working for the Lord, not for men. ~Colossians 3:23 {{{ ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: File Upload problem
It might be the script timing out - defaults to 20 seconds check set_time_limit() regards pete Grant Rutherford wrote: Hi there, I'm trying to get a file upload to work with PHP. The file I'm attempting to upload is a 742kB pdf file, but this will have to work for files up to 50Mb of all types eventually. The following test pages work fine if the receiving page (testdone) is saved with an html extension, but they return a Document Contains no Data error if it has a php extension. The inclusion or exclusion of a MAX_FILE_SIZE hidden field does not seem to effect the situation. In addition, the upload appears to work fine for smaller files. (239kB works fine on both .php and .html) I'm using PHP with apache viewed on Mozilla, and the following simple HTML: teststart.html: HTMLHEADTITLETest Page/TITLE/HEAD BODY H1 ALIGN=CENTERTest Page/H1 FORM ACTION='testdone.***' METHOD=POST NAME=aform ENCTYPE='multipart/form-data' P ALIGN=CENTERINPUT TYPE=FILE NAME=testfileINPUT TYPE=SUBMIT NAME=add VALUE='Submit'/P /FORM /BODY /HTML testdone.***: HTMLHEADTITLETest Page/TITLE/HEAD BODY H1 ALIGN=CENTERTest Page/H1 P ALIGN=CENTERFile Upload Successful/P /BODY /HTML The parts of my php.ini file that I think may be relevant are: memory_limit = 80M post_max_size = 1M file_uploads = On upload_max_filesize = 1M Any help would be appreciated Thanks, Grant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: 'Return values' from links
Some XML would do the trick pete [EMAIL PROTECTED] wrote: First of all, Hi! I just started getting into php a week ago, but already ran into a problem I can't seem to solve. The issue is this : I code 2 different websites, each has it's own mySQL-DB. Website A has a login-section, each time you successfully log in, a key is generated which stays only valid for a certain period of time (done via database). Now, I have a link from the login section on website A to a sign-up-form on website B. This sign-up is supposed to only be accessible if you have a valid key from website A, which qualifies you as a member. Website B lets you fill out the form no matter what key you offer it, but when you have finished, right before I insert the data into my DB, I want it to check back with website A whether the key is valid or not. That's where I'm stuck right now. I have a php file in website A's directory, which, when given a key value, will check whether it is valid or not. Is there any way I can treat this website like a function and have it give me a return value after it has run through ? I tried it by putting a header from B to validate.php on A, and have that only call the 'exit;' when a valid key is provided, but it seems to proceed with website B's code no matter what the header to website A does. Is there any other way or workaround that I can accomplish this ? I just need a link to that validation page, and after the link the code should proceed or not based on the return value from that link. By the way, I work with php3, so I hope there's a solution for that version ;) Thanks in advance for any help, I hope my english wasn't too bad for you to understand what I meant. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Creating local vars from HTTP Post Array
try extract($_POST) pete Javier . wrote: I'm re-coding a fairly large multi step form which was written with PHP's register globals turned on. Since upgrading PHP this form has stopped working and needs editting. Rather than manually changing each var - $foo to$_POST['foo'] (there are simply too many) i'd like to do something like this - while(list($key, $val) = each($_POST)) eval(\$.$key = stripslashes($value)); using a loop to create local variables for each variable in the HTTP Post array. I'm having trouble getting this to work. Anyone help? Cheers, Javier _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: date for mysql
insert into table (date_created) values( now() ) ;-) pete Diana Castillo wrote: how can I format the current date and time so that I can insert it into a mysql table with an insert query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: SQL security
take a look at this http://phpinsider.com/php/code/SafeSQL/ pete Jeremy Russell wrote: Hello list, I was just sitting here thinking how to secure my php code and thought I would run it by the pros. I don't know what the standard practice is to secure against sql injection and malformed information passed from forms. This probably has been done several times I just would like to know if I should do it this way or if there is a better way. What I though to do is create a function that simply went through a variable and removed the quotes. Something that could be used when pulling the variables from the form right of the bat. i.e. $form_var = secure($_POST['var']; after that just do everything else as normal. So I just really looking for advice on securing my web app. BTW: any body heard of or use Cisco's VMPS? Jeremy Russell Network Administrator, CNI 580.235.2377 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ms word problems again !!
thankyou,thankyou, thankyou, thankyou, thankyou, !! I spent at least a day on trying to get it to work - now does pete ;- Chris Hayes wrote: At 18:16 15-10-03, you wrote: I'm trying to send the following header to force ms-word to open a html document header(Content-type: application/msword); header('Content-Disposition: attachment; filename=invoice.doc'); it works in Mozilla but NOT in IE.. any ideas as its driving me crazy.. I collected various headers to send a csv file to be opened by excel and though it looks redundant, it seems to work. All the caching supression seems to be important. header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified header(Cache-Control: no-store, no-cache, must-revalidate); // HTTP/1.1 header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache); // HTTP/1.0 header(Content-type: text/csv); header('Content-Disposition: inline; filename=Aanmeldingen_SENSE_symposium_2003.csv'); echo $string_csv; and In a previous version I also had to supress the word ;atachment; for the content disposition i think, for MSIE 5.5. Is that your MSIE version? I do not use it anymore. Maybe a google search helps to explain this better than I can. if (strstr($_SERVER[HTTP_USER_AGENT],MSIE 5.5)) {$att = ;} else {$att = attachment;;} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Max no of recipients in To field of mail function
I use phpmailer http://phpmailer.sourceforge.net/ Makes life much easier An example of mass mailing is here http://phpmailer.sourceforge.net/extending.html pete Binay wrote: Hi all! i need to email out newsletter to say 1000 recipients. I want to know what is the maximum number of recipients i can specify in the 'To' field of mail function? Is there any restrictions on To field as in the number of charcters or something?? If you know a better way of sending the large number of mails (1000 or more) please let me know. Thanks in advance Binay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ms word problems again !!
I'm trying to send the following header to force ms-word to open a html document header(Content-type: application/msword); header('Content-Disposition: attachment; filename=invoice.doc'); it works in Mozilla but NOT in IE.. any ideas as its driving me crazy.. tia pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: pad numbers
from php manual str_pad function ?php $input = Alien; print str_pad($input, 10); // produces Alien print str_pad($input, 10, -=, STR_PAD_LEFT); // produces -=-=-Alien print str_pad($input, 10, _, STR_PAD_BOTH); // produces __Alien___ print str_pad($input, 6 , ___); // produces Alien_ ? pete Diana Castillo wrote: is there a function to convert a number that has less than two digits into a number with a leading zero? for instance, to convert a 5 to 05 but to leave a 11 as 11 thanks, Diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] help - with pdf downloads
I'm directing client via a link to a download page for pdf documents. This code works on mozilla + firebird but in IE however it pops up with a open/save dialog - with the filetype missing and then an error when open/save pressed saying cannot find the site. As you can see below I've tried all sorts of variations but still the same error can someone help me out !!! tia Pete --- $dir = '/www/cgi-bin/docu/pdfs/'; $file = $dir.$row['path']./.$row['file_name']; $file_name = file_.trim($_GET['n'])..pdf; //force download dialog header(Pragma: no-cache); //header(Content-type: application/octet-stream\n); header(Content-type: application/pdf\n); //header(Content-type: application/x-download); //header(Content-disposition: inline; filename=$file_name\n); header(Content-disposition: attachment;filename=$file_name\n); header(Content-transfer-encoding: binary\n); //header(Accept-Ranges: bytes); header(Content-length: . filesize($file) . \n); //send file contents $fp=fopen($file, r); fpassthru($fp); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: arrays and php
echo td width=\15\ bgcolor=\#9FD9FF\ input type=\checkbox\ name=\chkR[$i]\ value=\$chkSessionF[$i]\/td); might solve the problem pete hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(td width=15 bgcolor=#9FD9FFinput type=checkbox name=chkR[] value=. $chkSessionF[$i] ./td); as you can see the array of checkboxes is called chkR. When the user clicks a submit button it calls the same page and the value of the array is received using: $chkR=$_POST['chkR']; however this variable is doing something weird because if I immediately do: echo(chk: is array: . is_array ($chk)); it doesnt display anything, so I presume it isnt an array, supporting this is also the fact that I try to use the $chkR in: $indReqF = array_diff ($indReq, $chkR) and everytime i run this statement php tells me that the 2nd argument isnt an array. What is the reason for $chkR not being an array? I have used the same code on a different page but instead of it posting to the same page (like in this example) it posts to another page and works fine !?!?!?!? can anyone help. this is very strange. thanx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: str_pad
$dbranch = str_pad($line-dbranch_no, 6, STR_PAD_LEFT); there's a aslo $dbranch = str_pad($line-dbranch_no, 6, STR_PAD_BOTH); and that pads it in the centre pete Chris Grigor wrote: This should be quite an easy task for some... say for example $line-dbranch has a value of 3 I know that 3 spaces will be added on to the end of $dbranch $dbranch = str_pad($line-dbranch_no, 6); so the value of $dbranch should look like 3 Is there anyway to right justify the 3 using str_pad .. example still put the 3 spaces in but at the beginning??? so it looks like 3 Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: HTML mailing list
www.hotscripts.com Angelo Zanetti wrote: anyone know of a good HTML mailing list? sorry for the OT post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Editor - which to use?
I write my code with pencil and paper and then scan it.. Dont need an editor ! John Nichel wrote: I know we've discussed this numerous times, but I'll chime in again (mainly because I'm bored). By far, I have been totally satisfied with UltraEdit. Lightweight, just about any language you want to edit, user configurable syntax highlighting (for those into that), handles UNIX / DOS / Mac files easily, etc, etc. And best of all, buy a liscense (cheap) and you're supporting a programmer, and not a company. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Users Online
I've dome this recently using a small iframe src=users_online.php in the top right corner. users_online.php has the meta refresh tag set. META HTTP-EQUIV=refresh content=2;URL=users_online.php pete Matias Hohl wrote: Hello php-Freaks I would like to display the number of users that are online on my page. Scripting that is not the problem... but how can I refresh this number all 2 minutes on a users page? I don't want to make always a redirect. Isn't the a possibility like streaming? :-) Greetings, Matias from Switzerland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Users Online
Does xml_HTTP work with Mozilla ??? ! pete al wrote: You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it to a DIV. Pete M wrote: I've dome this recently using a small iframe src=users_online.php in the top right corner. users_online.php has the meta refresh tag set. META HTTP-EQUIV=refresh content=2;URL=users_online.php pete Matias Hohl wrote: Hello php-Freaks I would like to display the number of users that are online on my page. Scripting that is not the problem... but how can I refresh this number all 2 minutes on a users page? I don't want to make always a redirect. Isn't the a possibility like streaming? :-) Greetings, Matias from Switzerland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Problem with adding text to emails using the date function
$subject .= \nBooking Commences: .date(jS F Y). at .date(H\:i) Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= \nBooking Commences: .date(jS F Y \a\t H\:i, strtotime($booking_start_date)); However the output is: Booking Commences: 24th September 2003 a09:00 I think the \t is being interpreted as a 'tab', how can i get around this? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shopping Cart Solutions
loads at hotscripts.com http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html Adrian Teasdale wrote: Charles Try oscommerce.org - it's an open source app written in PHP that has a fantastic community and is incredibly feature-rich. I'm not associated with the project, but I have used it Best regards Ade Sourceguardian.com -Original Message- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 21:10 To: [EMAIL PROTECTED] Subject: [PHP] Shopping Cart Solutions Anyone have suggestions for open source shopping cart apps in PHP? Thanks, Charles -- 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