[PHP] Persistent connections

2013-10-26 Thread Nibin V M
Hello, I have been reading docs and many are telling that persistent connections are kept open indefinitely. But I found in PHP docs that it will not close after script execution like requesting a page; so should it close after the request is over? So when exactly a persistent connection should

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
ok..thanks guys...I will check further then. thanks for your inputs :) On Sun, Mar 4, 2012 at 9:59 PM, Govinda wrote: > >>> in factI really need to remove the file ( which will be created for > >>> every access - making a copy from another location ). I can't leave > that > >>> file alone for

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
ok..I have script which will run based on some values in "user's" homedir. In fact I have tried to run the script from a various locations; but it didn't work as expected like it run from each users homedir. So, when the user access the page, it will copy the actual script to the user's homedir a

Re: [PHP] Script execution after window close

2012-03-04 Thread Nibin V M
0530, Nibin V M wrote: > > Hello, > > I need to run a few commands when a user close the browser tab. That is, I > have a php page ( index.php ) and it will create a temporary file to track > some stuffs. That temporary file should be removed, when the user close the > browser

[PHP] Script execution after window close

2012-03-04 Thread Nibin V M
Hello, I need to run a few commands when a user close the browser tab. That is, I have a php page ( index.php ) and it will create a temporary file to track some stuffs. That temporary file should be removed, when the user close the browser tab. Is there any way to achieve this? Thank you, -- R

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Hmm..I am a php newbie ( just started learning it )... what my need is to display website from my server always for a non-registered domain.This is the code I use now to display the website array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n"

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
ote: > On 03/02/2012 06:26 AM, Nibin V M wrote: > >> Hello, >> >> I am trying to display the website content through a php code ( my own >> websites; doesn't cause copy right issues ). >> >> I use curl to display the page via the following simple

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
r 2, 2012 at 8:10 PM, Nibin V M wrote: > Thanks Marc. But that need to add the DOM parser to the server. What I am > looking for something like "iframe" in html and that doesn't require any > additional PHP modules ( I do would like to avoid additions to the current

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Thanks Marc. But that need to add the DOM parser to the server. What I am looking for something like "iframe" in html and that doesn't require any additional PHP modules ( I do would like to avoid additions to the current php; that is why I didn't compiled in curl ) On Fri, Mar 2, 2012 at 7:58 PM,

[PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Hello, I am trying to display the website content through a php code ( my own websites; doesn't cause copy right issues ). I use curl to display the page via the following simple code. http://mytest.com";); curl_exec ($curl); curl_close ($curl); ?> But on some of my servers, curl isn't enabled!

Re: [PHP] Website preview script

2012-02-29 Thread Nibin V M
9 Ashley Sheridan > >> ** >> On Wed, 2012-02-29 at 19:54 +0100, Simon Schick wrote: >> >> >> Hi, Nibin >> >> I wonder what you'd call a ... >> Do you mean a screenshot or the HTML-response from the server, specially >> prepared (sounds

Re: [PHP] Website preview script

2012-02-29 Thread Nibin V M
just started to learn PHP today ) I need to start from scratch. If yo could provide some sample code, it will be great :) thanks for your input guys.. On Thu, Mar 1, 2012 at 12:11 AM, Ashley Sheridan wrote: > ** > On Wed, 2012-02-29 at 19:29 +0100, Matijn Woudt wrote: > > On Wed, Feb 29,

[PHP] Website preview script

2012-02-29 Thread Nibin V M
Hello, I am very new to PHP coding. I am trying to achieve a task via PHP, regarding which I have been googling around for a few days and now come up with emtpy hands! Ok, what I need to write is a "website preview script". That is I need to display a website hosted on serverA and pointing elsewh

[PHP] different php.ini for virtual host on apache2 with mod_php5

2010-03-17 Thread Stanislaw V. Smetanin
anin:~$ apache2 -v Server version: Apache/2.2.12 (Ubuntu) Thanks to the community for any help. -- Stanislaw Smetanin. http://stanislaw.su/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
not as an attack of any kind. I applaud anyone who's embarking on a freelance career since it's a pretty risky route to take, but you need to approach it in a sustainable way if it's going to be a success. If you can make a success of freelancing you can do very well out of it so I wish you the best of luck. -Stut Thanks. -- V -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
On 8/19/2008 5:49 PM India Time, _metastable_ wrote: I stand by my point though. Had it actually been an advert, which it was not, a post count of 9 would not inspire confidence in his qualities as a determined support engineer. I think incorrigible is the word for you. V S rawat java

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
h projects are of no use for me. Thus, my humble payments would get partly supplemented by the earnings they would do through such developments. -- If the suggestion of help against payment is really so offending to you guys, my sincere apologies. Stijn -- V -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
On 8/19/2008 5:22 PM India Time, _Stut_ wrote: On 19 Aug 2008, at 12:36, Colin Guthrie wrote: metastable wrote: V S Rawat wrote: If you provide "paid" help in code development/ testing/ troubleshooting related to php or other software areas, please feel free to drop a line to m

[PHP] Re: Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
On 8/19/2008 5:06 PM India Time, _Colin Guthrie_ wrote: metastable wrote: V S Rawat wrote: If you provide "paid" help in code development/ testing/ troubleshooting related to php or other software areas, please feel free to drop a line to me at my id mentioned below. Please don&#x

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
at would be beneficial to your goals, e.g. wendo, ogone and the likes. Please take your commercial goals there. You seem to be having something against commercial dealings. Seems you dad-in-law has enough money. Just my two cents. Stijn Thanks. -- V -- PHP General Mailing List (http://www

[PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread V S Rawat
of you. I hope you wouldn't really mind if some of our colleagues who are doing such a lovely volunteer work here get to earn some money for a bottle of beer and more. Rest assured that it is no fraud/ scam/ cheating. I am very much here to take the brickbats. Thanks. -- V vsrawat at gmail dot

Re: [PHP] Why PHP4?

2008-08-08 Thread V S Rawat
ng programs (say, in good old foxpro) to keep track of a clients work progress, next action date, reminders, track of payment from the clients, to the agents who get the work done, so on. I mean it is a complete working system as it was in 80s. -- V Thank you, Micah Gersten onShore Network

Re: [PHP] Why PHP4?

2008-08-07 Thread V S Rawat
was surprised to see some very busy and well to do Chartered Accountants, Company Secretaries still using those 8086 pcs with Wordstar and lotus that were there on mid 80s. They say these are no more available so data in these pcs and these formats are much more safer than that on a latest ma

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread V S Rawat
will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "e:/wamp/www/" thanks. -- V Chetan Dattaram Rane | Software Engineer | Persistent Systems [EMAIL PROTECTED] |

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread V S Rawat
64 worker threads. I gave, check port 80. The dos window that opened said "your port 80 is not used" and the following entry got added in error_log: [Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting thread to listen on port 80. Thanks. -- V Chetan Dattaram Rane | Software E

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread V S Rawat
On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote: On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote: I have put the first php script to hello.php file: PHP Test Hello World'; ?> I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6,

[PHP] Newbie problem: Php script not running in browser.

2008-08-05 Thread V S Rawat
le in windows explorer, it opens in notepad for edit, instead of getting opened in firefox that is my default. Please give me the starting push. -- V -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP code will not work

2008-07-09 Thread Mike V
I had this problem and just figured it out. I was copying and pasting the code snippet from the tutorials page to my test editor and in the process picked up an invisible ctrl char. Doh!! Joseph Subida wrote: > > > The error I get when I try > > echo $_SERVER['HTTP_USER_AGENT']; > ?> > >

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Anna V
On 4/17/07, Paul Novitski <[EMAIL PROTECTED]> wrote: At 4/17/2007 07:53 PM, Robert Cummings wrote: >On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote: > > I've never never had used tables for layouts (I worked on pretty > > complicated projects)... Heck, http://esp

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Anna V
On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote: > On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote: > > > On Tuesday 17 April

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Anna V
On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote: > On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote: > > > > BTW, any web developer worth his or her salt with a reasonable amount of > > > practice can make CSS layouts that res

Re: [PHP] Explicit Stream Flush with fsockopen()

2006-12-06 Thread Oliver John V. Tibi
. :) O.J. Richard Lynch wrote: http://php.net/fflush On Sun, June 4, 2006 9:51 pm, Oliver John V. Tibi wrote: Hi Guys, I know this may sound fundamental to some of you, but do you know any way of explicitly flushing out stream buffers off to the socket using fsockopen()/fputs() combos? Hope to

[PHP] Explicit Stream Flush with fsockopen()

2006-06-04 Thread Oliver John V. Tibi
other than http, so I don't know if ob_flush() and its family of functions will work. Thanks! :) -- Oliver John V. Tibi Software Programmer/Web Application Developer IAMD Software Solutions [EMAIL PROTECTED] "Live free() or die()." -- PHP General Mailing List (http://www.php.ne

[PHP] Socket Functions in PHP

2006-05-07 Thread Oliver John V. Tibi
e as my app does. Please help. Comments, suggestions and thoughts through the group or private mail are deeply appreciated. Thanks! -- Oliver John V. Tibi Software Programmer/Web Application Developer IAMD Software Solutions [EMAIL PROTECTED] "Live free() or die()." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array problem + humor (all those with joke allergies beware)

2006-04-23 Thread Brian V Bonini
On Sat, 2006-04-22 at 14:16, Jochem Maas wrote: > with regard to Suresh - do you, Brian, know how many times he has posted > similar > question to this list this year? (this is the first time he has even given > an indication that he knows where the manual is let alone opened it btw) do > you > k

Re: [PHP] array problem

2006-04-23 Thread Brian V Bonini
On Sat, 2006-04-22 at 15:31, Martin Alterisio wrote: > You're wrong, he isn't using an associative array, since the keys used > are only integers. Well, if you really want to argue semantics then technically we're both wrong because there are no different indexed and associative array types in PHP

Re: [PHP] array problem + humor (all those with joke allergies beware)

2006-04-22 Thread Brian V Bonini
Jochem's site: << snip >> http://iamjochem.com/mariecke/index.php Mariecke's daily ramblings (almost) in dutch & english... this page is using output from a drupal system. If nothing else they have a nice logo. ;) Warning: main(./../blog/parse.php): failed to open stream: No such file or direct

Re: [PHP] array problem

2006-04-22 Thread Brian V Bonini
[1] => 40 [2] => 30 ) Don't use an associative array for $a $a=array(10,10,40,30,30,10); Or iterate through $a to re-sequence the index in $b. $a=array(0=>10,1=>10,2=>40,3=>30,4=>30,5=>10); $a=array_unique($a); foreach($a as $v) { $b[] = $v; } pri

[PHP] mktime() vs date()

2006-04-17 Thread Jasper V. Ferrer
hi, is mktime() actually faster than date() or any other date functions? tnx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] binding adodb

2006-03-02 Thread Brian V Bonini
On Wed, 2006-03-01 at 19:25, Chris wrote: > Raúl Castro Marín wrote: > > I got a little question, I just start to use binding adodb but I got a > > problem: my primary query on Oracle is: > > > > $query = "SELECT munici_mun, UPPER(nombre_mun) > > FROM MUNI > > WHERE departa_dpt = ? AND > > mun

Re: [PHP] xml to array

2006-02-05 Thread Brian V Bonini
On Sun, 2006-02-05 at 06:32, Tod Thomas wrote: > Just a quick shot it the dark... > > http://www.w3.org/TR/REC-xml/#NT-Name > > Go up about a half page to this: > > "[Definition: A Name is a token beginning with a letter or one of a few > punctuation characters, and continuing with letters, dig

Re: [PHP] xml to array

2006-02-04 Thread Brian V Bonini
On Fri, 2006-02-03 at 16:23, Richard Lynch wrote: > I've got my money on the XML spec REQUIRING an alphabetic start to > tagnames, and subsequent characters can be alphanumeric... > > In other words, it doesn't work because <0> is not a valid XML tag. Yeah, that was my instinct too... Just could

[PHP] xml to array

2006-02-03 Thread Brian V Bonini
Joe Shmoe foo bar <0>DNR <1>OPT <2>FOO <3>BAR <4>CWS <5>AVS 72 96Kg 0 etc... $xml_data = $xml; $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 0); xml_parse_into_struct($parser, $xml_data,

Re: [PHP] XML and htmlentities conditionally?

2006-01-29 Thread Brian V Bonini
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote: > I have a block of XML that looks as follows: > > <*_~_*> Røyken VGS <*_~_*> > My question is, can I in any way efficiently (i -stress- efficiently, if > anyone read my previous XML and special characters post its a rather > large XMl file (br

Re: [PHP] query problem.

2006-01-24 Thread Brian V Bonini
On Wed, 2006-01-25 at 08:01, Angelo Zanetti wrote: > Hi guys. > > I got an entry in a field called emailfrom in my table (MySQL db). > > The data in that field is: Sams Bank <[EMAIL PROTECTED]> > > I then do the following to retrieve the info, using a DB class > > $recordset=$conn->Execute("SEL

[PHP] worked around STDIN problem from before

2006-01-07 Thread matt V
hmm, it seems php -a likes to complain heh, so I decided to do my little STDIN tests in an actual script and not interactively and turned off error reporting..things are all happy again in "matt land" lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] thought stdin was supposed to default open

2006-01-07 Thread matt V
de, or is STDIN not opened by default in php4.4 this is on slackware linux version 10.2 running php -v 4.4 matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fw: [PHP] Load from db into -list

2005-12-18 Thread Brian V Bonini
On Sun, 2005-12-18 at 15:22, Gustav Wiberg wrote: > > Ajax? What is that? Asynchronous JavaScript and XML, or Ajax, is a web development technique for creating interactive web applications using a combination of: - XHTML (or HTML) and CSS for marking up and styling information - The Document Ob

Re: [PHP] insert to DB

2005-12-18 Thread Brian V Bonini
On Sun, 2005-12-18 at 07:41, Anasta wrote: > It just wont insert new data into DB--any ideas as i have gone over and > over. Your not doing any inserts, two selects and one update... insert in t1 values('foo','bar','1 1 2 3 5 8 13'); -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0

Re: [PHP] Intersecting Dates

2005-11-27 Thread Brian V Bonini
On Sat, 2005-11-26 at 16:18, Shaun wrote: > Hi, > > Given a start day and month and end day and month (i.e. 01-01 to 31-03) how > can one check if another set intersects these dates? Convert each to epoch and test for > floor < ceiling, just a thought. $a = array(mktime(0, 0, 0, 1, 1, date('Y'

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Brian V Bonini
On Sun, 2005-11-20 at 09:38, Łukasz Hejnak wrote: > Brian V Bonini napisał(a): > > You are saying: > > From the CLI you can write to a file all day long, no prob. > Yes, the shell command "php test.php" works fine when executed as root > (any other user has t

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Brian V Bonini
On Sun, 2005-11-20 at 05:44, Łukasz Hejnak wrote: > Hello again, here's some more extra info on my case that came out while > Suhas Pharkute was helping me find a resolution: > So the safe-mode is off, that's for sure, I turned it off at compile stage. > > I delete the file after each run of the

Re: [PHP] arrays question

2005-11-12 Thread Brian V Bonini
p through so I can get and print "1","492","11" and > "2","211","20" What is the best way to do this? I suck with arrays and > I can't get my looping right. $a = array(array(1,2), array(492,211), array(11,20)

Re: [PHP] AJAX & PHP

2005-07-23 Thread Brian V Bonini
On Thu, 2005-07-21 at 08:23, Marco Tabini wrote: > We had a webcast on PHP and Ajax a while back--the recordings are still > available for free at http://blogs.phparch.com/mt/index.php?p=49. Nice, totally crashes Firefox in Linux. -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | K

Re: [PHP] PHP 5 Object Inheritance

2005-07-15 Thread Brian V Bonini
On Fri, 2005-07-15 at 17:53, Chris wrote: > > > Yeah, I understand... Is multiple inheritance something that true OOP > languages can do? > Yes. -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu

Re: [PHP] Dynamic Images and File Permissions

2005-07-14 Thread Brian V Bonini
On Thu, 2005-07-14 at 12:09, Adam Hubscher wrote: > My questions are this: > > A) Is there any way to set the permissions on the file on creation of > the image? Set umask 002 on the user php is running as. -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu =

Re: [PHP] recompiling php

2005-07-06 Thread Brian V Bonini
On Wed, 6 Jul 2005, blackwater dev wrote: > I have a linux box which I use periodically. I built php 5.0.3 on it > and it runs fine. I just came across a situation where I need to > compile in the zlib extension so I got into my php folder and did > ./configure with my options, then make and make

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-07-01 Thread Brian V Bonini
On Thu, 2005-06-30 at 10:47, Bob Winter wrote: > Brian, > > Is "/www/files/services/" the correct relative path?? You could > try using the absolute path to see if it fixes the problem. > > Also, and maybe more significant, I use tcsh . . . if you use bash > this could be the conflict. I s

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-30 Thread Brian V Bonini
On Wed, 29 Jun 2005, Bob Winter wrote: > Brian, > > The script works for me, I should have included the screen > input/output, which now follows: > Hmmm, this simply does not work for me. Maybe something with my version of php or ssh.. I'm at a loss.. $ php -v PHP 4.3.5 (cli)

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-29 Thread Brian V Bonini
On Tue, 28 Jun 2005, Bob Winter wrote: > Brian, > > The format of your string that works for me is : > > $cmd = "scp [EMAIL PROTECTED]:$directory/\{$files\} $tmp_dir"; > > $files must be a comma separated string with NO SPACES. > > Here is my complete test script for your review: > STAR

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-28 Thread Brian V Bonini
cho $cmd . "\n"; //exec($cmd, $output, $err); $i++; } $i = $ii; // reset $i to original value so loop continues }

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-28 Thread Brian V Bonini
On Mon, 2005-06-27 at 20:51, Jasper Bryant-Greene wrote: > Brian V Bonini wrote: > >>> I can echo out the command and get a well formed command, i.e. > >>> one that will execute from a command prompt, but when I try to > >>> exec() $cmd from within the scrip

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread Brian V Bonini
On Mon, 27 Jun 2005, [ISO-8859-1] Andr? Medeiros wrote: > $cmd = 'scp ' . $user . '@stagingcws.' . $tld . ':' . $directory/{' . > $files . '} ' . $tmp_dir . '/'; > > That should work > > On 6/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can not make this work inside a php script. > > >

Re: [PHP] including the result of one query in another query

2005-06-26 Thread Brian V Bonini
On Sun, 2005-06-26 at 06:38, Pedro Quaresma de Almeida wrote: > Hi > > I have two databases, on for aeromodelistas (aeromodelling) and > another for Códigos Postais (Postal Codes). I whant to do the > following query > > SELECT CódigoPostal FROM Aeromodelistas > WHERE CódigoPostal IN > (SELEC

Re: [PHP] a basic array question!

2005-06-25 Thread Brian V Bonini
On Sat, 2005-06-25 at 17:01, bruce wrote: > feel kind of foolish posting this.. but i can't seem to figure it out for > now.. > > i have an array, i can do a print_r($foo) and get the following: > Array > ( > [bookmark] => 1 > [facets] => Array > ( > [0] => Array >

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Brian V Bonini
On Sun, 2005-06-05 at 18:13, Dotan Cohen wrote: > On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > > On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > > > > > I don't want to strip out all the tags, just certain ones. But the > > > problem tur

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Brian V Bonini
On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > I don't want to strip out all the tags, just certain ones. But the > problem turned out not to be in this peice of code- the script simply > wasn't parsing. I started another thread with that problem after > failing to fix it on my own. The proto

Re: [PHP] looping through an array problem

2005-06-05 Thread Brian V Bonini
On Sun, 2005-06-05 at 16:37, Jack Jackson wrote: > This is something dumb I am doing but: > > Trying to pull all names of publishers in db. This sql: > > SELECT art.art_id,art.publisher_id,publisher.publisher_name, > FROM art > LEFT JOIN publisher > ON publisher.publisher_id=art.publisher_id > >

Re: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 16:24, W Luke wrote: > On 30/05/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > > [...] > > > > Again, an example that is as close to your real-world needs as possible > > > would be very helpful. > > > > The original re

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 15:24, Murray @ PlanetThoughtful wrote: > > This is a great help, thanks to both. One question I have though. > > How do I just leave the formatting "as is"? In the loop you gave me, > > Brian...: > > [snippage] > > > I can't see how I can disregard strtolower without dis

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 12:58, Murray @ PlanetThoughtful wrote: >$string = "this"; > $string{0} = strtoupper($string{0}); > echo $string; // should return value of "This" > ?> I knew you could access but I didn't realize your could assign/replace specific chars like that, i.e. $string{x} =

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 11:13, Murray @ PlanetThoughtful wrote: > > Someone much more clever that I can probably come up with something much > > cleaner and efficient but This works... > > Definitely not more clever and arguably not more efficient, but a different > way of handling this might be

Re: [PHP] Replacing 2 strings

2005-05-29 Thread Brian V Bonini
On Sun, 2005-05-29 at 12:22, W Luke wrote: > Hi, > > I have some text in a file which, when it's dumped to a var, needs to > be replaced. In its raw form, it looks like this: <^JIM_JONES> and I > need to remove the <^_ and > characters and have it read "Jim-Jones" > > It's nestled in amongst a l

Re: [PHP] how to convert char into number

2005-05-27 Thread Brian V Bonini
On Wed, 2005-05-25 at 16:01, Jeremy Reynolds wrote: > What function do I use to convert an ASCII character into it's > equivalent number? ord() -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu

Re: [PHP] how to convert char into number

2005-05-27 Thread Brian V Bonini
On Wed, 2005-05-25 at 16:11, Jeremy Reynolds wrote: > What function do I use to convert an ASCII character into it's > equivalent number? > -- > Sorry, I think my spam filters got any responses. If you replied, > could you please resend it to me? ord() -- PHP General Mailing List (http://www.

Re: [PHP] include file and problems with headers

2005-05-27 Thread Brian V Bonini
On Sat, 2005-05-21 at 06:30, Ross wrote: > I have the folowing code which checks whether the user has logged in. > > if (!isset ($_SESSION['new_session'] ) ) > { > > $login_status = "Your are not signed in > "; > > } > if (isset ($_SESSION['new_session'] ) ) > { > $address = $_SESSION['new_sess

Re: [PHP] update blues

2005-05-21 Thread Brian V Bonini
On Fri, 2005-05-20 at 23:54, Jim & Sara Feldman wrote: > Warning: session_start(): Cannot send session cookie - headers > already sent by (output started at > /Library/WebServer/Documents/testit/Logsafe_project/db_fns.php:212) > in /Library/WebServer/Documents/testit/Logsafe_project/member.php o

Re: [PHP] Getting parameters from a URL coming from outside the site

2005-05-20 Thread Brian V Bonini
On Fri, 2005-05-20 at 12:51, Mário Gamito wrote: > Why is this wrong and how to make it right ? I did this and sent myself a link to it via email, clicked it from within my email client (Evolution) which launched a browser and called the script successfully writing the vars to test.txt. Of course

Re: [PHP] Building array ?

2005-05-18 Thread Brian V Bonini
On Wed, 2005-05-18 at 12:00, Paul Nowosielski wrote: > HI All, > > I'm trying to build an array of user id's. This is the code I've written > that does not work. > > > while($row=mysql_fetch_array($result)){ >// put user ID's into an array; >$uidToAdmin .= array ("$row[user_id]"); > >

Re: [PHP] Re: Sending a string with $_POST/$_GET

2005-05-18 Thread Brian V Bonini
On Wed, 2005-05-18 at 11:53, Luis wrote: > Ross wrote: > > I want to write a string to a variable and use $_POST or $_GET to retrieve > > it on another page. $string = 'this is a string'; echo 'Next page'; another_page.php: echo $_GET["val"]; -- s/:-[(/]/:-)/g BrianGnuPG -> KeyI

Re: [PHP] Re: why are session only working with cookies?

2005-05-18 Thread Brian V Bonini
On Mon, 2005-05-16 at 22:10, Richard Lynch wrote: > Let him fight with phpIniDir some other day. Something interesting maybe: http://gfx.gfx-design.com/session_test.php Hit your browsers refresh button. I would think SID is NOT supposed to change with every page refresh..?? '; print_r($_SESSION)

[PHP] Help with using SPL to build a MySQL Iterator

2005-05-18 Thread V Kam
Hello all I was trying to write an SPL Iterator for a MySQL result set but not having any luck. Specifically I'm not sure how to overload the key() and current/next() methods. Does anyone here have a working code sample that does this, or can offer some guidance on how to overload the 5 Iterator

Re: [PHP] Re: why are session only working with cookies?

2005-05-17 Thread Brian V Bonini
On Tue, 2005-05-17 at 15:58, Richard Lynch wrote: > > On Tuesday 17 May 2005 21:01, Brian V Bonini wrote: > > > >> Still no go... Other changes in php.ini DO take effect, just not > >> this I'm at a loss > > Does phpinfo() show trans_sid as "

Re: [PHP] Re: why are session only working with cookies?

2005-05-17 Thread Brian V Bonini
On Tue, 2005-05-17 at 09:53, Jason Barnett wrote: > Brian V Bonini wrote: > ... > > > > Still no go... Other changes in php.ini DO take effect, just not > > this I'm at a loss > > > > > > By any chance are you changing PHP values throug

Re: [PHP] counting ocuring words in a string

2005-05-17 Thread Brian V Bonini
On Tue, 2005-05-17 at 06:00, Merlin wrote: > Hi there, > > I am trying to find a way to count the number of times (if any) words are > inside > a string. So I played around with ereg, preg_match_all and so on, but could > not > put together a working code. Maybe something like this? '; fore

Re: [PHP] Re: why are session only working with cookies?

2005-05-17 Thread Brian V Bonini
On Mon, 2005-05-16 at 22:10, Richard Lynch wrote: > Does show the same /path/to/php.ini as the one you edit? > Yup > To be 100% certain, use 'stop' to stop Apache and then do: > ps aux | grep httpd > > You should see only the "grep httpd" output, or no output at all. Did that... > Then

Re: [PHP] Special characters

2005-05-16 Thread Brian V Bonini
On Mon, 2005-05-16 at 12:23, Carlos Palomino wrote: > Hi everyone, > I have just begun writing PHP web-pages and I have come across an interesting > issue. > Whenever I use special characters within my code such as: a "©", the > character > displays as a "?". Because that's not valid HTML... S

Re: [PHP] Re: why are session only working with cookies?

2005-05-16 Thread Brian V Bonini
On Sat, 2005-05-14 at 22:44, Richard Lynch wrote: > Using Cookies, or using URL, the session DATA will be stored on the server > in /tmp files -- Unless you change php.ini to store them somewhere else, > in which case, again, the Cookie and URL only holds the ID and all the > data goes wherever you

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 13:03, Jared Williams wrote: > > > > On Sat, 2005-05-14 at 07:57, Jared Williams wrote: > > > > Hi, > > > > I've used loadHTML() to read a HTML file to DOM. This file starts > > > > with a string like > > > Transitional//EN"> > > > > > > > > Do someone know how I can acce

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 16:08, Johannes Findeisen wrote: > On Saturday 14 May 2005 16:25, Brian V Bonini wrote: > > > > > $html = << > > > Test > > EOS; > > > > $pattern = ' > Transitional//EN">'; > > > >

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 07:57, Jared Williams wrote: > > Hi, > > I've used loadHTML() to read a HTML file to DOM. This file > > starts with a string like > HTML 4.01 Transitional//EN"> > > > > Do someone know how I can access this string? By reading the > > doctype back from DOMDocument I only f

Re: [PHP] Re: why are session only working with cookies?

2005-05-14 Thread Brian V Bonini
On Fri, 2005-05-13 at 23:31, Jason Wong wrote: > On Saturday 14 May 2005 09:42, Brian V Bonini wrote: > > > Yeah, I know session support is there and I DO NOT have it set to use > > ONLY cookies. But if I disable cookies in the browser stuff relying on > > sessions stops

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 06:00, Claudio wrote: > Hi, > I've used loadHTML() to read a HTML file to DOM. This file starts with a > string like > > > Do someone know how I can access this string? By reading the doctype back > from DOMDocument I only found the name (HTML) but nothing more... > Tes

Re: [PHP] Re: why are session only working with cookies?

2005-05-13 Thread Brian V Bonini
On Fri, 2005-05-13 at 17:51, Jason Barnett wrote: > Brian V Bonini wrote: > > Everything in php.ini seems to be correct. Is there soem thign I'm > > supposed to pass to 'configure' at compile time? > > Session support is now built-in by default, so unless yo

[PHP] solved::session wierd in Konqueror

2005-05-13 Thread Brian V Bonini
This is solved... --original-- session_start(); header("Cache-control: private"); // IE 6 Fix $user_quotes = $_SESSION['user_quotes']; if (!isset($user_quotes) || $user_quotes >= count($quote_result) - 1) { $user_quotes = 0; } else { $user_quotes++; } echo ""; echo $_SESSION['user_quotes

[PHP] why are session only working with cookies?

2005-05-13 Thread Brian V Bonini
Everything in php.ini seems to be correct. Is there soem thign I'm supposed to pass to 'configure' at compile time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php works in IE not Firefox?

2005-05-13 Thread Brian V Bonini
On Fri, 2005-05-13 at 14:12, Dustin Wish wrote: > Anyone run across an issue where a php script works in IE and not Firefox? > Christianboards.org is a PHP nuke site running on a Enism linux box that is > having this issue. http://www.christianboards.org/ comes up fine for me; firefox/linux howeve

Re: [PHP] domxml problem

2005-05-13 Thread Brian V Bonini
On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote: > But it gives me error on this line : > $DomDocument = domxml_open_file($file); What's the error? Try: $dom = dom_xml_file($file); -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu

[PHP] session wierd in Konqueror

2005-05-13 Thread Brian V Bonini
session_start(); header("Cache-control: private"); // IE 6 Fix $user_quotes = $_SESSION['user_quotes']; if (!isset($user_quotes) || $user_quotes >= count($quote_result) - 1) { $user_quotes = 0; } else { $user_quotes++; } echo ""; echo $_SESSION['user_quotes'] . "\n"; print_r($_SESSION); ec

Re: [PHP] Re: Strange comparison behaviour

2005-05-13 Thread Brian V Bonini
On Fri, 2005-05-13 at 06:34, Erwin Kerk wrote: > Bogdan Stancescu wrote: > > You probably mis-typed something: > > > > [EMAIL PROTECTED] ~]$ php > > > if ("info" == 0) echo "is 0\n"; else echo "not 0\n"; > > ?> > > Content-type: text/html > > X-Powered-By: PHP/4.3.11 > > > > is 0 > Tried that, b

  1   2   3   4   5   6   >