Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
I have 3 versions of it. FDFTK.H, fdftk.h and FdfTk.h. I will try Fdftk.h... Jay Blanchard wrote: Weird. Is the file Fdftk.h or fdftk.h? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] find string

2003-08-14 Thread andu
On Sun, 10 Aug 2003 19:27:12 -0400 "Carl Furst" <[EMAIL PROTECTED]> wrote: > Isn't there an in_array function you can use? > > If (in_array($action, array(a1,a2,a3,a4)) { > // do something > } > else { > // do something else > } > > > Carl. Thanks Carl, if there is no string function for the j

RE: [PHP] Formatted text from mySQL DB

2003-08-14 Thread Jay Blanchard
[snip] Ah, this question again. Has it been four days already? [/snip] ROFLMFAO! I snorted coffee through my nose!!! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-08-14 Thread Jason Wong
On Tuesday 05 August 2003 23:22, Jim Lucas wrote: > also, I just noticed that you are using double quotes in your statement. I > have always had bad luck with using double quotes. I would switch to > single quotes. His sql statement assignment looks fine to me. Whether you mainly use single-qu

[PHP] & before function name

2003-08-14 Thread Rodney Green
In the code below what does the & (ampersand) at the beginning of the function name do? Code from ADODB library-- function &ADONewConnection($db='') { GLOBAL $ADODB_Database; $rez = true; if ($db) { if ($ADODB_Database != $db) ADOLoadCode($db); } el

Re: [PHP] help with email problem

2003-08-14 Thread Mike Morton
1. Find them. 2. Charge them. 3. Prove it was them. 4. Bomb the shit out of the country they used to spam from. 5. Salute the US flag. 6. Move to Canada 7. Comment on the stupid Americans pushing their morals on the rest of the world 8. Get Drunk 9. Watch Hockey 10. Enjoy life. I think tha

Re: [PHP] Correct Coding

2003-08-14 Thread Curt Zirzow
* Thus wrote Martin Peck ([EMAIL PROTECTED]): > > > That can generate an error if $Task was never assigned a value. > > > > > > > could you not do > > > > if(@$Task == "Add" ){do something } > > > > to suppress the error of the variable not being set? > > I have never seen php give an error if $Ta

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

2003-08-14 Thread John Manko
Many people over look this, but maybe you should contact publishers who have PHP based books. Would such books be needed if there wasn't a php market? Cantact them regarding sales. Perhaps they will provide some numbers regarding literature for PHP and all open source publications. Not to ment

[PHP] SOLUTION: [PHP] Re: funcky parse error message due to { } or not sure what else might cause

2003-08-14 Thread Gronquist, Jim M
Ugh I replace one double quotes with two single quotes and it works like a charm. Thanks very much! -Original Message- From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: funcky parse error message due to {

[PHP] Class Design Question...

2003-08-14 Thread anachronism
Hello, 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... Basically in the class I have methods that perform a task, and return true on success, or false on failure. Easy enough. If it returns false however, I want to disp

Re: [PHP] detecting referer

2003-08-14 Thread Chris Shiflett
--- Creative Solutions New Media <[EMAIL PROTECTED]> wrote: > What is the best way, using php, to detect information about the > referrer to a page. echo $_SERVER['HTTP_REFERER']; To see all of the information the Web server makes available to you, try this: print_r($_SERVER); Hope that helps.

Re: [PHP] Re: counting files, choosing at random

2003-08-14 Thread Adam i Agnieszka Gasiorowski FNORD
Peng Cheng wrote: > i think the problem is there is a newline between > the > " " > try write them in the same line may be a solution. Yes, you are right, I noticed it myself while trying David's solution. Thanks anyway. -- Seks, seksić, seksolatki... news:pl.soc.seks.moderowana htt

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

2003-08-14 Thread Bix
Not sure about cron, but will look into sudo. Thanks! "Adrian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you could setup a cronjob running as root which chowns the files. > or maybe you can so something with sudo > > > > > > -- > Adrian > mailto:[EMAIL

Re: [PHP] session bug or feature

2003-08-14 Thread Christian Calloway
register_global is currently on. The problem is, I am hacking into someone else's (awful awful) code, and if I turned off register_globals, the whole application would go kaput. I am not even using the old session_x functions, just the new associative session array $_SESSION. "Curt Zirzow" <[EMA

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 14:35, John Manko wrote: > 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. On many lists you get this kind of suggestion. Almost always th

Re: [PHP] Question

2003-08-14 Thread Curt Zirzow
* Thus wrote Ryan Gibson ([EMAIL PROTECTED]): > Try naming it variable.inc.php or telling your webserver to parse .inc files > as php. That wont matter, an included file inside a php file is treated as a php file no matter the extension. Curt -- "I used to think I was indecisive, but now I'm not

Re: [PHP] delete line

2003-08-14 Thread Robert Cummings
If your file isn't too large then you can use: $lineArray = file( $pathToYourFile ); unset( $lineArray[$lineNum - 1] ); if( ($fl = fopen( $pathToYourFile, "w+" )) !== false ) { foreach( $lineArray as $line ) { fputs( $fl, $line ); } fcl

Re: [PHP] how to regenerate your own session id

2003-08-14 Thread Curt Zirzow
* Thus wrote treeml ([EMAIL PROTECTED]): > > There is a function called, session_regenerate_id, for php4.3.2 and above. > Right now, it just creates a random id. Is there a way to specify the value > of the regenerated session_id? So I can record the SID before I send out > every time. > > I tr

php-general Digest 10 Aug 2003 05:04:55 -0000 Issue 2227

2003-08-14 Thread php-general-digest-help
php-general Digest 10 Aug 2003 05:04:55 - Issue 2227 Topics (messages 158992 through 159017): Possible bug w/ open_basedir? 158992 by: Dan Brown Re: How to display? 158993 by: rush Re: Pls Help-Looking for PHP Product for Articles 158994 by: Alexandru COSTIN Re: gz

RE: [PHP] Screen Resoultion

2003-08-14 Thread Densial Edmonds
> > > umm sorry i wouldnt know i've never sold my soul to the devil > Some people just rent it to him for a while... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help Please in using fopen in PHP

2003-08-14 Thread Webmanhouse
Hi Folks, 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 follows. where i am having problem is this // open f

RE: [PHP] detecting referer

2003-08-14 Thread Creative Solutions New Media
Thanks all who replied. Tim Winters Manager, Creative Development Sampling Technologies Incorporated (STI) [EMAIL PROTECTED] [EMAIL PROTECTED] W: 902 450 5500 C: 902 430 8498 -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: August 7, 2003 1:07 PM To: [EMAIL PROTECT

Re: [PHP] mail with no sendmail on linux

2003-08-14 Thread andu
On Fri, 8 Aug 2003 13:49:41 +1000 (EST) <[EMAIL PROTECTED]> wrote: > i have a class that can sewnd through smtp , but i think there i a > package setup in php classes there is also a pear class to do this The Pear class did it, thanks. > > > Is there a workaround for not having sendmail instal

Re: [PHP] mail() usage in for loops

2003-08-14 Thread Mohanaraj
Michael Geier wrote: 1. many providers will not accept email messages with horrendous amounts of BCC: entries (very spam indicative) Say we limit the BCC list to a hundred email addresesses. And use cron jobs to send the emails out every hour -- would that be ok? What would you consider exces

Re: [PHP] Re: shell script not working with shell_exec

2003-08-14 Thread Scott Fletcher
Not what I meant, just login into the server from the console or terminal, using the apache account for testing to see if the command line work. That's all. If it work then it meant it will work on PHP and that the apache file permission or ownership is not the issue. Also, it meant you do not ne

RE: [PHP] Mail

2003-08-14 Thread Mike Brum
To expand on Curt's suggestion (which is a very good one), add your local network IP (192.168.#.#), the external IP the machine has (if any) and localhost (127.0.0.1) to the "Only the list below" box. If you have to add any other machines in your network to relay mail through this server, try to

Re: [PHP] Formatted text from mySQL DB

2003-08-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 14:18, lines prefixed by '>' were originally written by you. > Astrum Et Securis! > I had a question.. > When I create any field and let data be sent into my mySQL DB through > it.. it goes ok. But when I retrieve it.. the da

RE: [PHP] undefined function imagecreate()

2003-08-14 Thread Jay Blanchard
[snip] Browser returns: Fatal error: Call to undefined function: imagecreate() in c:\inetpub\wwwroot\draw4.php on line 4 Why is imagcreate() not understoodMarco [/snip] Do you have the GD library installed? Check by running a page with phpinfo(); in it -- PHP General Mailing List (http://www.p

Re: [PHP] what is %s %d

2003-08-14 Thread CPT John W. Holmes
From: "Jackson Miller" <[EMAIL PROTECTED]> > They are codes for date formatting. > > Specifically: > %s represents seconds with leading zeros. > %d represents day of the month with leading zeros > > so > date("%s %d",mktime()); > would equal something like > 59 08 Actually you'd get: %59 %08 b

[PHP] Correct Coding

2003-08-14 Thread Christopher J. Crane
Is this the best way to do this? if(isset($Task) && $Task == "Add") { Do something } I want to check if the variable is set and if so, if it is "Add". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] Re: Building an XML Parser Class

2003-08-14 Thread Donald Tyler
Thanks for the link. Sadly it doesn't really apply to what I am trying to do. My class literally translates the Xml Document into an associative array. PHP's functionality for working with XML documents is way too limited for me to do what I need to while still keeping my code legible. That's wh

[PHP] callback function in class

2003-08-14 Thread Evan Nemerson
Basic problem: I need to use preg_replace_callback, and would like the callback parameter to be a function in a class (the same as that which contains the call to preg_replace_callback). "classname::function" doesn't seem to work... Anyone have any ideas? If it helps: I'm creating a class whi

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

2003-08-14 Thread Matt Babineau
Hi All- I was wondering if anyone had any suggestions on how to properly authenticate users using redhat php and mysql. Currently we are using .htaccess files, but I was thinking it may be easier to manage this via a php/mysql admin interface... I imagine plenty of authentication schemes have been

[PHP] [Newbie Guide] For the benefits of new members

2003-08-14 Thread tech
I have been following this list for the past 1 year. I find it very useful. Just by following the discussions for a couple of months one can understand a great deal about PHP. What I proposed to do is to send this mail to the list every week. Those who do not want to be bothered just filter ou

Re: [PHP] Max script size

2003-08-14 Thread Ivo Fokkema
Hi, 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, I would've got a 404. That particular script was generating problems with Apache somehow causing my browser to display a DNS error. Run

Re: [PHP] greedy preg

2003-08-14 Thread skate
> And what about [^>]* -if there are no html tags > not thought about that, but XML tags, not HTML tags... does that make any difference? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] checking the return value of member function with empty

2003-08-14 Thread Edward Rudd
I am having this rather annoying syntax problem. I have this.. if (!empty($this->GetParam('someparameter')) { // OK do something since the parameter is set. } However that fails with this parse error parse error, expecting `')'' Why??? If I do this $var = $this->GetParam('someparameter')); if

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

2003-08-14 Thread Scott Fletcher
True but I just only want the day date, don't want the number of seconds. "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 13 August 2003 20:05, Nicholas Robinson wrote: > > > On Wednesday 13 Aug 2003 8:00 pm, Scott Fletcher wrote: > > > Hi! > > > > > > Here's a tri

Re: [PHP] drawing problem

2003-08-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 8 Aug 2003 at 14:29, lines prefixed by '>' were originally written by you. > I'm able to draw simple figures like squares and circles using > ImageCreate(), > gd_lib is installed properly as far as I know. > But sometimes the result is a l

RE: [PHP] Cannot add header information - headers already sent

2003-08-14 Thread frederik feys
Hi ermelir, Thanks for your quick response! The http://www.aurelis.org/store/checkout_form.txt file shows in the browser with an empty first line: It may be an browser glitch. There's actually no space in the php file, i.e. it starts at line 1 with mailto:[EMAIL PROTECTED] Sent: dinsdag 12 august

[PHP] config tests

2003-08-14 Thread Uros Gruber
Hello! I just made some speed tests getting configuration from DB. For now I figured 2 ways doing this. 1. One value in each row id | name| val -- 1| name1 | value1 2. using serialize($config) and saving this in one row. $config is predefined arr

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

2003-08-14 Thread Robert Cummings
The ability to determine relevant information strongly depends on what you know about the information you are displaying to the user. I'm assuming you know about the information you are presenting to the user and so it should be possible to map the coordinate system that the user interacts with, to

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

2003-08-14 Thread Vchat20
I asked the owner and he says its ok if I do this as our sites are affiliated with each other. but he cannot remove the file due to hackers. "Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > umm. yes. I know that. the problem is the 1 site I want to pull news > f

Re: [PHP] Stop neurotic posting

2003-08-14 Thread andu
--On Wednesday, August 06, 2003 12:04:57 -0400 Step Schwarz <[EMAIL PROTECTED]> wrote: Hi Amanda, Yeah, terminology is definitely tough to get a handle on at the start -- it was for me. I tried a couple of different books but had no luck until I picked up Larry Ullman's PHP Visual QuickStart

[PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread Simon Fredriksson
Oops, I did it again! Once again, I've managed to kill SSHd on my server. Hurray! >_< What I want to do now, is make a script start it again. I could just reboot the machine the hard way or carry a monitor/keyboard there, but I don't wanna do that at 7am. System: Linux Slackware 8.1 What I ha

[PHP] OO function overloading?

2003-08-14 Thread Jean-Christian IMbeault
Is it possible to overload a function is a class. I would like to have the same function defined differently depending on the number of arguments passed in. For example: function foo() {} function foo($a) {} function foo($a, $b) () I know I could do it with: function foo($a = "", $b = "") {} B

Re: [PHP] PDF Thumbnail with PHP?

2003-08-14 Thread Anthony
Unfortunatly, that's not what I'm trying to do. That function will add an image to a PDF file as a thumbnail. What I want to do, is read a PDF file, and generate a thumbnail in the form of a gif or jpg and have it display in the browser. Thanks for the thought though. - Anthony "Jay Blanchard

Re: [PHP] Restricted access

2003-08-14 Thread Ciprian Trofin
What is readfile90 ? I tried google and nothing. MK> Yes, put the files outside of web root or protect them using .htaccess MK> file. After authorization use readfile90 to serve the file. There are MK> lots of tutorials on authentization and if you are using some CMS you MK> might have all you n

Re: [PHP] Passing Values between Pages : $_SESSION / $_GET

2003-08-14 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello again, > > I would appreciate if someone could help me out with this one. > > Thanks again > > --Pushpinder > > > > > On Friday, August 8, 2003, at 11:46 AM, Pushpinder Singh Garcha wrote: > > > Hello All, > > > > I am usin

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

2003-08-14 Thread Jay Blanchard
[snip] I'm attempting to read a remote file and parse it for data. The problem I've having is that the file seems to be generated by Perl (http://alert.dot.pima.gov/scripts/1brpssd.pl) and when I read it the script-generated portion is not available. When I view the page with a browser it is displa

Re: [PHP] email confirmation script

2003-08-14 Thread Anthony Ritter
Thanks Jackson. I appreciate the assistance. Am I on the right track? Best... TR .. // this is the form Your e-mail address: ... //process.php mailto:[EMAIL PROTECTED]/email_verify.php?email=$email&c onfirmation_ID=$confirmation_ID>link" mail($_POST['

Re: [PHP] cookies and redirection

2003-08-14 Thread Chris Boget
> I have a small problem was wondering if anyone out there knew anyhting about > this. I set a cookie in my code and then redirect the user using a header > function. When I do this, my cookie is not created. If i remove the header > function, then it is. Is there a way around this? Yeah, set the

[PHP] Re: string concatenation from array

2003-08-14 Thread Fabio Rotondo
Micah Montoy wrote: I'm having a bit of difficulty getting a string to attach to itself from an array. Here is the bit of code I'm working on. $wresult = ""; foreach ($search_string as $word_result){ $wresult = $wresult & " " & $word_result; } what about: $wresult = join ( " ", $search_strin

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Juan Nin
This kind of opiniion wars appear every since in many of the lists I'm subscribed to. The thing is that they ussually tend to nothing, since there are always people who think on one way, and otehrs who think the other, and no matter what you say, they will continue thinking that way. I agree that

Re: [PHP] htmlspecialchars() and HTML code

2003-08-14 Thread Thaddeus J. Quintin
CPT John W. Holmes wrote: > Try this: > > This is text > > If you submit that "text" and then print $_REQUEST['text'], you'll see that > you have > > This is text Ok, but that only makes me realize the further extent of the problem. If the HTML file that they upload has '<' or '

RE: [PHP] Hitler and Recent Threads

2003-08-14 Thread Jay Blanchard
[snip] > And as they say, "Never argue with a fool. People will > not be able to tell the differnce." I thought it was "Never argue with an idiot. They drag you down to their level and beat you with experience" [/snip] I thought it was "It is better to keep your foot in your mouth and have people

Re: [PHP] session bug or feature

2003-08-14 Thread Christian Calloway
Yeah I figured as much. That sucks that they would both reference the same location in memory even with globals on. Thanks alot for your help, ill figure out a hack around the hack. Christian Calloway "Kirk Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Under 4.3.2, and re

Re: [PHP] Ignore session_auto_start

2003-08-14 Thread Jason Wong
On Tuesday 12 August 2003 11:03, Jackson Miller wrote: > 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 greatl

[PHP] htmlspecialchars() and HTML code

2003-08-14 Thread Thaddeus J. Quintin
Hello- I'm working on a site where users have the option to type HTML code into a textarea, or upload HTML code from a local file which is then displayed in the text area. The obvious problem is that an uploaded file that contains a closing tag for a textarea can wreak havoc and eat up the rest

Re: [PHP] Imagick

2003-08-14 Thread Curt Zirzow
* Thus wrote Jacob Marble ([EMAIL PROTECTED]): > Excuse me, I accidentally sent that last incomplete message. > I have successfully compiled PHP 4.3.3RC3 with the --with-imagick flag after > compiling and installing ImageMagick 5.5.7 (that was a headache on it's > own). The following error keeps c

Re: [PHP] setting allow_call_time_pass_reference to true

2003-08-14 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): > Hi there, > > I am working on a webservice with a xmlrpc class of Keith D. It workes > nicely, but it generates tonns of error msg into the error log file. > Telling me to set allow_call_time_pass_reference to true. I would also suggest you contact the a

Re: [PHP] Re: Pls Help-Looking for PHP Product for Articles

2003-08-14 Thread daniel
select the article then get the comments joined to that article id ?? > Thanks Alexandru, > > I've been reading about KompleteLite, but it looks like you have to > install the Kyrsalis Enterprise server before being able to use > KompleteLite, and I don't think I'll be able to get that through our

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Gabriel Guzman
On Wed, 2003-08-06 at 11:44, Chris W. Parker wrote: > A bad answer would be: > > "RTFM http://php.net/preg_match"; > > A good answer would be: > > "That can be done with a regular expression. The function you're looking > for is called preg_match. http://php.net/preg_match"; I fail to see the

Re: [PHP] POST/GET - if there is a dot in the name it's changes to "_"

2003-08-14 Thread Pradeep D'souza
Hi What version and OS are you on ? Pradeep www.naharonline.com - Original Message - From: "Arnau Rebassa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 10:58 PM Subject: [PHP] POST/GET - if there is a dot in the name it's changes to "_" > Hi all, > I'm h

RE: [PHP] Correct Coding

2003-08-14 Thread Crane, Christopher
Well this page will load and not always with that variable set. Is that ok, or will this code you put output an error. Christopher J. Crane Network Manager - Infrastructure Services IKON Document Efficiency at Work 755 Winding Brook Drive Glastonbury, CT 06078 Phone - (860) 659-6464 Fax - (860)

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

2003-08-14 Thread Giz
I think you're a big confused here. Your query will only return one row, because you're using sum(). $invoicepartpaid will be your total for the invoiceid specified. -Original Message- From: Ben C. [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 11:42 PM To: [EMAIL PROTECTED] Su

Re: [PHP] Ezmlm Hash

2003-08-14 Thread Curt Zirzow
* Thus wrote Eyles, Richard ([EMAIL PROTECTED]): > Hi, > > I'm looking for a function to convert an email address to the file name hash > in ezmlm. I've found the ezmlm_hash function but this is for mysql based > mailing lists and not file based. > > I've tried looking at the source for ezmlm and

RE: [PHP] array looping

2003-08-14 Thread Chris W. Parker
Micah Montoy on Tuesday, August 12, 2003 3:35 PM said: > I have this text file that I pull in and I need to transverse through > the file and assign each value in the file into an array. Hehe... you mean traverse. Transverse: 1 : acting, lying, or being across : se

[PHP] Extracting Compressed Files

2003-08-14 Thread Matt Palermo
Does anyone know of easy ways to be able to extract all files/folders/subfolders from different types of compressed files (.zip, .tar.gz, etc.)? If anyone could help me out with this, I would really appreciate it. Thanks, Matt

RE: [PHP] Array to List

2003-08-14 Thread James Johnson
Ok, that's working. I realized tho that some campuses will have a "," in their name (University of California, Riverside) so changed $c = implode( ', ', $c ); To $c = implode( '; ', $c ); Thanks, James -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Monday, August

Re: [PHP] greedy preg

2003-08-14 Thread skate
> Not sure if I understand you correct but > the way you wrote your replace pattern the result should be > . > If you want just the file to be replaced you have to use something like > preg_replace("|.*?($file).*?|si",'\\1',$contents) > no, i want just the whole replaced for that particular file

[PHP] Re: Parse error not understood

2003-08-14 Thread Chris Blake
Holy schmoley...something so small.I must get off this green tea, all this good health stuff is causing havoc in my brain... Thanks Fokkema, and Johnfor pointing out an obvious error... Regards On Wed, 2003-08-06 at 14:48, Fokkema, I.F.A.C. (HKG) wrote: > > //If "Delete User" is selecte

Re: [PHP] PHP/JavaScript/HTML

2003-08-14 Thread Mauricio
Ok! Now I can see the values in the another page. But each value are passed with the same name. How can I get all values using PHP script? On the Address Bar I can see: index.php?slcAdd=1&slcAdd=2&slcAdd=3 But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just the last value. Wha

Re: [PHP] PHP - MySQL Query...

2003-08-14 Thread Ivo Fokkema
This is not true, the resource link identifier is optional! If unspecified, the last opened link is used. My suggestion is to check the results of mysql_error() for more information on the failed query. HTH, Ivo "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] $

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Curt Zirzow
* Thus wrote andu ([EMAIL PROTECTED]): > 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 'read the manual' and other shit > like that. Stuffing e-mailbox

php-general Digest 7 Aug 2003 14:48:55 -0000 Issue 2222

2003-08-14 Thread php-general-digest-help
php-general Digest 7 Aug 2003 14:48:55 - Issue Topics (messages 158592 through 158651): parallelport interfacing 158592 by: Michael P. Carel Installer Software 158593 by: Joe Harman 158595 by: John W. Holmes 158596 by: Rodney Green Re: bug in code - can

Re: [PHP] PHP - MySQL Query...

2003-08-14 Thread Marcus Edvardsson
I'm used to do like this: $query = 'SELECT * FROM cities'; $result = mysql_query($query); if($row = mysql_fetch_array($result)) do { echo (' ' . $row[0] . ', ' . $row[1] . ' ' . $row[2] . ' ' . $row[3] . " \n"); } while ($row = mysql_fetch_array($result)); -

Re: [PHP] ignore_user_abort()

2003-08-14 Thread skate
> Are there any disadvantages to turn on this feature? > > what if someone submitted the wrong info? or maybe the wrong credit card details? they genuinely might want to abort. although to be fair, these people are the stupid ones the need to be punished and banned from the PC. i can't think of

Re: [PHP] string concatenation from array

2003-08-14 Thread Analysis & Solutions
On Tue, Aug 12, 2003 at 01:58:21PM -0600, Micah Montoy wrote: > I'm having a bit of difficulty getting a string to attach to itself from an > array. Here is the bit of code I'm working on. > A bunch of simplifications, efficiency tweaks on this approach... > $wresult = ""; $wresult = ''; >

[PHP] Re: apache2 + php 4.3.2 on solaris not starting

2003-08-14 Thread Dan Phiffer
This probably doesn't help you much but Apache 2 and PHP are not expected to play well together. Which makes me wonder, will PHP 5 be more Apache 2 friendly? Thanks, -Dan "Stacey Conrad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have apache 2.0.47 + php 4.3.2 + mod_

Re: [PHP] Handling DELETE requests

2003-08-14 Thread Seairth Jacobs
Well, it turns out that the problem wasn't Apache after all. For the record, Apache does pass the DELETE request on to the script by default. The problem was with the client program I was using to test it out. Appearently, the client is sending a mal-formed request that's causing the server to clo

[PHP] mail() usage in for loops

2003-08-14 Thread Mohanaraj
Dear all, I have read that using mail() in a for loop to send a lot of emails ( around 1k-10k ) emails is not advised due to the fact that it can be resource intensive hence or the script might take so much time that it ti,es out. However what if i append all the emails into the Bcc: header as fol

Re[2]: [PHP] Container functions....

2003-08-14 Thread Tom Rogers
Hi, What about this: if(developer_execute()) { execute this code only } Where the function developer_execute would be defined as: function developer_execute() { if(getenv("REMOTE_ADDR")=="000.000.000.000") return true; return false; } -- regards, Tom -- PHP General Mailing List (

[PHP] BerkeleyDB and PHP

2003-08-14 Thread Rodney Green
Greetings! I'm looking at using BerkeleyDB along with PHP. This is a bit off topic but is there a WIN32 binary distribution of BerkeleyDB somewhere out there? I've looked but haven't had any luck in finding it. I don't have Visual C++ to compile the source. If someone knows of a precompiled source

[PHP] php help : configuring freetds with php

2003-08-14 Thread Dipesh khacharia
Hi, I am Dipesh from Iqara Broadband. I am just now trying to configure the Freetds with PHP on Red Hat Linux 7.2 I have configured PHP with all options including Sybase as it is shown below; './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-sybase=/usr/local/freetd

Re: [PHP] APACHE/PHP - buttons don't work

2003-08-14 Thread Justin French
Buttons? Not sure I understand, but try turning the register globals directive in your php.ini file from OFF to ON. Although OFF is safer and promotes better coding practices. Search the archives or PHP tutorial sights for hints about programming with rg off. It's been discussed in 1000's of

[PHP] Command line php....

2003-08-14 Thread John Nichel
Can someone tell me why php waits for me to input something before it prints out the first line of the code below? Shouldn't it echo out the first line then wait for my input? #!/usr/local/bin/php echo ( "Enter MySQL admin username : [root] " ); $username = rtrim ( fgets ( STDIN ) ); echo ( "\

RE: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Jay Blanchard
[snip] Is php Interpreted language or Compiled Language like C or C++. [/snip] PHP is an interpreted language in most applications. However, the PHP-GTK is available and there are other options for compiling PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

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

2003-08-14 Thread John W. Holmes
Dan Joseph wrote: Question: Where is this number coming from? Couldn't you just use a substr() based upon it's length and not deal with a regular expression? Its a bank account number coming from a database. We're reformatting it for ACH processing. The number could be: 23408234980423

RE: [PHP] magical file writing truncation

2003-08-14 Thread Jay Blanchard
[snip] $newFile = "xml/".$type."/".$now.".xml"; while(file_exists($newFile)) $newFile = "xml/".$type."/".$now++.".xml"; $text = $_POST['text']; $text = urlencode(stripslashes(nl2br($text))); [/snip] At this point (for testing putposes) I would echo "$text"; and start looking for clues.

Re: [PHP] Piping and the CLI parser

2003-08-14 Thread Jason Wong
On Tuesday 05 August 2003 13:25, Nicolas Frisby wrote: [snip] > executes the script with arguments), I attempted some piping; which, > through very shallow research, I've come to think uses STDIN. I don't think it does. > It fails; no piping whatsoever. Even the simplest 'dir | echo.php', where

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

2003-08-14 Thread Bix
Hiya, I have written as part of my CMS, an image upload system, now when the images are placed in the destination folder, they are owned by httpd.root and I need to get them to be owned by siteuser.sitegroup. I have tried to chmod and chgrp it to siteuser.sitegroup but it gives permission denied

Re: [PHP] MIME-type to file extension

2003-08-14 Thread Chris Boget
> > Client side or server side? If the latter, what webserver are you > > running? > Server side and I am running Apache 1.3.27. I preferably would like to > know whether PHP offers such facility, but alternative solutions are > welcome as well. > > More information is definitely needed and it us

Re: [PHP] project management php system

2003-08-14 Thread Michael A Smith
I've developed PrattCMS... (Try out the latest RC, it's quite stable and note that 2.0 will be out later today or tomorrow depending...). It's: -GPL'ed -PHP/MySQL (Could support other databases, with small amount of work.) -Has an error reporting class to send notes when a db query fails (by e-m

Re: [PHP] php.ini configuration can we have two include_path in php.in file

2003-08-14 Thread murugesan
I am not able to locate the file you are referring to. Please do help me I am very much frustrated. -Murugesan - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "murugesan" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 2:29 PM

RE: [PHP] PHP Fusebox

2003-08-14 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, August 04, 2003 10:30 PM said: > i have used this before , its a wierd system and you have to echo the > html absolutely painful * don't top post * trim your posts * no spaces before punctuation thanks! -- PHP General Mailing List (ht

Re: [PHP] send group of files at once to website administrator

2003-08-14 Thread Marek Kilimajer
Or you can use a zip class and create an archive. There are at least 2 free classes that can create zip files. skate wrote: Hi, I have the following code which I use to make regular backups of my databases. Is there a way to have all backup files sent at once after they are created, istead of p

Re: [PHP] Array to List

2003-08-14 Thread Jim Lucas
on page one do this instead. Jim Lucas - Original Message - From: "James Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 11, 2003 1:29 PM Subject: RE: [PHP] Array to List > All, > > Thanks for your help, but this shouldn't be so freaking hard to do. > > 1) I

Re: [PHP] Stop neurotic posting

2003-08-14 Thread John Manko
I've only been php coding for less than 2 months. I learn, learn, learn, only ask questions when research turns up nothing, and answer other's questions when I know the answer. andu wrote: --On Wednesday, August 06, 2003 14:40:35 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: On Wednesday 06

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 06 August 2003 03:40, Jason Wong wrote: > On Wednesday 06 August 2003 14:35, John Manko wrote: > > perhaps there should be two lists (novice and advanced), and the > > advanced listed shouldn't > > answer questions if it's considered trivi

<    2   3   4   5   6   7   8   9   10   >