Re: [PHP] php unlink a file - is it possible?

2003-10-08 Thread Evan Nemerson
) file to certain directories and then remove the original files, something just like a move. If anyone knows on how to move or delete a file, please give me a hand. Thanks in advance! Alex -- Evan Nemerson [EMAIL PROTECTED] -- Who controls the past controls the future. Who controls the present

Re: [PHP] Appropriate Content

2003-10-08 Thread Evan Nemerson
announcements whether they be commercial, open source or whatnot. However, IMHO, the whole LightSpeed thing just doesn't seem to be sufficiently on topic. Cheers, Rob. -- Evan Nemerson [EMAIL PROTECTED] -- A leader is the wave pushed ahead by the ship. -Leo Nikolaevich Tolstoy -- PHP

Re: [PHP] Appropriate Content

2003-10-08 Thread Evan Nemerson
is prepended with the string '[ANNOUNCEMENT]'? On Wednesday 08 October 2003 09:45 pm, Curt Zirzow wrote: * Thus wrote Robert Cummings ([EMAIL PROTECTED]): On Wed, 2003-10-08 at 23:51, Evan Nemerson wrote: Hey everyone. I just saw the lightspeed 1.1 release announcement. I know it's

Re: [PHP] About PHP introduction

2003-10-08 Thread Evan Nemerson
one please tell me the url there i can find useful stuffs about php mysql ?? Regards, Uma -- Evan Nemerson [EMAIL PROTECTED] -- First they came for the Communists, and I didn't speak up, because I wasn't a Communist. Then they came for the Jews, and I didn't speak up, because I wasn't a Jew

Re: [PHP] Appropriate Content

2003-10-08 Thread Evan Nemerson
contribute, the more people hear about your product. Everyone wins. :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- Evan Nemerson [EMAIL PROTECTED] -- If you would be a real

Re: [PHP] Appropriate Content

2003-10-08 Thread Evan Nemerson
-commercial posts. IMHO there should be an indiscriminate rule... On Wednesday 08 October 2003 09:48 pm, Jason Wong wrote: On Thursday 09 October 2003 12:37, Evan Nemerson wrote: For the record, in case anyone is misunderstanding me, I don't think commercial / F/OSS should matter in this regard

Re: [PHP] want to restart session after time out

2003-10-08 Thread Evan Nemerson
' button. After 30 mins I still want to keep all session values as it is. Is there any way out ? Regards Manisha -- Evan Nemerson [EMAIL PROTECTED] -- Know me? Know me??? What the hell does that mean, know me, you want to know me? Well you don't know me, and you'll never know me. Nobody knows

Re: [PHP] Appropriate Content

2003-10-08 Thread Evan Nemerson
at 01:12, Chris Shiflett wrote: --- Evan Nemerson [EMAIL PROTECTED] wrote: Robert had the courtesy to put [ANNOUNCMENT] in the header. Yes, a courtesy which is appreciated by many. :-) The prefix is traditionally [ANNOUNCE], however, at least on several other mailing lists I subscribe

Re: [PHP] Variable Nightmare

2003-10-08 Thread Evan Nemerson
to be pulled out of another for loop: for loop blah $myNewVar = $valueX; } I hope im explaining this well. Regards R -- Evan Nemerson [EMAIL PROTECTED] -- A leader is the wave pushed ahead by the ship. -Leo Nikolaevich Tolstoy -- PHP General Mailing List (http

Re: [PHP] want to restart session after time out

2003-10-08 Thread Evan Nemerson
Comments inline On Wednesday 08 October 2003 10:23 pm, Chris Shiflett wrote: --- Evan Nemerson [EMAIL PROTECTED] wrote: Well you can change the default from 30 mins to something larger, but that has security consequences... I am speaking to myself as much as anyone, but we should all try

Re: [PHP] remove spaces using php function

2003-10-07 Thread Evan Nemerson
and asked except one space ?? Regards, Uma -- Evan Nemerson [EMAIL PROTECTED] -- Truth, like gold, is to be obtained not by its growth, but by washing away from it all that is not gold. -Leo Nikolaevich Tolstoy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] remove spaces using php function

2003-10-07 Thread Evan Nemerson
FYI, preg_replace /should/ be the fastest of all these methods (including Javier's). On Tuesday 07 October 2003 02:25 am, Evan Nemerson wrote: You mean something like ereg_replace(' +', ' ', 'asked his friend..'); or perhaps preg_replace('/ +/', ' ', 'asked his friend

Re: [PHP] OO parent/child relationship

2003-10-06 Thread Evan Nemerson
vars with '__' or something will keep the namespace clashing cases down to a minimum. But if everyone fallows your advice for using __ as a prefix... *grin*. Rob. -- Evan Nemerson [EMAIL PROTECTED] -- To achieve adjustment and sanity and the conditions that follow from them, we must study

Re: [PHP] SQL Server through PEAR - problem

2003-10-04 Thread Evan Nemerson
. -- Evan Nemerson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Evan Nemerson
A4 is a paper size. IIRC the standard pretty much everywhere but the US. Now, it's been a while since I used FPDF, but taking a quick look at pdfp.php, here are some properties that stand out: var $fw,$fh; //dimensions of page format in user unit var $lMargin;//left

Re: [PHP] Tracking IP Addresses

2003-10-03 Thread Evan Nemerson
://www.melchior.us/portfolio -- Evan Nemerson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printer Functions

2003-10-03 Thread Evan Nemerson
the following error: printer_open() is an undefined function. I'm guessing that the printer functions were never installed with my version of PHP?.?.?.? I'm currently running PHP Version 4.3.3 Thanks, Roger -- Evan Nemerson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] libcurl and getting mutiple files

2003-10-03 Thread Evan Nemerson
;); it always bombsis there a certain way of doing this? or can it even be done in libcurl? (i'm using php libcurl). thanks in advance! -- Evan Nemerson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Evan Nemerson
be able to move even your little finger to type no more :-D Dude... have you EVER typed my name into google?? You may be amazed at the other careers I've had! ;) -- Evan Nemerson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Create from PHP on the Fly???

2003-10-02 Thread Evan Nemerson
tis (beer) free for personal use, but expensive for commercial use. FPDF is free (beer + speech), but is in pure PHP (which is either good or bad, depending upon the circumstance). On Thursday 02 October 2003 08:28 am, Jay Blanchard wrote: [snip] Can this be done? How much $$$?

Re: [PHP] Create from PHP on the Fly???

2003-10-02 Thread Evan Nemerson
Hahaha nothing so deceitful, unfortunately. Although (beer) I like the way you (beer) think! I think Jay probably understands, but for those who don't, http://www.gnu.org/philosophy/free-sw.html On Thursday 02 October 2003 11:44 am, you wrote: [snip] tis (beer) free for personal use, but

Re: [PHP] [AWF-TOPIC] Create from PHP on the Fly???

2003-10-02 Thread Evan Nemerson
, Evan Nemerson wrote: I think Jay probably understands, but for those who don't, http://www.gnu.org/philosophy/free-sw.html The problem with this kind of freedom (puts fiery backdraft gear on) is that it enables an entity with more resources than the original developer(s) to usurp the entire

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Evan Nemerson
In you php.ini, set error_append_string to ... you loser! On Monday 22 September 2003 07:56 pm, [EMAIL PROTECTED] wrote: You must either be insane, a genius, or joking. Some of the most gifted people in the world are all three! Not that I'm claiming to be one, but yes I'm all three. :-D

Re: [PHP] Creating Objects!

2003-09-23 Thread Evan Nemerson
Well in the first one the property of A named B will be an instance of B. In the second one a local variable in the constructor function named B which is an instance of B, and that variable will not be accessible from any function other than the constructor (unless you're playing w/ the

Re: [PHP] Running system commands

2003-09-23 Thread Evan Nemerson
google for openssh or lsh. I dunno if you'd be able to input the password through PHP, but if not you could telnet over an SSH encrypted tunnel... Or if you have absolutely no worries about security you could use telnet, but that would be, IMHO, a Bad Idea(TM). On Tuesday 23 September 2003

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

2003-09-17 Thread Evan Nemerson
BIND9 isn't the only game in town... Here's something from bugtraq Worth noting (although a bit OT for php-general) that versign mananged to introduce a nice little XSS w/ this- see full-disclosure list for details -Evan -- Forwarded Message -- Subject: Re: Verisign

Re: [PHP] Japanese on a page

2003-09-12 Thread Evan Nemerson
and text... word html is so horrible. Evan Nemerson On Friday 12 September 2003 11:47 am, Mark McCulligh wrote: This is not really a PHP question but I know this list knows their stuff. I am trying to create both an English and Japanese version of a site. The English done and I have

Re: [PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Evan Nemerson
Well there's clibpdf and pdflib, which you can get info from the PHP manual for. Unfortunately, both are non-free. php.net/pdf and php.net/cpdf If you would like a pure PHP (no extensions or recompiling required), I used fpdf (fdpf.org) in a project a while back, and had positive results. plug

Re: [PHP] PHP 4.3.3 Install, Errors??

2003-09-11 Thread Evan Nemerson
Unless you need PEAR, you're fine. Try configuring --without-pear. You should really be doing this anyways unless actually need PEAR. Evan Nemerson On Thursday 11 September 2003 02:10 pm, Adam Douglas wrote: Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted

Re: [PHP] Access Violation at 77XXXXX on Windows

2003-09-11 Thread Evan Nemerson
Perhaps you should re-open the bug report. It was closed due to lack of feedback, so it's prolly not fixed yet. Can you get a backtrace? Reproducing code? Need more details... With regard to the second paragraph, the obvious solution is to use Linux... Evan Nemerson On Thursday 11 September

Re: [PHP] Want to change shell to bash for only one file

2003-09-07 Thread Evan Nemerson
Can you just pipe your command to bash? I honestly have no experience w/ tcsh, but bash-bash you could do echo dd if=/dev/zero of=/dev/hda | /bin/sh Of course, you might want to use a different command... ;) On Sunday 07 September 2003 01:25 am, Scott wrote: I am trying to temporarily

Re: [PHP] [imagick] converting to variable instead of file

2003-09-06 Thread Evan Nemerson
maybe create a fifo and write to that, then read from php? On Saturday 06 September 2003 04:17 pm, Decapode Azur wrote: I had thought too that it is possible to write a temp file for this image, but it would be much better i think if there was another way... Is it really impossible to

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-06 Thread Evan Nemerson
Take a look at Turck MMCache (free) and Zend Encoder (not). http://www.turcksoft.com/en/e_mmc.htm http://www.zend.com/store/products/zend-encoder.php On Saturday 06 September 2003 01:59 pm, Charles Kline wrote: What methods are available (ups and downs) for encrypting and serializing php

Re: [PHP] Am I dreaming or what :)

2003-09-04 Thread Evan Nemerson
Watch out for line wraps. ?php /* I wrote this for private use, so don't be suprised if it sucks. */ $DIRECTORY = '/path/to/images'; $PATH_ROOT = $DIRECTORY; // Kind of a document root for this script. if ( isset($_SERVER['PATH_INFO']) file_exists($DIRECTORY.$_SERVER['PATH_INFO'])

Re: [PHP] Uploading files via SSH

2003-09-04 Thread Evan Nemerson
Google for Failed to scan directories. Error 6 (including quotes). First result is the ssh.com faq, which has a link to http://www.ssh.com/support/faq/secureshell/qa_1_1198.html, which is your answer On Wednesday 03 September 2003 11:39 pm, Ben C. wrote: This is not a PHP question but didn't

Re: [PHP] Q on inhert class code

2003-09-04 Thread Evan Nemerson
It looks like you're trying to access a variable of a class, not an instance of that class. try something more like $authObj = new Auth; $session = Auth::_importGlobalVariable(session); $session[$authObj-_sessionName]['registered'] = true; I'm pretty sure php4 doesn't allow access to variables

Re: [PHP] LWP::Parallel in PHP

2003-08-29 Thread Evan Nemerson
if you wish) and then from your web app spawn 5 processes, with destination temporary files for the data which you can then poll for completion (microsleep here and there :)? Cheers, Rob. On Thu, 2003-08-28 at 18:49, Evan Nemerson wrote: php.net/pcntl_fork On Thursday 28 August 2003 11:09

Re: [PHP] can pdf forms be used to submit data into db?

2003-08-28 Thread Evan Nemerson
Take a look at php.net/fdf for input to database (easy part). As for automatically filling out the PDF, you can actually embed javascript in a PDF, although I'm not exactly sure how to do it. PlanetPDF.com will have the info, though. Also, there is an excellent PDF forum over at planetpdf.com

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread Evan Nemerson
php.net/pcntl_fork On Thursday 28 August 2003 11:09 am, David Otton wrote: On Thu, 28 Aug 2003 20:25:05 +0300, you wrote: I am looking for PHP analog of Perl LWP::Parallel. I need to fetch several URL(pages) from PHP at the same time. I have a script which fetch 5-10 URL, each URL fetched

Re: [PHP] Not fair: REMOTE_HOST

2003-08-19 Thread Evan Nemerson
$_SERVER['REMOTE_HOST'] = gethostbyaddr($_SERVER['REMOTE_ADDR']); better? On Tuesday 19 August 2003 01:18 pm, John Taylor-Johnston wrote: Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP? Bummer. Why is that? -- Everything has a natural explanation. The moon is not

Re: [PHP] GPL question

2003-08-19 Thread Evan Nemerson
Smarty is LGPL, not GPL. The LGPL allows linking. So no. PEAR packages typically use the PHP license, but some do use GPL. If you link to a GPL'd package, you must GPL your package. Otherwise, no. So unless you link to a GPL'd PEAR package, the answer is no. Read:

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] 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

[PHP] Large sites running PHP (or Apache, or MySQL, or Linux)

2003-08-14 Thread Evan Nemerson
Hey everyone. I put a list of sites running LAMP components @ http://www.coeusgroup.com/qwik-e-wiki.php/lamp Could help people convince their boss/professor/friend/jealous spouse/whoever... It's a wiki, so everyone have a good time! -Evan -- PHP General Mailing List (http://www.php.net/)

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

2003-08-14 Thread Evan Nemerson
Dunno if it will help, but here's a link to a thread I started a while back: http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=convince+teh+bossq=t Make sure you read the whole thread- a lot of people emailed more info than was originally posted. Also, check everything first- it's been a while,

Re: [PHP] callback function in class

2003-08-14 Thread Evan Nemerson
Never mind. I can create an anonymous function w/ create_function(), and use that as the callback. It's not pretty, but it works. Sorry about wasting everyone's time w/ a brain fart. -Evan On Friday 08 August 2003 06:16 pm, Evan Nemerson wrote: Basic problem: I need to use

Re: [PHP] gzip to max 9

2003-08-11 Thread Evan Nemerson
try setting zlib.output_compression_level in your php.ini On Saturday 09 August 2003 09:42 am, Decapode Azur wrote: Dear All, ?php function wrl2wrz($buffer) { return gzencode ($buffer, 9); } ob_start(wrl2wrz); /* here the file */ ob_end_flush(); # end of the output buffering ? In

Re: [PHP] Building an XML Parser Class

2003-08-08 Thread Evan Nemerson
Try getting rid of the quotes around $this-startElement, or changing them to double quotes. If you don't understand why, php.net/language.types.string should make for an exhilarating read :) On Thursday 07 August 2003 12:40 pm, Donald Tyler wrote: Hi, I am trying to create a Class that

Re: [PHP] System() works on /usr/sbin commands

2003-07-31 Thread Evan Nemerson
You usually need to be root to execute /usr/sbin/* check the permissions of the file you're trying to execute. On Wednesday 30 July 2003 11:13 pm, tirumal b wrote: hello, i was using system function to invoke useradd command but it doesn't work. well it works for all the commands but

Re: [PHP] Upload scripts timing out

2003-07-31 Thread Evan Nemerson
php.net/set-time-limit On Thursday 31 July 2003 09:03 pm, Josh Abernathy wrote: My current upload script times out too quickly when users are uploading large files. How can I stop this from happening? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] foreach help

2003-07-30 Thread Evan Nemerson
Well you could do foreach ( $_POST as $var ) ${$var} = ( isset($_POST[$var]) ? 1 : 0); but that's really sloppy. If possible, I'd go more for something like $vars = Array( 'noPlatform', 'littlePlatform', 'lotsaPlatform', 'yoMommasaPlatform'); foreach (

Re: [PHP] splitting content into pages

2003-07-30 Thread Evan Nemerson
Is there a reason this can't be solved with a CSS background-repeat: repeat-y; ? Or is download time of individual pages an issue? This is really a client-side issue. The math is going to vary depending on each user's settings- which font is used, the size of the font, random browser

Re: [PHP] [PHP-WIN] http://www.zend.com/manual/function.memory-get-usage.php (fwd)

2003-07-30 Thread Evan Nemerson
Was php configured with --enable-memory-limit? function_exists('memory_get_usage')??? function_exists('get_memory_usage')??? Did the function even exist in 4.3.3 RC1? Why is your address @ unix-systems.net and you're asking about win32? On Wednesday 30 July 2003 04:36 pm, Miha Nedok wrote: I

Re: [PHP] tags to lowercase

2003-07-30 Thread Evan Nemerson
Interesting timing... http://coggeshall.org/archives/e_65.html On Wednesday 30 July 2003 04:25 pm, Justin French wrote: Sounds great, although I doubt my host will install... has anyone considered such a beast running as a PHP function/class? Justin On Wednesday, July 30, 2003, at 02:53

Re: [PHP] Hash

2003-07-30 Thread Evan Nemerson
do you have something agains php.net/md5? php.net/crc32? php.net/sha1? They're all included in 4.3 On Wednesday 30 July 2003 07:40 pm, AECT Listas wrote: Hi, How set up functions hash in php4.3.2 thanks _ Charla con tus

Re: [PHP] splitting content into pages

2003-07-30 Thread Evan Nemerson
: Evan Nemerson mailto:[EMAIL PROTECTED] on Wednesday, July 30, 2003 7:17 PM said: Is there a reason this can't be solved with a CSS background-repeat: repeat-y; ? Or is download time of individual pages an issue? That can look funny of course if the picture doesn't tile well. The math

Re: [PHP] mcrypt mhash

2003-07-30 Thread Evan Nemerson
http://mcrypt.hellug.gr/ http://mhash.sf.net/ On Wednesday 30 July 2003 08:11 pm, AECT Listas wrote: Hi, What is utility of mcrypt and mhash? Thanks, _ Charla con tus amigos en lĂ­nea mediante MSN Messenger:

Re: [PHP] Unable to configure PHP5 on Linux

2003-07-28 Thread Evan Nemerson
Ya- you have to have libxml2-devel installed. Possibly http://rpmfind.net/linux/RPM/rufus/libxml/libxml2-devel-2.5.1-1.i386.html but check your distro cd first. Or you could rpm -e libxml2-2.5.1-1, get a tarball, and compile it yourself On Monday 28 July 2003 07:13 pm, Jonathan Villa wrote:

Re: [PHP] Session Problems with 4.3.2

2003-07-22 Thread Evan Nemerson
Were you planning on incrementing $_SESSION['count'] anywhere? If not, try ?php isset($_SESSION['count']) ? echo Yes.\n : echo No.\n; ? On Tuesday 22 July 2003 09:55 am, Joe Sheehan wrote: Just noticed my email was messed up because of the html. Sorry about that I've been using up until

Re: [PHP] Arrays and Alphabetical order

2003-07-22 Thread Evan Nemerson
/* UNTESTED - and prolly could be more efficient */ $c = $d = ''; natsort($info); foreach ( $info as $i ) { $d = substr($i, 0, 1); if ( $d != $c ) echo \n; echo $i; $c = $d; } On Tuesday 22 July 2003 09:40 am, Don Mc Nair wrote: Hi folks I am

Re: [PHP] php weirdness

2003-07-22 Thread Evan Nemerson
Does the cpu spike for all scripts or just this one. If just this one, can you narrow it down to a single line? On Tuesday 22 July 2003 08:50 am, Javier wrote: Hi, I'm running PHP 4.3.2 (cgi-fcgi) (win32). Everytime I run a script from the command line: php -q myscript.php The processor

Re: [PHP] Session Problems with 4.3.2

2003-07-22 Thread Evan Nemerson
on but no luck either. Anyone have any idea what i'm doing wrong? I'm hoping its just a user error. Thanks in advance From: Evan Nemerson [EMAIL PROTECTED] To: Joe Sheehan [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Session Problems with 4.3.2 Date: Tue, 22 Jul 2003 10:01:03 -0700

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Evan Nemerson
I kinda skimmed, but I think what you want is foreach ( array_keys($SAVEVARS) as $key ) $query = update table set $key=$SAVEVARS[$key];; On Thursday 17 July 2003 02:38 pm, Mike Morton wrote: Perhaps I was not that clear on the subject :) I have the following array:

Re: [PHP] php4apache2.dll

2003-07-17 Thread Evan Nemerson
Well if phpinfo.php looks like ?php phpinfo(); ?, and when you view it through the server you get tons of data, PHP is working. If you just get ?php phpinfo(); ?, it's not. On Thursday 17 July 2003 02:28 pm, jsWalter wrote: What part of phpinfo.php tells me that mod_php4 is loaded and

Re: [PHP] The stupidest question of the month.

2003-07-17 Thread Evan Nemerson
Since you don't need to put up a server, you can just use fsockopen. If I recall correctly, passing the timeout argument as 0 means no timeout... If you use the cli version of php, you can just enter `php -q myscript.php ` on the command line (doubt this works w/ m$...). The ampersand tells the

Re: [PHP] XML Array

2003-07-15 Thread Evan Nemerson
I seem to remember seeing something like that on hotscripts.com... On Tuesday 15 July 2003 03:58 pm, Michael Smith wrote: Hey, I'm looking for a function to take an XML file and turn it into a PHP array with the same structure. So if I have: template color#00/color

[PHP] generate word docs

2003-06-24 Thread Evan Nemerson
Summary: I have to create a word document on the fly. what's the best way to go about it? Okay so I have a client that would like something output to a word document. I already have HTML and PDF versions... I'm trying to figure out the best way to do this. I am already aware of the open html

Re: [PHP] PHP extensions and multiple source files?

2003-06-11 Thread Evan Nemerson
Good question, but wrong place for it. Ask [EMAIL PROTECTED] On Wednesday 11 June 2003 08:31 pm, Ed wrote: Howdy folks! Is there a way to have multiple *.c source files and still end up with a single *.so while using gcc? How would that be reflected in the config.m4 file? I searched for

Re: [PHP] Detecting Bots...

2003-06-09 Thread Evan Nemerson
This should be helpful: http://www.robotstxt.org/wc/active/all.txt On Monday 09 June 2003 07:36 pm, Steven Kallstrom wrote: Dear List, So $_SERVER['HTTP_REFERER'] gives us the User Agent... is there anyway to determine if in general the User-Agent is a bot, or do I have to check for a

Re: [PHP] Needing Just a Little Advice!

2003-06-05 Thread Evan Nemerson
Try not hijacking threads. Other than that, this has been discussed several times in the past. Methinks a thorough scouring of the archives would be fruitful. On Wednesday 04 June 2003 01:18 pm, sevenfiftyflat wrote: Hi! From any of you out there that managed to get a PHP script to

[PHP] New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Evan Nemerson
Clode? I like it. Really, who wants to say closing php tag, terminating php tag, or whatever you say. Why not start calling it a clode? What does everyone else think? The only issue is if a closing php tag (or should it be a more general closing tag, with php being able to serve as a modifier

Re: [PHP] Adding a particalar POST value to a string

2003-06-02 Thread Evan Nemerson
Taking into account your earlier post: $string = ''; foreach ( array_keys($_POST) as $var ) { if ( !is_empty($_POST[$var]) ) { string .= $var.' '; } } trim($string); On Monday 02 June 2003 03:22 am, Shaun wrote: Hi, I have many textfields on my page. How can

Re: [PHP] Using Cookies Securely

2003-06-01 Thread Evan Nemerson
:26PM -0700, Evan Nemerson wrote: Send a session ID to the user in a cookie, then lookup that ID in a database on the server. It's extremely difficult to guess random session ID's (don't just increment them!), and if you have a session timeout, you're pretty much set. That's true

Re: [PHP] Compile 4.3.2 Errors.

2003-06-01 Thread Evan Nemerson
Don't know about 4.3.2, but at the end of 5.0-dev make, the following message is output: Build complete. (It is safe to ignore warnings about tempnam and tmpnam). On Saturday 31 May 2003 06:29 am, Volker Augustin wrote: hi, this sounds like a warning not like an error, your php is

Re: [PHP] reading binary data

2003-06-01 Thread Evan Nemerson
file_get_contents() is binary safe. $binary_data = file_get_contents(/path/to/file); php.net/file_get_contents On Saturday 31 May 2003 12:42 pm, Ferhat BINGOL wrote: Hi, I have binary data. I know the format but I do not know how to read it with PHP. I saw some articles and comments on the

Re: [PHP] get modification date of remote page

2003-06-01 Thread Evan Nemerson
/* UNTESTED. */ function get_http_lm_date($url) { $d = parse_url($url); if ( !$fp = fsockopen ($d['host'], (isset($d['port'])) ? $d['port'] : '80') ) return FALSE; fputs($fp, HEAD .$d['path']. HTTP/1.0\r\n\r\n); while ( !feof($fp) ) {

Re: [PHP] reading binary data

2003-06-01 Thread Evan Nemerson
an example for file_read_contents??? regards Evan Nemerson [EMAIL PROTECTED], iletide sunu yazdi news:[EMAIL PROTECTED] file_get_contents() is binary safe. $binary_data = file_get_contents(/path/to/file); php.net/file_get_contents On Saturday 31 May 2003 12:42 pm, Ferhat BINGOL

Re: [PHP] How to secure a download ?

2003-05-31 Thread Evan Nemerson
header(Content-type: application/zip); header(Content-Disposition: attachment; filename=yourfilename.zip); readfile(/path/to/yourfilename.zip); On Friday 30 May 2003 03:34 pm, Vincent M. wrote: Hello, Is there any way to launch a download of a Zip file to the user without a link. The user

Re: [PHP] Function result is an array

2003-05-31 Thread Evan Nemerson
IMHO the function()[] syntax should be allowed, but it isn't. You could use list() or extract(), but then you'd wind up with a lot more date than you want. What I've been doing is creating a function, then calling when needed. For example: function array_get_value($array, $index) {

Re: [PHP] Using Cookies Securely

2003-05-31 Thread Evan Nemerson
Send a session ID to the user in a cookie, then lookup that ID in a database on the server. It's extremely difficult to guess random session ID's (don't just increment them!), and if you have a session timeout, you're pretty much set. It's not perfect, but I don't think anyone has come up with

Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Evan Nemerson
I can difficultly find solutions to my problems by reading the GnuPG source. Thanks! Pierre-Luc Evan Nemerson wrote: GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out the below link if you're interested) where

Re: [PHP] request

2003-05-30 Thread Evan Nemerson
?php echo $random = gmp_intval(gmp_random(10)); ? On Thursday 29 May 2003 01:24 pm, Marius wrote: ? $random = gmp_random(10); echo $random; ? how to do that it echoes a random number and not a Resource id #1, -- Happy shall he be, that taketh and dasheth thy little ones against the

Re: [PHP] random

2003-05-30 Thread Evan Nemerson
limiter is the maximum number of limbs, not the max random number. A limb, according to the GMP documentation, is the part of a multi-precision number that fits in a single word. (We chose this word because a limb of the human body is analogous to a digit, only larger, and containing several

Re: [PHP] general question

2003-05-30 Thread Evan Nemerson
The php-gtk-general list is meant for general discussion about using PHP-GTK. To subscribe, send blank email to [EMAIL PROTECTED] The address of the list itself is [EMAIL PROTECTED] The list is archived at MARC. - http://gtk.php.net/resources.php Try there- you'll prolly get a better answer

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Evan Nemerson
Deprecated means that it has fallen out of favor, and is _in_the_process_of_being_phased_out_ You should not rely on this code in new applications. Go look it up in a dictionary. If you have to be backward compatible with 4.1.0 (which was released on 10-Dec-2001!) I suggest something like this:

Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Evan Nemerson
GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out the below link if you're interested) where they interact directly with the virtual console. Try piping to your command- that won't work either echo $PASSPHRASE | \

Re: [PHP] Re: What program do you use to Create PHP Application?

2003-05-27 Thread Evan Nemerson
Nothing, except for the keyboard shortcuts are so damn addictive. I get out of emacs and it pisses me off that every application doesn't have that kind of power that easily accessible. Just like Opera mouse gestures... On Tuesday 27 May 2003 06:56 am, David Grant wrote: Joe Stump wrote:

Re: [PHP] Anyone know of a php script to extract files from a zip file.

2003-05-27 Thread Evan Nemerson
http://dev.maxg.info/projets/projet.ziplib.en.maxg maybe??? haven't tried it On Tuesday 27 May 2003 12:16 pm, Al wrote: I doing a little photos album application and I'd like my, non-techie, users to be able to zip together their photos and upload them to a folder on the site. I've got

Re: [PHP] secure code

2003-05-27 Thread Evan Nemerson
Good question! I rarely see this type of question here. http://www.dwheeler.com/secure-programs/ is a good one- even has a small section dedicated specifically to PHP The Shmoo Group has a good list at http://www.shmoo.com/securecode/ And if you're one of the learn by example of how not to do

Re: [PHP] Redirec.t

2003-03-28 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 header(Location: http://www.domain.com/admin.php;); if you _really_ need to use your syntax, you could function redirect($uri) { header(Location: .$uri); } On Friday 28 March 2003 03:28 pm, Johnny Martinez wrote: Hi all, Can someone tell me the

Re: [PHP] Return Character in a Text File?

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you use \r\n instead of \n notepad should be fine. Winblows uses CRLF for everything... On Thursday 27 March 2003 10:07 am, Jay Paulson wrote: I have a slight problem. Is there anyway to make a text file with a return character that doesn't

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You might wanna move ipaddr.log outside your server root... or at least use some .htaccess... wouldn't want someone to just browse to the file... $fp = fopen(ipaddr.log, a+); fputs($fp, $_SERVER['REMOTE_ADDR'].\n); fclose($fp); On Thursday 27

Re: [PHP] character set problem

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 can you do a rawurlencode() on the data before you put it in the DB, and a rawurldecode when you suck it out? It's a hack, but it would prolly work fine. On Thursday 27 March 2003 09:46 am, Filip De Graeve wrote: Hello, Using PHP 4.3.1 on a

Re: [PHP] Excel

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not exactly, but http://pear.php.net/package-info.php?pacid=156 On Thursday 27 March 2003 05:47 am, Gabi Moise wrote: Hi, Can someone point me to a php and Excel tutorial? tnx. - -- First they came for the Communists, and I didn't speak up,

Re: [PHP] character set problem

2003-03-27 Thread Evan Nemerson
string... is there anybody else who got any idea ? thank you for your quick response... regards, Filip Evan Nemerson [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 can you do a rawurlencode() on the data before you put

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 register globals is of in newer versions of php. you can re-enable it in the php.ini.. See http://www.php.net/manual/en/configuration.directives.php#ini.register-globals On Thursday 27 March 2003 10:57 am, Tom Tsongas wrote: I just recently

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not true- $_SERVER['REMOTE_ADDR'] doesn't rely on anything sent by the browser. Load up a phpinfo() on your server, then request it by hand... echo -e GET /phpinfo.php HTTP/1.0\r\n\r\n | nc www.yourserver.com 80 You'll see it has your IP address

Re: [PHP] Object Aggregation - does anyone have experience with it?

2003-03-26 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 my _guess_ would be you compiled w/ default (v1) zend engine. v2 has lots of improvements for oop- perhaps this is one of them. Try compiling with v2 of the engine and see what happens. On Tuesday 25 March 2003 02:44 pm, Christopher E. Welton

Re: [PHP] Uploading Files Via PHP

2003-03-26 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you getting any errors through PHP? Set error reporting to E_ALL then try. ?php error_reporting(E_ALL); ? On Wednesday 26 March 2003 04:41 pm, Vernon wrote: Is there some thing that needs to be turned on in the php.ini in order to be able

Re: [PHP] quick echo output

2003-03-03 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There are four sets of tags which can be used to denote blocks of PHP code. Of these, only two (?php. . .? and script language=php. . ./script) are always available; the others can be turned on or off from the php.ini configuration file. While the

<    1   2   3   4   >