RE: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Jay Blanchard
[snip] I'll tell you what really forced me to go in the matter of interpreted or Compiled language. In the heart of PHP 4+ is Zend Engine which compiles (often says) the php code into some intermediate code called opcode and then Zend executor executes them converting these opcodes to machine lan

Re: [PHP] Persistent connection extension not freeing connections until server is restarted

2003-08-14 Thread Curt Zirzow
* Thus wrote Matt Anderson ([EMAIL PROTECTED]): > Hi all, > > I have a fairly advanced question regarding writting modules that create > persistent resources: > You might want to ask this over in php-dev, most people here dont deal with the internals of php. > I've written a module very similar

Re: [PHP] image button problem

2003-08-14 Thread CPT John W. Holmes
From: "Abdul-wahid Paterson" <[EMAIL PROTECTED]> > I am trying to create an HTML form that has several image buttons on it > and the resulting action depends on which button is pressed. > > I first tried using but from > IE on the PHP side I only get $_POST['test_x'] and $_POST['test_y'] > defined

Re: [PHP] Frequent Mode Switching

2003-08-14 Thread Reuben D. Budiardja
On Tuesday 05 August 2003 05:21 pm, Jim Lucas wrote: > This method has been my personal choice for the past 3-4 yrs in coding, > > I have not found any problems with it thus far. > > But I am gradually switching all my code over to a seperate template style > design as where I have all my values in

RE: [PHP] Possible bug w/ open_basedir?

2003-08-14 Thread Ford, Mike [LSS]
On 09 August 2003 18:02, Dan Brown wrote: > There is no open_basedir restriction in my php.ini. > The only place > this restriction is set (with this path) in httpd.conf is in this > block: > > > AddType application/x-httpd-php .php .php3 .phtml > AddType application/x-httpd-php-s

[PHP] error: cannot redeclare ()

2003-08-14 Thread Martin Towell
I'm getting the following error: PHP Fatal error: Cannot redeclare () (previously declared in /path/to/file/functions.inc:19) in /path/to/file/functions.inc on line 0 Anyone have any ideas how a no-name function could be generated? Line 19 contains: function idb_exec_deadlock($sql,$count

Re: [PHP] Re: on specific time in the month do script!!

2003-08-14 Thread Justin French
Specific Day: 2) { // show } else { // don't show } ?> Addition of specific time frame of 12noon - 4pm 2) && ($hour >= 12 && $hour <= 16) ) { // show } else { // don't show } ?> Tweak to suit your nee

Re: [PHP] Help Please in using fopen in PHP

2003-08-14 Thread Jason Wong
On Monday 11 August 2003 18:23, [EMAIL PROTECTED] wrote: > I am currently learning php and Mysql a scripting language and DB i just > feel in love with. I am currently having problem in opening file to put > data collected from clients when the purchase from an online shop. The > scripts is as fol

Re: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Curt Zirzow
* Thus wrote Binay Agarwal ([EMAIL PROTECTED]): > Thanks jay for quick response > > I'll tell you what really forced me to go in the matter of interpreted or > Compiled language. > > In the heart of PHP 4+ is Zend Engine which compiles (often says) the php > code into some intermediate code call

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
This is the part of the code as it stands, it gives a permission denied error. $imtemp=$_FILES['file']['tmp_name']; $imsize=$_FILES['file']['size']; $imname=$_FILES['file']['name']; if ($imsize > "10") {zerror("Image too large","Please go back and correct, image must be less than 100k"

[PHP] Re: [PEAR-DOC] standardize @throws for phpdocumentor 2.0?

2003-08-14 Thread Alexander Merz
Greg Beaver wrote: We are thinking of standardizing the format of @throws for phpDocumentor 2.0. The possible format we'd like to use is: @throws constant|classname [description] @throws error_class::constant description ie @throws PEAR_Error::NOT_FOUND -- PHP General Mailing List (htt

[PHP] What does -> mean?

2003-08-14 Thread James Johnson
Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this->vendor = $vendor; What does the -> mean or do? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem looping through records

2003-08-14 Thread John W. Holmes
Huzz wrote: I have a sql statement which brings about 15 records... inside the while loop i am trying to get data from another table by passing an id, the problem is i am only getting the first record .. not the whole 15 records.. any suggestion?? function list_ss_cats(){ global $db; $sql = "SELEC

Re: [PHP] What does -> mean?

2003-08-14 Thread Marco Schuler
Hi James Am Donnerstag, 14. August 2003 um 09:14 schrieb James Johnson: > Hello, > I've searched through Zend and php.net and can't find the answer. > In the following code: > $this->vendor = $vendor; What does the ->> mean or do? http://www.php.net/manual/en/language.oop.php -- Cheers!

[PHP] Re: suggestion on php-editor?

2003-08-14 Thread rush
"Louie Miranda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But i was wondering if you guys have any other suggestions? For the extensive list see Keith's listof editors: http://linuxbackup.co.uk/ rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://ww

RE: [PHP] trying to match the front and end...

2003-08-14 Thread Dan Joseph
Hi, > Not tested, mind you. I know what you're saying, too. How is _all_ of > that code better(worse?) than one simple regex? Benchmark it and see. > You'll be surprised how a lot more code with simple string functions > will be considerably faster than a complex regular expression. Your > results

Re: [PHP] segmentation faults

2003-08-14 Thread Curt Zirzow
* Thus wrote Tom Rogers ([EMAIL PROTECTED]): > ... > > Most programs will crash with null pointers so I operate with error > reporting set to E_ALL and it helps when these sort of things happen. > A function should never trust what it is being fed :) so your solution > is the right way, I don't th

Re: [PHP] Hitler and Recent Threads

2003-08-14 Thread Ryan A
Hey, that happens to be my little attempt to promote a funny site i helped to create...some parts in php i might add. + Its one of my outlook signatures. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: "

[PHP] PHP - MySQL Query...

2003-08-14 Thread Steven Kallstrom
Hello all... I'm embarrassed by this one... I think it should work but it isn't... $dbh = mysql_connect("localhost", "login", "password") or die('cannot connect to the database because: ' . mysql_error()); mysql_select_db("database"); $query = 'SELECT * FROM cities'; $result = mysql_qu

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Evan Nemerson
I think php.net/htmlentities will do this. On Monday 11 August 2003 11:18 am, Liam Gibbs wrote: > I don't think this has been discussed, although I'm not really sure what > you would call these accented characters, so I haven't been able to do a > complete search of the archives, so apologies if

[PHP] Recompile PHP with FDF support.

2003-08-14 Thread Cesar Cordovez
Hi! It's me again! =) I have great news: I finally hire somebody to recompile apache, php and fdf together. My servers are running very smoothly now. I'm so happy. Anyhow, the technician (lunix/unix nerd+geek) used ApacheToolbox, a utility to compile Apache in any linux system with many opt

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
Jennifer Goodie" <[EMAIL PROTECTED]> writes: They don't. ft is aliased to forum_topics. That's right. ft is aliased to the forum_topics table. The query reads: ... $verify = "select ft.topic_id, ft.topic_title from forum_posts as fp left join forum_topics as ft

Re: [PHP] how do I spoof a get request

2003-08-14 Thread Analysis & Solutions
Hey Mike: On Tue, Aug 12, 2003 at 07:33:31PM -0700, Mike Migurski wrote: > > > >That's a good guess! Yet further proof that cookies suck, except the > >ones made with flour, shortening and sugar, of course. > > Huh? seems like further proof that cookies are working as intended: > serving up indi

Re: [PHP] Reformatting phone number string from user input

2003-08-14 Thread Verdon vaillancourt
Yes, I found some examples in the archives that measured a clean string and formatted it according to whether it found 4 (is an error), 7 (xxx-), 10 (xxx-xxx-) or 11 (x-xxx-xxx-). I'm going to work with this sort of logic and standardize the format (or maybe just the length of string)

[PHP] Re: PHP and quickcommerce.com

2003-08-14 Thread Scott Fletcher
Well, if you have the manual or documentation from quickcommerce.com on what to give to them that they need to work for you then you should have no problem writing up a script on what to send to quckcommerece.come "James Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello

[PHP] Re: [PEAR-DOC] standardize @throws for phpdocumentor 2.0?

2003-08-14 Thread Alexander Merz
Greg Beaver wrote: @throws:pear would be a sub-tag of @throws, so that we could have a loose spec for @throws (allowing constant or classname or classname::constant) and a rigid spec for @throws:pear (only classname::constant) +-0 I see the advantage, but the problem here is "the learning by e

Re: [PHP] Server-side script identified as IE

2003-08-14 Thread Vchat20
the actual script im using can be found at http://www.cfxweb.net/civax/archives/0171.htm . and if you could post the exact code for the User-Agent header, that would be great. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Vchat20 <[EMAIL PROTECTED]> wrote:

Re: [PHP] Reading remote, script-generated files

2003-08-14 Thread Matt Daleo
"Matt Daleo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hey Matt: > > > > On Tue, Aug 12, 2003 at 10:07:10AM -0700, Matt Daleo wrote: > > > I'm attempting to read a remote file and parse it f

RE: [PHP] postmaster@hanmir.com

2003-08-14 Thread Chris W. Parker
Joe Harman on Wednesday, August 06, 2003 11:43 PM said: > Hey is every one getting a returned message from > [EMAIL PROTECTED] Yes. PITA if you ask me! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ignore session_auto_start

2003-08-14 Thread Jackson Miller
I have session set to automatically start in my php.ini file. However, I would like this to be ignored for one script on my site (a dynamic image loaded by many other sites where a session is irrelevant). this would be a way to greatly reduce the amount of session files in my tmp directory. U

[PHP] Script Help

2003-08-14 Thread Rod
I am installing a new message board system for my website, I can get it to run, but when I want to log in as admin, or register a new user on the board I get the following error ERROR! Nothing specified! This is the url of the register script http://www.mywebsite.com/forum/member.php?Action=Re

Re: [PHP] Stop neurotic posting

2003-08-14 Thread andu
--On Wednesday, August 06, 2003 00:39:13 -0400 "John W. Holmes" <[EMAIL PROTECTED]> wrote: andu wrote: This is a very busy list, over 100 message in a quiet day and most people are helpful and decent, don't mind reading and learning. Unfortunately there are some who mostly post stuff like 'rea

[PHP] Zend Studio 2.6 CVS

2003-08-14 Thread Jay Blanchard
I know that this is somewhat off-topic, but has anyone set up the Zend CVS for local use within a small group of developers? The manual is very terse and information in the Zend forums is sparse as well. Does the executable for the CVS need to live on the development server? If so, where? We have t

Re: [PHP] Best PHP CMS

2003-08-14 Thread Michael Sherer
Since Ezra mentioned Caravel, I'll make a quick summary: Caravel is written totally in PHP, with OpenLDAP, Apache and Postgres on the back-end. (website metadata is store as LDAP objects--a unique architecture that allows us to scale up higher than RDBMS-based systems--we know, because our prev

RE: [PHP] FDF support in RedHat

2003-08-14 Thread Jay Blanchard
[snip] I have 4 versions: FDFTK.H, fdftk.h, FdfTk.h, Fdftk.h. Same problem. [/snip] Change the configure line to --with-fdftk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Scott Fletcher
Did a lot of searching on the internet and found a simple PHP code that does the trick. How the code work is when you pick a month where you want the last day to be in, then use the next month into the PHP script to get the last day of the month you're looking for. --snip-- //Want to

Re: [PHP] Old version of PHP

2003-08-14 Thread Neil Davis
Fellas, >can't see how this should be an issue. It is a security issue. Most ISP's don't allow register_globals to be turned on. Read the php docs about register_globals. Zeev and company explain it better than I can. http://www.php.net/register_globals It leads to cookie poisoning, header forging

RE: [PHP] bug in code - can't find it!

2003-08-14 Thread Jennifer Goodie
> Ok, here is my query and the bit of code I can't figure out: > > $query = "SELECT * from apt_user_t a, apt_company_t b "; > $query .= "WHERE a.user_cd = b.user_cd "; > $query .= "ORDER BY a.username"; > > $search_results = mysql_query($query) or die("Select > Failed!"); > while

[PHP] How can I change ? to %3F

2003-08-14 Thread CDitty
Is it possible to change the ?, :, & and / characters to their respective hex(?) values automatically? That is without having to use str_replace for each one? Anyone know how? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sum a column of values from a MySQL query

2003-08-14 Thread Miles Thompson
From bitter experience I'll suggest that it's a REALLY GOOD idea to store invoice totals, subtotals, etc. in either the invoice header record. If not rounding errors, or some small change in logic, can come back and bite you - accountants get *really* upset when that 3000.00 invoice becomes 3000

[PHP] Parse error not understood

2003-08-14 Thread Chris Blake
Greetings learned PHP(eople); My HTML : -- Add User Edit User Delete User My PHP Code : 0) { //User already exists in database header('location: user_exists.php');

[PHP] Re: Repopulating forms

2003-08-14 Thread Anthony
becasue your $test string contains double quotes. This is casuing you to end the value element in the input tag. - Anthony "Gerard L Petersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > My code looks like this. > > $test = "gerard's name is \"gerard\""; > echo $test.""

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 11 Aug 2003 at 19:18, lines prefixed by '>' were originally written by you. > I don't think this has been discussed, although I'm not really sure > what you would call these accented characters, so I haven't been able > to do a complete se

Re: [PHP] PHP Name of Script -0-T-

2003-08-14 Thread Ryan A
Hey, Thanks for replying. I searched around hotscripts and found what i was looking for, I wanted something where a company or person could either search for programmers and get a list of all the programmers who entered their details...or a person/company could enter their company. Thanks anyway, -

Re: [PHP] Stop neurotic posting

2003-08-14 Thread daniel
what a silly elitist view you have > perhaps there should be two lists (novice and advanced), and the > advanced listed shouldn't > answer questions if it's considered trivial enough for the novice list > to answer. > > > > Curt Zirzow wrote: > >>* Thus wrote andu ([EMAIL PROTECTED]): >> >> >>>Thi

Re: [PHP] Image Header

2003-08-14 Thread Chris Shiflett
--- Uros Gruber <[EMAIL PROTECTED]> wrote: > I made some php script to get Header from http request. When I > request some image header looks like: > > HTTP/1.1 200 OK > Content-Type: image/jpeg > > Then I made some php script to showing images and when i > request for example img.php?name=somejp

Re: [PHP] Old version of PHP

2003-08-14 Thread daniel
actually u can explicitly turn on registered globals with a setting in a .htaccess file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Miles Thompson
At 02:54 AM 8/6/2003 -0400, andu wrote: if more people would read the manual or know how to find commonly asked and solved quetions this list would probaly drop in 20% (very rough estimate) of posts. Getting that information to the people who arn't reading the manual is a difficult task, cause i

RE: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread Robert Cummings
Since PHP plots the data according to the information in the database then you know about where the data is located in the image. If PHP works on a single plot coordinate then you need to increase the acceptable clickable region and use this to find your point (otherwise people will need to click o

Re: [PHP] how to auto create a new page on the fly

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 00:56, DougD wrote: > I would like to create a new page on the fly - basically having the PHP > file to export content into a new static HTML file and save it as > content.php. > > Make sense? > > Appreciate your help and insights. manual > Filesystem functions Repost

RE: [PHP] error: cannot redeclare ()

2003-08-14 Thread Joe Harman
Hi Martin... I am guessing you have a nested function that is being redeclared, your error would come from there... Just a guess anyhow... Joe > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 2:11 AM > To: [EMAIL PROTECTED] > Subject:

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
I guess my problem is: Note: If you run into problems configuring PHP with fdftk support, check whether the header file fdftk.h and the library libfdftk.so are at the right place. The configure script supports both the directory structure of the FDF SDK distribution and the usual DIR/include

RE: [PHP] AOL Email client

2003-08-14 Thread Mark Roberts
Here is what my header look like: $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; charset=us-ascii\r\n"; $headers .= "From: ".$name." <".$email.">\r\n"; $headers .= "To:

[PHP] Re: Can't Pass variable to other page

2003-08-14 Thread Kae Verens
Jack wrote: Dear all I had write a script like this : $link = "page.php?day=$day&month=$month&year=$year"; when i click on the link, it should pass the parameter to "page.php" with $month and $year variables. It actually works fine in php4.2.1, but when i went to other office which got php5.0 abov

Re: [PHP] Class Design Question...

2003-08-14 Thread Greg Beaver
Dan Joseph on Wednesday, August 06, 2003 10:18 AM said: Are there any performance differences that are noticable in a 300-400 line PHP script if you overuse classes rather than straight functions? This is a loaded question. If you overuse classes, there will be

[PHP] Re: Enterprise PHP market research

2003-08-14 Thread Alexandru COSTIN
I would like to post our survey request to www.php.net. The information is gathering quickly - but I think that going on the main PHP website on earth will bring a lot of new responses to validate our findings. Whom should I contanct? Alexandru -- Alexandru COSTIN Ch

[PHP] HELP about pull hair on this INSERT

2003-08-14 Thread Didier McGillis
About to yank some hair, and I have very little left. Can some one look at my code, then the message I get and see what I am missing, I am at wits end, this is something that is not new to me but I am missing and I cant see it. Included is code, message and table structure. ###

[PHP] segmentation faults

2003-08-14 Thread Martin Peck
hi, I have a large project underway which is (hopefully!) nearing completion, running on the latest stable release, 4.3.2. However, strange things have started happening... My main page sometimes causes Apache to seg fault at some point during the execution (e.g. [Sun Aug 10 18:05:55 2003] [noti

Re: [PHP] Hitler and Recent Threads

2003-08-14 Thread Robert Cummings
The so called Nazi clause is itself the invocation of Godwin's Law. Your reading skills are flawed or you could have determined this from the abounding literature available on the Web. Also there are many examples of Godwin's Law being invoked and subsequently Quirk's exception being raised. Thus s

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Robert Cummings
Your example is ridiculous -- it looks like you want a search egnine to properly phrase the question for you. This works and is more concise and clear: php find a string in a string Really, I don't think people should be using the mailing list in lieu of purchasing a book on PHP or reading one of

Re: [PHP] How to Authenitcate using PHP (RH9, PHP 4.3.2, MySQL 4)

2003-08-14 Thread Mukul Sabharwal
Hello, I have a class that just does that :: http://www.devhome.org/php/scripts/authlib.html - Original Message - From: "Matt Babineau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 8:30 AM Subject: [PHP] How to Authenitcate using PHP (RH9, PHP 4.3.2, MySQL

RE: [PHP] Is PHP cable of handling ASCII characters???

2003-08-14 Thread Jay Blanchard
[snip] Is PHP cable of handling the ASCII characters? Back then, I had no problem with it when there are 'a', 'b', 'c' characters as well as 'LF', 'CR', etc. But when there is a 'NUL' character, it tripped up PHP so I am wondering if ASCII characters is fully supported. [/snip] How is the NU

Re: [PHP] getting images?? Help!!

2003-08-14 Thread Mike Migurski
>I have created a little image manager. Mainly for personal usage but I >have a few friends that would like it as well. Anyway, the problem that >I've run into is that I can only select one file at a time using the form >attribute that I want to upload. Does anyone know of >a way to select mult

Re: [PHP] bug in code - can't find it!

2003-08-14 Thread John W. Holmes
AciD wrote: just a little point; u can replace by which is better imho. and you're entitled to it, but it's not better. Shorter isn't always better. Your code will break if enable_short_open_tags is disabled in php.ini or an .htaccess file. Sure, it's on by default, but some people turn it of

Re: [PHP] Screen Resoultion

2003-08-14 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: umm sorry i wouldnt know i've never sold my soul to the devil "lol jscript dude , dont get the boyz and girlz started , it would be nice if php could do client stuff like asp" --You -- The above message is encrypted with double rot13 encoding. Any unauthorized attem

RE: [PHP] dev style guide

2003-08-14 Thread SLanger
Just a remark but isn't it pointless to use Hungariannotation in a language that is by default typeless??? Regards Stefan Langer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Trouble

2003-08-14 Thread Christopher J. Crane
I have created a helpdesk application with a login. I am using sessions to keep track of information I need for the session. That information is User's ID User's Last Name User's First Name If the User is Authenticated and the type user they are. Here is the page the form goes to after submitting

Re: [PHP] magical file writing truncation

2003-08-14 Thread skate
I didn't see anything right off of the bat. You may want to output the text both ways and then compare them using http://us3.php.net/manual/en/function.strcmp.php apart from the fact that the slashes are there in one, and not in the other, there is no difference... $fp = fopen($n

Re: [PHP] dev style guide

2003-08-14 Thread Brent Baisley
In this months issue of PHP Architect (phparch.com) there is an article on making your code readable. I haven't read it yet, but past issues have had some very helpful articles. On Tuesday, August 5, 2003, at 03:35 PM, jsWalter wrote: Is there a style guide for coding practices used when creati

Re: [PHP] Best PHP CMS

2003-08-14 Thread Justin French
It'd be nice if the demo's worked! Justin On Wednesday, August 6, 2003, at 12:31 PM, Ralph Guzman wrote: Any opinions on ezPublish 3? http://www.ez.no/ I am considering this as a CMS and framework for my future projects. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] Php - union

2003-08-14 Thread Ryan A
Hi, In my php script i am running a sql statement, I am using a union statement via a count to get the number of records from 5 differient tables with the cno=3, its working fine except for one thing, if the any one of the tables dont have cno=3 it does not give me back a zero. Heres what i am doin

Re: [PHP] where did my errors go?

2003-08-14 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > What kind of call would suppress error messages from a require()d file? % > I don't know his codebase, and he's never seen anything like this before, % % @require "$ENGINE_PATH/file-to-include

Re: [PHP] Stop neurotic posting

2003-08-14 Thread andu
--On Wednesday, August 06, 2003 14:38:11 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: On Wednesday 06 August 2003 14:26, Curt Zirzow wrote: Now noisyness from the 'helpers'... I have noticed at times that a question is answered the same way like 10 times by 10 different people; this I consider

Re: [PHP] greedy preg

2003-08-14 Thread skate
$contents = preg_replace( "|.*?".$file.".*?|si", "", $contents ); okay, so i figured out that it's matching the first occurence of which will always be the first record and then going on to match the $file and deleting everything between. obviously not what i want. without giving a unique attri

Re: [PHP] foreach help in search

2003-08-14 Thread Jason Wong
On Tuesday 12 August 2003 06:07, Ryan A wrote: > thanks for replying, I am not very good with the "list" function thats why > i use foreach instead. > My new problem is that i also have to take out the PHPSESSID if it exists > and its value otherwise i am getting 2 PHPSESSID's in my url...how can

Re: [PHP] Frequent Mode Switching

2003-08-14 Thread Reuben D. Budiardja
On Tuesday 05 August 2003 05:13 pm, Derrick Fogle wrote: > Thoughts on frequent switching in and out of PHP mode: > > ?>Switch out, static HTML > ?>Switch out, more static HTML > > I've found that I prefer programming this way, for the most part, > putting most of the heavy PHP programming at the

RE: [PHP] session bug or feature

2003-08-14 Thread Johnson, Kirk
Under 4.3.2, and register_globals on, $foo and $_SESSION["foo"] both contain a reference that points to the same memory location. So, assigning to either one effectively causes the same assignment in the other. If you can't turn register_globals off, consider making a copy of $_SESSION at the top

Re: [PHP] PHP vs ASP.NET "formal opinions" request

2003-08-14 Thread John W. Holmes
John Manko wrote: I hate to be the one to break it to you but this isn't the real world. It's a senior project, and he has a chance to justify the reason to do a project in the language he see's fit, not what the political machine wants. I just don't buy the "don't go against the tide" mental

[PHP] apache2 + php 4.3.2 on solaris not starting

2003-08-14 Thread Stacey Conrad
Hi, I have apache 2.0.47 + php 4.3.2 + mod_jk2 2.0.2 installed on a Solaris 9 box. php and mod_jk2 are both DSO modules. Yesterday, everything worked fine. Today I tried to add some virtual hosts to httpd.conf and when I tried to restart apache, everything blew up. Apache would not start, and i

[PHP] php wddx

2003-08-14 Thread Angelo Marcos Rigo
I have a webserver machine with linux apache 2.0 php 4.2.2 with wddx support and a windows machine with iis server wich have a .Net system wich i need to use a authentication system function . I would like to receive information about what requeriments and tutorials to use the .net with my li

[PHP] on the fly picture problem

2003-08-14 Thread Benoit LEFEVRE
I'm using jpgraph or GD for charts making, and the picture is correctly made in cache or in directory and there is no error log but when I use it in php page ( , I have a no-pict icon instead of my graph. For information the graph.php script : <% $sitename="scafoot"; include("/var/www/jpgraph/

RE: [PHP] session bug or feature

2003-08-14 Thread Johnson, Kirk
> > session_start(); > > // lets say this equals "bar" and it was set on a previous page > $_SESSION["foo"]; > > $foo = "rab"; > > > echo $_SESSION["foo"]; > > ?> > > The problem is, when I set the global variable $foo="rab", > when I echo the > session variable $_SESSION["foo"], it output

Re: [PHP] Piping and the CLI parser

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 22:35, Curt Zirzow wrote: > pipe.php: > $fp = fopen("php://stdin", "r"); > while (!feof($fp) ) { > print "piped: " . fgets($fp); > } > > % dir | php pipe.php > > results: > piped: total 42 > piped: drwxr-xr-x 12 curt www512 Aug 6 14:31 ./ > piped: drwxr-xr

[PHP] Re: PHP Newbie needs assistance to highlight a specific item in a frame window

2003-08-14 Thread Mary D. Taffet
Bill, I have posted this same question in one other spot, and so far you are the first one to reply. I thank you for that. Maybe there is hope after all! I'm currently not using any GET's at all -- I'm not passing anything in the URL at this time; I'm currently using only $_SESSION variables.

Re: [PHP] Half solved (was foreach in search)

2003-08-14 Thread skate
> implode.why the [EMAIL PROTECTED] didnt i think of that?? > Thanks dude. > Just one last question, the last variable i am getting is page=1, how do i > increase this? > Basically I need to do a $page++ > so do it then $xxx=0; foreach ($_GET as $a => $v) { print "Current value of \$a

[PHP] files being downloaded when a 404 occurs

2003-08-14 Thread Rigi Toney
Hello, I'm using Apache 2.0.47 (Unix) with PHP 4.3.3RC2. My httpd.conf file reads : AddType application/x-httpd-php .html ... and then a little further down ErrorDocument 404 /404redir.html (404redir.hml is a PHP file, consisting of : ) The reason why I do this is so that the Google Adsense

[PHP] setting header() for csv file

2003-08-14 Thread David T-G
Hi, all -- I have a collection of files on disk which each contain a serialized array. I currently loop through those and parse them to display the values in a table, and now my client would like to additionally be able to download the data in CSV format. It's no big deal to change how I print t

Re: [PHP] Formatting an ascii characters in php?

2003-08-14 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > Hi! > > I use the cURL to send and receive data regardless of what data format > is the data in. There are certian ascii characters in the data, like 'LF' > for line feed, 'CR' for carriage return, etc. This time I came upon a > problem wher

RE: [PHP] Class Design Question...

2003-08-14 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, August 06, 2003 9:34 AM said: > I'm rewriting a lot of code and have decided to use classes... I'm > wondering if this would be considered bad design or not... [snip] /Sounds/ like a good idea. Are you really going to end up with an a

Re: [PHP] large groups of files??

2003-08-14 Thread Jackson Miller
This is not a limitation of PHP, but rather a limitation of the form element in HTML for uploading files. the only way I know is to have multiple file upload dialogs. -Jackson On Monday 11 August 2003 4:52, Micah Montoy wrote: > Anyone know of a way to load large groups of files using PHP at

Re: [PHP] Can't change include_path in php.ini

2003-08-14 Thread Ray Hunter
When you uncomment out the include_path in the php.ini file i believe that php still has an internal one that it falls back on. After you set a new include_path in php.ini do you restart apache and then check phpinfo() to see what the include_path is? -- BigDog On Fri, 2003-08-08 at 17:03, Mac

Re: [PHP] Stop neurotic posting

2003-08-14 Thread John Manko
hardly. I've answered questions on this list that I thought the answer could be easily found on google or php.net. Even more so, there are questions on this list that are CLEARLY "this is what I need, can you give me code." That is silly. What people should be asking is, "I can't find the a

Re: [PHP] getting images?? Help!!

2003-08-14 Thread Justin French
On Tuesday, August 12, 2003, at 11:26 AM, Micah Montoy wrote: I have created a little image manager. Mainly for personal usage but I have a few friends that would like it as well. Anyway, the problem that I've run into is that I can only select one file at a time using the form attribute th

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Jason Wong
On Saturday 09 August 2003 00:05, Cesar Cordovez wrote: > I moved "fdftk.h" to "/usr/local/includes" and "libfdftk.so" to > "/usr/local/lib" and everything worked! Sigh, that's what happens when you RTFM :-) Now could you please tell the neurotic posters (see recent thread) that RTFM really doe

[PHP] moderator: has anything on this list changed?

2003-08-14 Thread Justin French
Hi, For over a year now, I've been subscribed to this list through my main email account. My ISP has anti-spam stuff on the server which prepends the subject of anything it considers spam with 'SPAM: '. As of 4am this morning (Melb, Australia), EVERY message to this list has been flagged as s

[PHP] Re: counting files, choosing at random

2003-08-14 Thread Peng Cheng
i think the problem is there is a newline between the " ??:[EMAIL PROTECTED] > > I want to choose a file at random from a > directory which adheres to certain naming scheme. > I can't get it to work. It's probably something > simple...Here is a relevant snippet: > > title="PropaGanda" borde

RE: [PHP] Freelance code optimizations

2003-08-14 Thread Chris W. Parker
Jay Fitzgerald on Saturday, August 09, 2003 10:05 PM said: > I am a somewhat slow learner in that I cannot learn from reading - the > stuff on functions, for example, is confusing to me - I can only learn > by examples with explanations of why certain things are done

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-14 Thread daniel
a sample from my db class, i had to store the total in a session as calling the total on every page on a large database was painful doing count(*) or even SQL_CALC_FOUND_ROWS, on a small database u just cant tell but on a database of 100k + it was painful to load each page ;) function page_query($

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Robert Cummings
On Wed, 2003-08-06 at 15:45, Chris W. Parker wrote: > > The reason I noted google didn't know what the heck I was talking about > was because we're assuming the person asking the question (who btw is > not me) wouldn't be able to come up with "php find a string in a > string". That's the whole poi

Re: [PHP] Max script size

2003-08-14 Thread Ivo Fokkema
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Monday 11 August 2003 19:59, Ivo Fokkema wrote: > > > > I must say I don't agree. Although it seems odd, I received a DNS error a > > while ago while creating a script using the GD library. If the script > > wasn't there,

<    3   4   5   6   7   8   9   10   >