RE: Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cody Phanekham
I'd have to agree with Tom, it would be better to do the formatting using the DB since MySQL stores its timestamp differently than the UNIX timestamp. however, if you really want to do it in PHP you can use MySQL's function UNIX_TIMESTAMP() to convert the db timestamp to a unix timestamp, then u

[PHP] STILL NOT SOLVED RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Scott, thanks for the suggestion, but my php.ini is the same as yours. And I still have the problem. Any idea why $_SESSION[] variables would loose data on my server type and not on another? Jami Moore LightSpark Digital Designs [EMAIL PROTECTED] http://www.lightsparkdigital.com/ -Original

[PHP] program_root in phpdoc

2003-09-17 Thread daniel
Hi there any phpdoc heads out there know how to set the program_root to show the exact path to the files, there is no setting for this in the config files, let me know cheers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:53:53 PM, you wrote: CA> Thanks Tom, but using only the strtotime() and later the date() CA> functions, the page throus the following error: CA> Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on CA> line 52 CA> Now my code looks like thi

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cesar Aracena
Sure. One result is 20030918014916. That sound like MMDDHHMMSS to me right? Thanks, Cesar Aracena www.icaam.com.ar -Mensaje original- De: Cody Phanekham [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 18 de Septiembre de 2003 02:04 a.m. Para: [EMAIL PROTECTED] Asunto: RE: [PHP] MySQL

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cody Phanekham
[snip] > I have a a timestamp in a DB (14 digits) [/snip] strtotime() tries to convert textual dates into a UNIX timestamp. eg "10 September 2000" since you've supplied a 14 digit timestamp to strtotime(), the function will throw back unexpected results. can we get some sample data from the l

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cesar Aracena
Thanks Tom, but using only the strtotime() and later the date() functions, the page throus the following error: Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on line 52 Now my code looks like this: $date1 = strtotime($row[lugar_lastinsert]); $date2 = date("d \de m \de Y H

Re: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:38:50 PM, you wrote: CA> Hi all, CA> I have a a timestamp in a DB (14 digits) that I want to display like I CA> want in my pages. I tried to use strtotime, mktime and date functions CA> with no success... it always return the current timestamp instead of the CA

[PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cesar Aracena
Hi all, I have a a timestamp in a DB (14 digits) that I want to display like I want in my pages. I tried to use strtotime, mktime and date functions with no success... it always return the current timestamp instead of the one I have stored. This is what I've done so far: for ($x = 0; $x <

Re: Fw: [PHP] Problem sending HTML formated mail

2003-09-17 Thread Curt Zirzow
* Thus wrote Juan Carlos Borrero ([EMAIL PROTECTED]): > > - Original Message - > From: "Juan Carlos Borrero" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 17, 2003 8:11 PM > Subject: Re: [PHP] Problem sending HTML formated mail > > > > > > - Original Me

Fw: [PHP] Problem sending HTML formated mail

2003-09-17 Thread Juan Carlos Borrero
- Original Message - From: "Juan Carlos Borrero" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 8:11 PM Subject: Re: [PHP] Problem sending HTML formated mail > > - Original Message - > From: "David T-G" <[EMAIL PROTECTED]> > To: "Juan Carlos Bor

RE: [PHP] webhost --0T-->

2003-09-17 Thread Martin Towell
[snip] /* HTH & HAND */ Meant to ask you this before...whats HAND? [/snip] Looks like noone's replied to this question, it's: Have A Nice Day... HTH Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hey David, % Thanks for replying. Sure thing! % % % Voteing will be allowed only to clients who register and confirm their % email % % addresses, plus only 1 vote per IP and we will be using cookies... % % /* % That would be terrible for anyone behind a

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Curt Zirzow
* Thus wrote Jennifer Goodie ([EMAIL PROTECTED]): > > > I have a section of my script where I call gethostbyname($hostname) . > > > For some host names that are not registered (according to register.com) > > > I am still getting an IP address returned? > > > > > > What is happening? > > > Well, tr

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Curt -- ...and then Curt Zirzow said... % % * Thus wrote Ryan A ([EMAIL PROTECTED]): % > % > /* % > >hmm.. whats with the weird quoting style? only david is allowed to % > > use weird characters :) % > */ ... % % I had created a custom regex for his '%' quote so my colors work Oh, c'mon... Y

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote Ryan A ([EMAIL PROTECTED]): ... % > /* % > That would be terrible for anyone behind a firewall. Leave it at once ... % % hmm.. whats with the weird quoting style? only david is allowed to % use weird characters :) ROFLMAO A comp

[PHP] innodb and persistant connections

2003-09-17 Thread daniel
Hi there why is it that innodb is playing up with persistant connections i turned it off and it seems fine for now , also sometimes mysql_query on innodb tables dont result true even though the query is fine, so therefore if ($this->query()) { do something } else { die error } sometimes dies an

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Evan Nemerson
urch.org/bind-verisign-patch.html Djbdns patch: http://tinydns.org/djbdns-1.05-ignoreip.patch PowerDNS patch: http://www.imperialviolet.org/binary/powerdns.patch Userfriendly :) http://ars.userfriendly.org/cartoons/?id=20030917&mode=classic -- damaged ---

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
Ok, I was wrong about top level stuff... My point was that you don't register every box at like register.com, you only register secondlevel.. Register.com only checks second level (I guess), while php queries the name on some dns server, which gives php another dns server and so on, until it finds

RE: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Jennifer Goodie
> > I have a section of my script where I call gethostbyname($hostname) . > > For some host names that are not registered (according to register.com) > > I am still getting an IP address returned? > > > > What is happening? > Well, try only the toplevel domain... For example, I have like > hns3456

[PHP] Re: Q on Regular Expressions - solved

2003-09-17 Thread jsWalter
Once again, I ask a stupid question, wotk on it some more and find the answer under my nose. Thanks anyway, I have what I'm looking for. Walter BTW: If you would like to know what I did, or even look at it and comment... === /* American Standard Format - accepts SLASH or DASH

[PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
Well, try only the toplevel domain... For example, I have like hns345667dsvdtrt34.telia.com, I doubt that is registred, but telia.com sure is... I hope.. :S -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Dan Anderson" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED]

Re: [PHP] Q on Regular Expressions

2003-09-17 Thread jsWalter
Thanks for the pointer, but this only deals with date/time in EPOCH range. I'm trying to handle dates pre-epoch. Thanks Walter "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote jsWalter ([EMAIL PROTECTED]): > > I have a fairly complicated regular express

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
> -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 3:21 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Feeling a bit brain dead, please help in maths: > averages > > > Hey, > Thanks for replying. > > Actually I made that e

[PHP] Need Help With gethostbyname()

2003-09-17 Thread Dan Anderson
I have a section of my script where I call gethostbyname($hostname) . For some host names that are not registered (according to register.com) I am still getting an IP address returned? What is happening? -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Curt Zirzow
* Thus wrote Craig Lonsbury ([EMAIL PROTECTED]): > off the top of my head: > > SELECT AVG(age), SUM(salTotal) > FROM blah > WHERE section = 3 > > i'm not sure if you can use the 2 functions in the same query, > you might have to break it into 2 queries. Yes you can. And if you have other fields

Re: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Ryan A
Hey, Thanks for replying. Actually I made that example simple, i actually need the average of 7 to 9 fieldsand i dont want to run 7 selects :-( I know its been done on elancebut how? Thanks, -Ryan > off the top of my head: > > SELECT AVG(age), SUM(salTotal) > FROM blah > WHERE section

Re: [PHP] webhost --0T-->

2003-09-17 Thread Ryan A
Hey, > I had created a custom regex for his '%' quote so my colors work > properly on his replies. Now i'm going to have create one special > for yours :) If you do that I guess I will just have to change my quoting style everytime i send a mail :-D Cheers, -Ryan We will slaughter you all! - T

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
off the top of my head: SELECT AVG(age), SUM(salTotal) FROM blah WHERE section = 3 i'm not sure if you can use the 2 functions in the same query, you might have to break it into 2 queries. Craig -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 200

Re: [PHP] webhost --0T-->

2003-09-17 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hey, > > /* > >hmm.. whats with the weird quoting style? only david is allowed to > > use weird characters :) > */ > > Whatdayamean? as far as I know he has not copyrighted the right to be weird > ok? there are a lot of weirdos on this list and why shou

[PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Ryan A
Hey, Been working a bit too much i guess so am feeling braindead... I have a couple of records in the database, i am doing a: "select age,salTotal from blah where section=3" this is getting me a list of records, how do i calculate the average age and salary total (salTotal) to display in my php p

Re: [PHP] Q on Regular Expressions

2003-09-17 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]): > I have a fairly complicated regular expression that was written for perl. > > I've spent the last 4 days trying to convert it to PHP. have you looked at strtotime()? http://php.net/strtotime The Date formats it can find are defined here: http://ww

Re: [PHP] multilanguage site: performance question: included file with cases?

2003-09-17 Thread Curt Zirzow
* Thus wrote daniel hahler ([EMAIL PROTECTED]): > Hello listmembers, > > I'm building up a site which should be german and english. So I have a > site object which remembers this choice during the session and do a >include('lang_'.$site->lang.'.php'); > in my topmost.php. > > This works good,

[PHP] Q on Regular Expressions

2003-09-17 Thread jsWalter
I have a fairly complicated regular expression that was written for perl. I've spent the last 4 days trying to convert it to PHP. I guess I'm just that bright. I can't even get the sub parts (between the || to work, much less the conditionals Would someone mind showing me how I can make this wo

Re: [PHP] webhost --0T-->

2003-09-17 Thread Ryan A
Hey, /* >hmm.. whats with the weird quoting style? only david is allowed to > use weird characters :) */ Whatdayamean? as far as I know he has not copyrighted the right to be weird ok? there are a lot of weirdos on this list and why should i be left out!!!??? :-D Cheers, -Ryan P.SDavi

[PHP] Basic Framework

2003-09-17 Thread Lee Herron QCS
I'm not fond of the phrase "framework," but for lack of any other term, this is what I use .. Without going to a bloated framework such as fusebox or MVP, have any of you put together a simple structure to allow very basic template and module inclusion with menuing? -- PHP General Mailing List (

Re: [PHP] webhost --0T-->

2003-09-17 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hey David, > Thanks for replying. > > > % Voteing will be allowed only to clients who register and confirm their > email > % addresses, plus only 1 vote per IP and we will be using cookies... > > /* > That would be terrible for anyone behind a firewall.

[PHP] multilanguage site: performance question: included file with cases?

2003-09-17 Thread daniel hahler
Hello listmembers, I'm building up a site which should be german and english. So I have a site object which remembers this choice during the session and do a include('lang_'.$site->lang.'.php'); in my topmost.php. This works good, but this file is growing and I thought about how to handle this

Re: [PHP] Session data getting lost

2003-09-17 Thread Curt Zirzow
* Thus wrote Rich Gray ([EMAIL PROTECTED]): > Well a functon that doesn't work under certain conditions should be > deprecated IMO ... I haven't used it for a long time now... this makes absolutly no sense. So if I use a function improperly, it should become deprecated? session_register() is used

Re: [PHP] Session data getting lost

2003-09-17 Thread Curt Zirzow
* Thus wrote Rich Gray ([EMAIL PROTECTED]): > So your telling me that all variables defined in the global scope are > automatically added to the $_SESSION array...? > Not true I think > no. read the documentation, in full. The soluction to your problem was resolved from the first reply (by C

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] So your telling me that all variables defined in the global scope are automatically added to the $_SESSION array...? Not true I think [/snip] You're right of course. I went back to your original code and stripped it back some The logic is incorrect, when you reload the page $test gets

Re: [PHP] Session data getting lost

2003-09-17 Thread Curt Zirzow
* Thus wrote Rich Gray ([EMAIL PROTECTED]): > Chris > > Thanks for your answer which I'm sorry to say makes no sense to me given the > code example I supplied ... can you explain to me why you think register > globals being set to on for the Linux server will cause the $_SESSION > superglobal arra

RE: [PHP] Japanese on a page

2003-09-17 Thread Chris W. Parker
- Edwin - on Tuesday, September 16, 2003 5:53 PM said: This japanese page thing was a project I started at home so now that I'm at work I'll do my best to respond using my memory (good luck, me!). > Did you check if the Japanese characters are readable inside > html

[PHP] CURL - SSL

2003-09-17 Thread Rodrigo Nakahodo
Anyone knows how to get a simple(HTML) https response using CURL session. Thanks a million!! Rodrigo Nakahodo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003 -- PHP General Ma

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
So your telling me that all variables defined in the global scope are automatically added to the $_SESSION array...? Not true I think > [snip] > Well a functon that doesn't work under certain conditions should be > deprecated IMO ... I haven't used it for a long time now... > > To answer your

RE: [PHP] php and apache...single sign on

2003-09-17 Thread Jay Blanchard
[snip] I would like to piggyback on an Apache realm/dialog authentication and feed these credentials to a mysql connection (or connection to anything else) in my php scripts. Is there a way using the php Apache apis (seems like no) or via apache itself to make these credentials available/visibl

[PHP] php and apache...single sign on

2003-09-17 Thread Mike Klein
I would like to piggyback on an Apache realm/dialog authentication and feed these credentials to a mysql connection (or connection to anything else) in my php scripts. Is there a way using the php Apache apis (seems like no) or via apache itself to make these credentials available/visible to a

RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Jay Blanchard
[snip] How to use file() function with an "HTTPS:\\www.example.com" [/snip] Use cURL http://www.php.net/curl because you will have to login to the https: location first, before you can use file() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Jennifer Goodie
> How to use file() function with an "HTTPS:\\www.example.com" > > > $lines = file ('https://www.example.com/'); > > foreach ($lines as $line_num => $line) { > echo "Line #{$line_num} : " . htmlspecialchars($line) > . "\n"; > } My interpretation of the manual page (http://us3.php.net/manua

RE: [PHP] value contained within a variable contained within another variable

2003-09-17 Thread esctoday.com | Wouter van Vliet
You should be able to do something like this: $kk1_current = "something"; $data = array ("kk1_current","kk2_current","mk_current"); $data_post = $$data[0]; . "\n"; // I want, $data_post = whatever is inside $kk1_current in this example -- strval obviously doesn't work in the case echo

[PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Rodrigo Nakahodo
How to use file() function with an "HTTPS:\\www.example.com" https://www.example.com/'); foreach ($lines as $line_num => $line) { echo "Line #{$line_num} : " . htmlspecialchars($line) . "\n"; } ?> Thanks a million! Rodrigo Nakahodo --- Outgoing mail is certified Virus Free. Checked by AV

Re: [PHP] Code check please

2003-09-17 Thread CPT John W. Holmes
From: "James Johnson" <[EMAIL PROTECTED]> > Can anyone see why this code isn't working > > $SID = $_SESSION['svUserID']; > $AdID = $_GET['AdID']; > > // get the campuses assigned > $qCampusID = "SELECT inst_id FROM ads_campuses WHERE ad_id = $AdID"; You say down below that this query only sel

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] Well a functon that doesn't work under certain conditions should be deprecated IMO ... I haven't used it for a long time now... To answer your question ... yep I've used print_r() and after the 1st form submission the entry is set to -1 however at no time do I ever set $_SESSION['test'] to

Re: [PHP] webhost --0T-->

2003-09-17 Thread Ryan A
Hey David, Thanks for replying. % Voteing will be allowed only to clients who register and confirm their email % addresses, plus only 1 vote per IP and we will be using cookies... /* That would be terrible for anyone behind a firewall. Leave it at once per email address and just live with the f

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Well a functon that doesn't work under certain conditions should be deprecated IMO ... I haven't used it for a long time now... To answer your question ... yep I've used print_r() and after the 1st form submission the entry is set to -1 however at no time do I ever set $_SESSION['test'] to -1 in m

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] Thanks, but no I don't think so ... session_register() is deprecated ... [/snip] Not depricated, just doesn't work when register_globals is off in the .ini Have you done a print_r($_SESSION) to see if in fact the $test variable is contained? -- PHP General Mailing List (http://www.php.net

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Jay Thanks, but no I don't think so ... session_register() is deprecated ... Quote PHP manual: Caution: If you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_regis

RE: [PHP] template problems

2003-09-17 Thread Jay Blanchard
[snip] default : include "error.txt"; break; case "screenshots" : include "news.txt"; break; [/snip] And always put default case last -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] template problems

2003-09-17 Thread Jay Blanchard
[snip] INDEX.PHP When i type say www.myrentedwebsite.com/index.php?page=main it will display the page main.txt When i try this on my localhost it displays the error.txt file instead. It doesn't recognize the index.php?>?PAGE=MAIN i think !. [/snip] Try this and report back -- PHP Genera

[PHP] value contained within a variable contained within another variable

2003-09-17 Thread DougD
I may be way off track with what I am trying to do, but here is my scenario and I sure appreciate any insights. There is a string stored in $kk1_current and I want to pull from the array the variable name, add the "$" and then retreive the string with the varialbe $kk1_current. This will allow to

[PHP] template problems

2003-09-17 Thread Simon
hi, I've got this problem when using templates on my localhost. The code works on my web server which i rent so the code is fine. I have ran php code for mysql functions and other for testing purposes. Below is the code i used in index.php. INDEX.PHP When i type say www.myrentedwebsite.com/

[PHP] template problems

2003-09-17 Thread Simon
hi, I've got this problem when using templates on my localhost. The code works on my web server which i rent so the code is fine. I have ran php code for mysql functions and other for testing purposes. Below is the code i used in index.php. INDEX.PHP When i type say www.myrentedwebsite.com/

[PHP] sdfs

2003-09-17 Thread Simon
sdfsdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] http://us3.php.net/session_register HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Jan Sorry - no that doesn't help - as you can see from the code snippet I posted the session_start() is at the very top of the code... Thx anyway. Rich > > You have to put session_start(); at the VERY TOP of your code. > even before alle the tags. > Hope that helps! > > Jan > > --- Rich Gray <[EMA

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Chris Thanks for your answer which I'm sorry to say makes no sense to me given the code example I supplied ... can you explain to me why you think register globals being set to on for the Linux server will cause the $_SESSION superglobal array to lose data? Am I missing something obvious here? Th

RE: [PHP] Code check please

2003-09-17 Thread James Johnson
Hmm, ok I took out the $row_CampusIDList = mysql_fetch_assoc($CampusIDList); and it works But how come? J -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Code check please H

[PHP] Code check please

2003-09-17 Thread James Johnson
Hi, Can anyone see why this code isn't working $SID = $_SESSION['svUserID']; $AdID = $_GET['AdID']; // get the campuses assigned $qCampusID = "SELECT inst_id FROM ads_campuses WHERE ad_id = $AdID"; $CampusIDList = mysql_query($qCampusID, $CCB) or die(mysql_error()); $row_CampusIDList = mysql

Re: Re[2]: [PHP] Using system

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 22:49, Uros wrote: > I think not Believe it or not, Robert's answer is correct. > here is my code > > #!/usr/local/bin/php -q > $ret = `nslookup -timeout=3 www.myhost.com |grep "Non-existent > host/domain"`; ?> > I always get automaticaly output. I also try to se

RE: [PHP] Edit a String

2003-09-17 Thread Mark
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I have addresses stored in my database. I am trying to create a > page > that > generates a letter automatically for the user to print. Given a > string > of > format ', x, x, xxx' how can I edit it so that the > comma's > are > r

[PHP] Re: Using system

2003-09-17 Thread Gal
try this: &1'); echo "\n".$sMyHostname."\n"; ?> Uros wrote: Hello! I'm pulling my hair. What is the right syntax to set output of some system call to variable. I tried everything (system, shell_exec,exec) and always get output to screen. Please help. PHP version 4.3.3 CLI -- PHP General Mailing

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Chris Blake
On Wed, 2003-09-17 at 17:11, Curt Zirzow wrote: > [snip] > > Flame on! > -- Johnny Storm > > > Is this an invite :) > I have no idea who Johnny Storm is...but best he stay away from starting a flame war on my behalf...I`m a lover, not a fighter :) -- Chris Blake Support

Re: [PHP] How do I do this PERL in PHP?

2003-09-17 Thread Don Read
On 16-Sep-2003 Susan Ator wrote: > I have a text file with the following format: > > name > stuff > > message text > message text > message text > If you're sure the format is exactly that, then ... $pat=array( '', '', ); $marker=''; $data=file_get_contents('dafile.txt'); $msgblks=

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Chris Blake
On Wed, 2003-09-17 at 16:55, Jason Wong wrote: > On Wednesday 17 September 2003 22:44, Chris Blake wrote: > > > Where can I find stats, if any, on the number of sites using PHP as a > > server side language ? > > > > I been googling around using "PHP global statistics" and other > > combinations b

Re: [PHP] Using system

2003-09-17 Thread Gal Gur-Arie
Hello, try this: &1'); echo "\n".$sMyHostname."\n"; ?> Uros wrote: Hello Robert, I think not here is my code #!/usr/local/bin/php -q I always get automaticaly output. I also try to set implicit_flush to off, use ob ob_... nothing works. best regards Wednesday, September 17, 2003, 4:16:10 PM,

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Curt Zirzow
* Thus wrote Chris Blake ([EMAIL PROTECTED]): > Greetings learned PHP(eople); > > Where can I find stats, if any, on the number of sites using PHP as a > server side language ? > > I been googling around using "PHP global statistics" and other > combinations but can`t find anything. netcraft.com

Re: [PHP] PHP and Palm

2003-09-17 Thread Mark
--- Charles Kline <[EMAIL PROTECTED]> wrote: > I have a project in mind where I would like to be able to Sync my > Palm > with the calendar in my CRM. Anyone have info on doing this? > > Thanks, > Charles You might want to look into the Horde Project (http://www.horde.org). There's been on-agai

Re: [PHP] ignore_user_abort not working

2003-09-17 Thread Curt Zirzow
* Thus wrote Sid ([EMAIL PROTECTED]): > Sorry, a mistake on my part. The script continues to work, but > connection_aborted() does not detect if the host disconnected. It is all > acting very funny. I also kept witing the return from connection_status () > to a file and it keeps witing 0 to the fil

Re: Re[2]: [PHP] Using system

2003-09-17 Thread Robert Cummings
Uros, Run the command from the shell prompt and check your grep against the output. Cheers, Rob. On Wed, 2003-09-17 at 10:49, Uros wrote: > Hello Robert, > > I think not > > here is my code > > #!/usr/local/bin/php -q > $ret = `nslookup -timeout=3 www.myhost.com |grep "Non-existent host/doma

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 22:44, Chris Blake wrote: > Where can I find stats, if any, on the number of sites using PHP as a > server side language ? > > I been googling around using "PHP global statistics" and other > combinations but can`t find anything. www.netcraft.com -- Jason Wong ->

Re[2]: [PHP] Using system

2003-09-17 Thread Uros
Hello Robert, I think not here is my code #!/usr/local/bin/php -q I always get automaticaly output. I also try to set implicit_flush to off, use ob ob_... nothing works. best regards Wednesday, September 17, 2003, 4:16:10 PM, you wrote: RC> Backtick style gets you the output... RC> $passw

[PHP] PHP Worldwide Stats

2003-09-17 Thread Chris Blake
Greetings learned PHP(eople); Where can I find stats, if any, on the number of sites using PHP as a server side language ? I been googling around using "PHP global statistics" and other combinations but can`t find anything. Regards -- Chris Blake Support Consultant Office : (011) 782-0840 Fax

[PHP] SOLVED=> 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
I'm sorry for the double post. Other then letting both lists know this was solved, it won't happen again. Sorry. Thank you for the solution! I new it was simple. I've been staring at it too long. Fresh eyes always helps! Thanks again, Roger You are making the fetch twice, and not using the

Re: [PHP] 'while' not picking up on first DB record

2003-09-17 Thread Miles Thompson
Please don't cross-post. See below - M. At 10:17 AM 9/17/2003 -0400, Roger Spears wrote: Hello, Can anyone from the lists please tell me why this bit of code is not picking up on the first record in the database? If the 'id' I'm looking for is '1' it doesn't populate the _SESSION variables. An

[PHP] 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
Hello, Can anyone from the lists please tell me why this bit of code is not picking up on the first record in the database? If the 'id' I'm looking for is '1' it doesn't populate the _SESSION variables. Any 'id' greater then '1' will populate the _SESSION variables. $q = "SELECT * FROM emplo

RE: [PHP] Using system

2003-09-17 Thread Robert Cummings
Backtick style gets you the output... $passwords = `cat /etc/passwd`; Cheers, Rob. On Wed, 2003-09-17 at 09:55, esctoday.com | Wouter van Vliet wrote: > Don't think there's one function for it .. Though, you may want to try the > output buffers. > > ob_start(); > ( .. Exec here ..) > $Var = o

[PHP] Re: Edit a String

2003-09-17 Thread Chris Kranz
> format ', x, x, xxx' how can I edit it so that the comma's are > replaced with line breaks i.e. /n. This will enable me to display the str_replace ( ",", "\n", $address ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Edit a String

2003-09-17 Thread Jay Blanchard
[snip] I have addresses stored in my database. I am trying to create a page that generates a letter automatically for the user to print. Given a string of format ', x, x, xxx' how can I edit it so that the comma's are replaced with line breaks i.e. /n. This will enable me to display the

[PHP] Edit a String

2003-09-17 Thread Shaun
Hi, I have addresses stored in my database. I am trying to create a page that generates a letter automatically for the user to print. Given a string of format ', x, x, xxx' how can I edit it so that the comma's are replaced with line breaks i.e. /n. This will enable me to display the a

Re: [PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Scott Fletcher
Ah! So I do this to make it work where count can be any number... f.elements['MyArray[]'][count].value That does work now. It's been mind boggling to do the conversion between JavaScript, HTML and PHP when it come to an array but I'm learning. :-) Thanks a million... Scott F. "Marek Kilimaj

Re: [PHP] Headers, outputting a file ..

2003-09-17 Thread Curt Zirzow
* Thus wrote Adam i Agnieszka Gasiorowski FNORD ([EMAIL PROTECTED]): > Wouter van Vliet wrote: > > > 110 $File = $this->Get($User); > > 111 > > 112 foreach($File['Headers'] as $H) header($H);; > > 113 readfile($File['Path']); > >

RE: [PHP] Using system

2003-09-17 Thread esctoday.com | Wouter van Vliet
Don't think there's one function for it .. Though, you may want to try the output buffers. ob_start(); ( .. Exec here ..) $Var = ob_end_clean(); , Wouter -Original Message- From: Uros [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:18 PM To: PHP General list Subject: [

Re: [PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Marek Kilimajer
if f = your form then f.elements['MyArray[]'] is a javascript array of input elements. Scott Fletcher wrote: Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission. Right now, I'm having trouble getting Javascript to do the error checking

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Scott Fletcher
Speaking of your problem, you're using the header() function to exit the webpage to the login page. So, it all come down to the either one of these two or both of these two if(!isset($uname)) { if (mysql_num_rows($result) == 0) { Upon closer inspection on the script, it look like either th

[PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Scott Fletcher
Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission. Right now, I'm having trouble getting Javascript to do the error checking of each of the HTML variable if it's variable name is treated as an array. Anyone know of a workaround to it w

[PHP] Using system

2003-09-17 Thread Uros
Hello! I'm pulling my hair. What is the right syntax to set output of some system call to variable. I tried everything (system, shell_exec,exec) and always get output to screen. Please help. PHP version 4.3.3 CLI -- Best regards, Uros -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Whats wrong with my code?

2003-09-17 Thread David T-G
Stevie -- You've already been beaten up about posting tons of code, so I won't add to that (much, anyway; DON'T, and ABSOLUTELY DON'T 'TOFU' POST!). And you've heard that you needed the ; on the last line and to correct your occasional $includes problems, so that's done. Yes, you should work on

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hiya everyone, Hi! % % We are creating a voteing/rateing script for BestWebHosters.com (a ... % % Voteing will be allowed only to clients who register and confirm their email % addresses, plus only 1 vote per IP and we will be using cookies + other % se

Re: [PHP] Problem sending HTML formated mail

2003-09-17 Thread David T-G
Juan -- ...and then Juan Carlos Borrero said... % % Hi People Hi! % % I'm using the mail() function in order to send HTML formated e-mails to my % customers in an automatic process, witha aPHP program. Some times the OK. HTML mail is evil, but continue on ;-) % e-mails where produced with

Re: [PHP] Headers, outputting a file ..

2003-09-17 Thread Adam i Agnieszka Gasiorowski FNORD
Wouter van Vliet wrote: > 110 $File = $this->Get($User); > 111 > 112 foreach($File['Headers'] as $H) header($H);; > 113 readfile($File['Path']); Do I see TWO ; here or it's just a typo? -- Seks, seksić, seksolatki... news:pl.

  1   2   >