Re: [PHP] .inc over .php

2002-04-19 Thread Meir Kriheli
ile with the > .inc extension, so my database connection info, password, etc is > (theoretically) safe from being served directly. > > > Erik Those files should be placed outside DocumentRoot (if you control the server). Then set include_path in php.ini to include that dir, and you&#

Re: [PHP] Send output before header location

2002-01-13 Thread Meir Kriheli
oved, but the technique is not very effective since users may not even be looking at the window that is to be refreshed and since it messes up the user's history on many browsers. Some search engines penalize pages that use a Refresh of a few seconds or less. -- Meir Kriheli -- P

Re: [PHP] jukebox

2002-01-05 Thread Meir Kriheli
; > Thanks in advance. > > -Scott Hi Scott, A quick search at freshmeat shows several projects doing the same thing already, you might want to check them out for reference: http://freshmeat.net/search/?q=jukebox%20php -- Meir Kriheli -- PHP General Mailing List (http://www.php.net/

Re: [PHP] session

2001-12-11 Thread Meir Kriheli
That depends, You can store session data in a DB instead of files. All servers sharing session vars should use this DB for session storage. This works if the servers are on the same site. If the server is in some other place that is problem. Allowing access to your DB via the 'net i

Re: [PHP] Where is my php.ini?

2001-11-01 Thread Meir Kriheli
copy it create a php file containing phpinfo() in it and access it with your browser. Examine the output to see where the ini is expected (you can define this while running configure during the build process) -- Meir Kriheli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] DB.php, and how to use?

2001-09-25 Thread Meir Kriheli
o, you can check out the tutorial at phpbuilder.com: http://www.phpbuilder.com/columns/allan20010115.php3 The best way to know what the class does and its method is reading the source. -- Meir Kriheli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] 2 decimal places

2001-09-25 Thread Meir Kriheli
On Tuesday 25 September 2001 19:38, Evan Nemerson wrote: > Yeah, but what if they don't JUST want to print it... > > /*untested*/ > $i=524; > $n=5-strlen($i); > $outnum=""; > for($x=1;$x<=$n;$x++){ > $outnum.="0"; > }; > $outnum.=$i

Re: [PHP] 2 decimal places

2001-09-25 Thread Meir Kriheli
) and sprintf() functions (there are good examples about formatting in sprintf()'s documentation). -- Meir Kriheli > > - Original Message - > From: "Christian Dechery" <[EMAIL PROTECTED]> > To: "Kurth Bemis" <[EMAIL PROTECTED]> > Cc:

Re: [PHP] Any Free Web Hosts that still support the mail( ) function out there?

2001-09-22 Thread Meir Kriheli
.com/browse.html/package/14 -- Meir Kriheli > -Original Message- > From: Felix [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 21, 2001 4:58 PM > To: Salty Marine; [EMAIL PROTECTED] > Subject: Re: [PHP] Any Free Web Hosts that still support the mail( ) > function out

Re: [PHP] creating ZIP files

2001-09-20 Thread Meir Kriheli
On Friday 21 September 2001 00:31, Raphael Pirker wrote: > this link refers to a function READING zip files, not actually creating > one... Sorry, forgot to send the link to the zip creation class, http://www.zend.com/codex.php?id=535&single=1 Have fun -- Meir Kriheli -- P

Re: [PHP] creating ZIP files

2001-09-20 Thread Meir Kriheli
a series of them. See: http://www.zend.com/zend/spotlight/creating-zip-files1.php -- Meir Kriheli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] form handling problem

2001-09-19 Thread Meir Kriheli
On Monday 17 September 2001 06:01, Nikola Veber wrote: > Hi ! > > I have a form > > Is there a way to open PHP_SELF in the same window, not in the new one ? It should be target is used as the name of the frame or window used for the submission. see: http://www.w3.org/TR/REC-html40/interact/f

Re: [PHP] Flex...

2001-09-15 Thread Meir Kriheli
On Saturday 15 September 2001 17:08, Joaquin wrote: > Hello, i ask to the listo for a problem.. and they say me that i havent > flex.. yhe error is this.. when i put ./configure to install PHP it says > ... > > checking lex output file root... ./configure: lex: command not found > configure: erro

Re: [PHP] Site Layouts/Designs

2001-09-09 Thread Meir Kriheli
e.. > > BTW, I am after free ones, i don't want to have to pay for them.. > > > - James "ReDucTor" Mitchell Hi, See http://www.oswd.org -- Meir Kriheli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] POST from the script

2001-08-14 Thread Meir Kriheli
On Tuesday 14 August 2001 23:52, Marc Hanlon wrote: > I was wondering if anyone knows how to make a script that is capable of > doing it's own POST to a page without needing a form to be filled in. > Basically it needs to perform the same sort of action as: > > www.anyplace.com/script.php?action=s

Re: [PHP] project management scripts?

2001-08-05 Thread Meir Kriheli
On Thursday 02 August 2001 23:12, Daniel Goldin \(E-mail\) wrote: > Anybody know of any good project management scripts? Nothing too bloated. > Just a good simple way to organize projects and groups remotely. I've found > phpGroupware to be unwieldy and slow. >From a quick search at freshmeat.net

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 15:46, Phil Driscoll wrote: > > Is this staement safe ? > > > > eval('$a = $GLOBALS["pass1"]==$GLOBALS["pass2"]'); > > Maybe I'm missing the point, but why not just go: > $a = $GLOBALS["pass1"]==$GLOBALS["pass2"]; I'm writing a form class which can also validate the fo

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 13:54, Yasuo Ohgaki wrote: > > I don't think this is much of a problem. I unset() all the global > > session > > > variables before I use them so this should be no problem. > > All inputs (GET/POST/COOKIE) from users must be checked if you worriy > about security. You m

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 10:20, Richard Lynch wrote: > >> But I'm not > >> using eval() > >> directly on user entered data, and I can't see where it is possible. > > Yes, you are. > > pass1 is coming from the user, is it not? > > You are using eval() to decide if pass1 and pass2 are equal, are

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 10:20, Richard Lynch wrote: > >> But I'm not > >> using eval() > >> directly on user entered data, and I can't see where it is possible. > > Yes, you are. > > pass1 is coming from the user, is it not? > > You are using eval() to decide if pass1 and pass2 are equal, are

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 02:02, Yasuo Ohgaki wrote: > "Meir Kriheli" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Hi, > > I need another pair of eyes to see if I've overlooked something. > > S

[PHP] Trying to avoid code exploits..

2001-07-31 Thread Meir Kriheli
Hi, I need another pair of eyes to see if I've overlooked something. I'm developing a form class for a project. The class can generate the form and upon submission validate it through a rules system. Rules are a valid php command which can evaluate as boolean, e.g.: $form->addRule('strlen({una

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Meir Kriheli - MKsoft
user enters into the $u_name field: ' and '1'='1 Ouch... However, if those dashes were escaped with slashes, the query will execute and return no values. Never trust input from users, always check it. -- Meir Kriheli MKsoft computer systems 'There's someone

Re: [PHP] auto index in Apache

2001-06-19 Thread Meir kriheli
ing > names? > >Thank you very much in advance. > > George Hi George, In your httpd.conf there is an entry called DirectoryIndex. Just add to this whatever you like, e.g: DirectoryIndex index.php index.html index.php3 -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd

Re: [PHP] "simulate" form submission

2001-06-19 Thread Meir kriheli
re $PostVarsData must contains the header informations to send the post > vars > > but what are these header informations? > how can I handle that? > > Thanks, > Pascal You can use the http class from Manuel Lemos, see: http://phpclasses.upperdesign.com/browse.html/package/3 -- Meir

Re: [PHP] validate form with javascript

2001-05-14 Thread Meir Kriheli - MKsoft
You can try the forms class from Manuel Lemos, which handles this and more. For more details: http://phpclasses.upperdesign.com/browse.html/package/1 -- Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd - Original Messag

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1

2001-05-07 Thread Meir kriheli
On Tuesday 08 May 2001 00:39, elias wrote: Is it a windows app (I hope it isn't)? -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd > Hello. > > Good work! > > Hope it beats DreamWeaver4+EditPlus2 > > -elias. > > "José L

Re: [PHP] user login names/values

2001-04-25 Thread Meir kriheli
roblem. Always validate user data -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admin

Re: [PHP] File Transfer over HTTPS

2001-04-25 Thread Meir kriheli
on Windows. > > -Rasmus If you're running ssh on the server you can try the scp (secure copy ?) protocol. For windows there's is a freeware called winscp (loop it up in google). But this has nothing to do with php. -- Meir Kriheli There's someone in my head, but it&#

Re: [PHP] About sessions !!

2001-04-24 Thread Meir kriheli
SID is: SID > > Who can tell me what happend !! > > Thank you in advanced !!! > > -- > M. Sc. Hassan Arteaga Rodríguez > Microsoft Certified System Engineer > Network Admin, WEB Programmer > FUNDYCS, Ltd > [EMAIL PROTECTED] It should be echo $SID (I think) as this is a

Re: [PHP] Anyone got the new Postgres 7.1 .rpms working?

2001-04-24 Thread Meir Kriheli - MKsoft
n my /usr tree. > > Is this a bug with the rpm or am I doing something dumb? My linux > skills are basic so any help would be much appreciated > > Geoff Caplan I had the same problem, and solved it by creating a symlink name postgres.h to fostgres-fe.h, and it is working great. I

Re: [PHP] Site Structure

2001-04-23 Thread Meir kriheli
r files without > putting any path info in? > > regards, > jaxon Sure you can, set the include_path in your php.ini file. -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd > > > -Original Message- > > From: Toby Miller [mail

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Meir kriheli
Thanks > > > Chris while($count<4) { $count++; $strname="name$count"; echo $$strname; } -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP standalone script

2001-03-16 Thread Meir kriheli
should configure and compile PHP as a standalone executeable (without --with-apxs or without --with-apache) and in the top of your script you should put #!/usr/bin/php -q or whatever the path to PHP is (check the output of phpinfo() ). the -q flag is to supress headers. -- Meir Kriheli There&

Re: [PHP] NETSCAPE Screws QUERY STRING!!!!!!

2001-03-04 Thread Meir Kriheli - MKsoft
You should use the urlencode() function. See http://www.php.net/manual/en/function.urlencode.php -- Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd - Original Message - From: "Thomas Edison Jr." &

Re: [PHP] PostgreSQL vs InterBase

2001-03-02 Thread Meir kriheli
On Friday 02 March 2001 00:23, Shaun Thomas wrote: > On Thu, 1 Mar 2001, Meir kriheli wrote: > > I use both of the databases (Interbase 6.01 and PostgreSQL 7.1beta4). > > > > PostgreSQL has more features comapared to Interbase (the procedureal > > language is ver

Re: [PHP] Hebrew websites transition with php3 ..

2001-03-01 Thread Meir kriheli
As Boaz suggested look into hebrev and hebrevc functions. They are the only ones I can think about right now. check http://php.net/hebrev http://php.net/hebrevc the manual states that this functions are defined in PHP3 and PHP4. HTH -- Meir Kriheli There's someone

Re: [PHP] PostgreSQL vs InterBase

2001-03-01 Thread Meir kriheli
indows implemenation is very hard (at least for me, I like to compile it). As for speed both are very fast (even when compared to commerical DB, in my tests the deafult install of Interbase outperfomed the default install of Oracle 8i about 10X, tested on P166 with 96MB and PII400 with 192MB).

Re: [PHP] Hebrew websites transition with php3 ..

2001-03-01 Thread Meir kriheli
:-) , the majority of users in Israel are using IE. One more problem you'll have with visaul hebrew is the ugly line breaks which cause the end of the sentence to appear before the start of it. I had a long discussion of this subject with Manuel off this mailing list. I can send you a

Re: [PHP] Forms

2001-02-15 Thread Meir kriheli
cus to a field. * Select the text of a field. * Set the input focus and select the text of a field. * Enable and disable input fields - Automatic capitalization of the text of a field: * Upper case. * Lower case. * Word initials - Etc. HTH -- Meir Kriheli There's someone in my head, but it&#x

Re: [PHP] Re:What version of Linux?

2001-02-02 Thread Meir kriheli
gt; do I need to install? You can also try the LinuxFromScratch project, there you can install the minimum needed stuff, and tweak it to your liking. It will take you a few days but IMHO it's worth the trouble (and you'll learn much more about linux that way). check http://ww

Re: [PHP] ibase_num_fields() -a workaround ?

2001-01-21 Thread Meir Kriheli - MKsoft
Hi ibase_num_fields returns the column count of the result, not the row count ! Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] ibase (firebird) localhost login ?

2001-01-11 Thread Meir Kriheli - MKsoft
use localhist:path_to_your_db/your_db.gdb example : on *nix: localhost:/opt/interbase/db/my_db.gdb on win* localhost:c:\ib_db\my_db.gdb Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd - Original Message -

Re: [PHP] looking for a PHP editor

2001-01-11 Thread Meir Kriheli - MKsoft
> hi.. > > ..i am curious if theres anny linux (x, KDE, Gnome) php editor with syntax > highliting and this things... > > markus > You can also try quanta+ for the KDE desktop, http://quanta.sourceforge.net Meir Kriheli MKsoft computer systems 'There's som