[PHP] declaring properties

2002-03-31 Thread caspar kennerdale
Is declaring properties at the beginning of a class imperative or good programming practice. All the documentation I have seen states that you must do this,however if the properties I am setting in each function are listede in the parenthesis i.e function test($var1,$var2){ } then my classes st

[PHP] Re: HTML Question

2002-03-31 Thread gaukia 345
Iframe is supposed to work with browsers compliant with W3C HTML 4.01 and above. If you're developing for newer browsers, no problem. But if you want backward compatibility, why not just use FRAME? Gaukia _ Join the world’s larges

[PHP] Experiences with vPopmail functions?

2002-03-31 Thread Johannes Tyra [BrainData]
Hi, has anybody experiences with the vpopmail functions in php? If I use these functions (I´m sure there are compiled correctly into php) I get errors over errors. (Unable to change into /vpopmail/domains/domain dir etc) Thanx a lot... -- Mit freundlichem Gruß, | Johannes Tyra |

[PHP] Re: PHP / cgiwrap - weird problem

2002-03-31 Thread jtjohnston
Why are you using cgiwrap? seriously? Are you using an old httpd server and not apache? CGIWRAp from my perling experiences was good for firewalling, keeping users out of areas of your server. But cgiwrap is a pain in the ass for your users. If you have your/their permissions set up right, why

Re: [PHP] return

2002-03-31 Thread jtjohnston
Gary, To add to the conversation ... You created a function to pass something through it, to process something and now you want to get something back, right? That's what return does. It gets something back for your effort. You could simply: echo addslashes($var); But let's say you do it a hund

[PHP] server side includes

2002-03-31 Thread jtjohnston
I guess what I'm getting at is that a php server acts like a server side includes server, right? On webrings they use something like: http://foo.com/test.php";> test.php would have to spit out javascript like this: http://ss.webring.com/navbar?f=j;y=tombeaudreau;u=10035307 document.write("

[PHP] database security - sql injection

2002-03-31 Thread Geoff
Hi all, I've been testing the security of some of my forms, and did find some nasty holes in regards to the forms not being validated properly (and sometimes not at all). Referring to the webpage; http://www.php.net/manual/en/security.database.php#security.database.sql-inj ection I should be ab

[PHP] Re: problems trying to use PHP to choose CSS

2002-03-31 Thread Timothy J. Luoma
On Sat, 30 Mar 2002, Hugh Bothwell wrote: Thanks to Hugh for his help... his PHP code was perfect... it was exactly what it took to get it done. Just a few minor notes: I was able to keep the echo <<< EOD statements which I prefer for this particular implementation, and I kept so tha

[PHP] Getting rid of Web Page has expired

2002-03-31 Thread David Johansen
I was just wondering what I had to do to get rid of the Web Page has expired thing when my php page is calling itself and the user hits back. It only does it on the last page for some reason. Thanks, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] return

2002-03-31 Thread Miguel Cruz
On Sun, 31 Mar 2002, Miguel Cruz wrote: > On Mon, 1 Apr 2002, Jordan wrote: >> Isnt there really no need for the 'return' though? > > Try this program and see what happens: Ah, Rasmus brings up a good point. Try this one instead. triple1: ' . $x; $x = 5; print 'triple1 return: ' . triple1($x

Re: [PHP] return

2002-03-31 Thread Miguel Cruz
On Mon, 1 Apr 2002, Jordan wrote: > Isnt there really no need for the 'return' though? Try this program and see what happens: triple1: ' . $x; $x = 5; print 'triple1 return: ' . triple1($x); $x = 5; $x = triple2($x) print 'triple2: ' . $x; $x = 5; print 'triple2 return: ' . triple2($x);

Re: [PHP] return

2002-03-31 Thread Rasmus Lerdorf
Well, you could do it without a return, but first, addslashes() returns the modified string, it does not do in-place replacement. And second, you would need to pass the string in by reference, like this: function test (& $var) { $var = addslashes($var) } $foo = "He's dreaming"; test($foo);

Re: [PHP] return

2002-03-31 Thread Jordan
Eric, Isnt there really no need for the 'return' though? $test ($var) { addslashes($var) } $foo = "He's dreaming"; $foo = test($foo); print($foo); //should also print He\'s dreaming Am I incorrect in thinking this? -Jordan K. Martin http://www.newimagedesign.com Eric Coleman <[EMAIL PRO

Re: [PHP] return

2002-03-31 Thread eric.coleman
But to answer your question The purpose of return, is to "return" a value.. function test($var) { return addslashes($var); } $foo = "Yes, I'am Very Awsome"; $foo = test($foo); echo($foo); // echo's, Yes I\'am Very Awsome Understand? - Original Message - From: "Rasmus Lerdorf" <[E

php-general Digest 1 Apr 2002 05:24:49 -0000 Issue 1260

2002-03-31 Thread php-general-digest-help
php-general Digest 1 Apr 2002 05:24:49 - Issue 1260 Topics (messages 90888 through 90921): Re: HTML Question 90888 by: Gary 90898 by: Justin French Re: APACHE + SSL + PHP 90889 by: Septic Flesh ask for suggestion about printing 90890 by: php.gurubase.com

Re: [PHP] Issues with long SQL inserts

2002-03-31 Thread Jason Wong
On Monday 01 April 2002 07:22, Chris Snyder wrote: > I altered the add.php script to print the query to screen instead of > sending it to MySQL to try this. It still acted the same, regardless of > whether it was sending it to the MySQL server or printing it. In fact, > it even had the same re

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-31 Thread Rasmus Lerdorf
For example: ./configure --enable-ftp=shared make this will create modules/ftp.so -Rasmus On Mon, 1 Apr 2002, Prachait Saxena wrote: > So can u tell me how to complie one module only ? > as i am thinkg to complie that module on my local machine [Linux] and then > upload to the server. > > Bye

Re: [PHP] return

2002-03-31 Thread Rasmus Lerdorf
Nope, that code makes no sense. $_POST is an array containing the POST variables. You make a copy of that array an put it in $foo thereby overwriting the passed in $foo. Then you return $$foo which actually ends up returning a variable named $Array. It does not look like you have a $Array vari

[PHP] return

2002-03-31 Thread Gary
Can someone explain to me the reason for using return. function _getValue($foo) { $foo = $_POST; return ${$foo}; } TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-31 Thread Prachait Saxena
So can u tell me how to complie one module only ? as i am thinkg to complie that module on my local machine [Linux] and then upload to the server. Bye, Have a nice day. Prachait If you do for other's ! Other's will do for you !! Visit me at http://www.sitesontesting.com/prachait - Original

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
Wow! Nope, I'm stumped now. It does seem to be a problem with PHP handing large blocked of text but as I've personally posted 8k of test from a form into a text field I'll be dogged if I know what's happening. Any possibility that it's a quotes problem? If you view the source, is there a PHP err

[PHP] Re: Newman Says: Error when starting sessions.

2002-03-31 Thread Philip J. Newman
so it should be session.save_path = c:\php\temp at the moment it says session.save_path = 1 - Original Message - From: "Yasuo Ohgaki" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Philip J. Newman" <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 2:16 PM Subject: Re: Newman Says: Er

Re: [PHP] Issues with long SQL inserts

2002-03-31 Thread Chris Snyder
Cal Evans wrote: >Sorry, I've reached the end of my tech-support flow-chart. You might want >to try 2 things: > >1: Fire up the MySQL client of choice and do the insert manually. If it >works there. If it does then at least you've isolated the problem to PHP or >your script. If not then you'v

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
Sorry, I've reached the end of my tech-support flow-chart. You might want to try 2 things: 1: Fire up the MySQL client of choice and do the insert manually. If it works there. If it does then at least you've isolated the problem to PHP or your script. If not then you've eliminated your script

[PHP] Help with nested if statements, is this possible?

2002-03-31 Thread Jim Hankins
Here is a portion of a work in progress, I tested by sending the script with a payment status of incomplete yet it still executed other portions of the code. Should it not have jumped out. Or is my nested if invalid for some reason? if ($payment_status = "Completed") { echo "1st if is passed"; /

Re: [PHP] Issues with long SQL inserts

2002-03-31 Thread Chris Snyder
Cal Evans wrote: >I'm not up on the exact spec on MySQL but if it has an 'unlimited' text type >then it is a rarity among SQL engines. M$SQL's limit is (used to be?) 8MB >in a single text field. > >FoxPro/dBase had an unlimited text field but that's not so must a SQL engine >as a file format. >

Re: [PHP] Issues with long SQL inserts

2002-03-31 Thread Chris Snyder
Cal Evans wrote: >Have you tried shaving the article off a couple of chrs before the last one >and seeing if the insert works? Also, what is the size limit on a MySQL TEXT >field? > >http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#BLO >B > >May give a hint. > I tried shav

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
I'm not up on the exact spec on MySQL but if it has an 'unlimited' text type then it is a rarity among SQL engines. M$SQL's limit is (used to be?) 8MB in a single text field. FoxPro/dBase had an unlimited text field but that's not so must a SQL engine as a file format. My guess is that you are

Re: [PHP] Issues with long SQL inserts

2002-03-31 Thread Chris Snyder
Cal Evans wrote: >Have you tried shaving the article off a couple of chrs before the last one >and seeing if the insert works? Also, what is the size limit on a MySQL TEXT >field? > >http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#BLO >B > Thanks for the quick response.

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
Have you tried shaving the article off a couple of chrs before the last one and seeing if the insert works? Also, what is the size limit on a MySQL TEXT field? http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#BLO B May give a hint. =C= * * Cal Evans * Journeyman Programm

[PHP] Issues with long SQL inserts

2002-03-31 Thread Chris Snyder
Server is running PHP 4.1.2, APC 1.1.0pl1, MySQL 3.23.47, Apache 1.3.23 on a built-from-scratch Linux system with kernel 2.4.17, glibc 2.2.5, and gcc 3.0.4. I'm using a fairly simple script to take input from a form, and add it to a database. The database has the following structure: ID - med

[PHP] Re: Postgres question

2002-03-31 Thread Yasuo Ohgaki
In addition to oid2name mentioned, you might want to know about system catalog schema. It's explained in manual http://www.postgresql.org/idocs/index.php?catalogs.html -- Yasuo Ohgaki Robert Abbate wrote: > Greetings to all! > > I have a webhosting company, and I'm trying to be able to use PH

[PHP] Re: Newman Says: Error when starting sessions.

2002-03-31 Thread Yasuo Ohgaki
Philip J. Newman wrote: > I'm trying to start a session, and I get this error. > > I have been told its something to do with a missing dir is my php dir? > > Warning: open(1\sess_0513b5c5d7021f1acdcf9f732032081f, O_RDWR) failed: No such file >or directory (2) in Unknown on line 0 > You have i

RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
If you are running a PHP script (like a shell script or a batch file) then you can use the back tiks (`) to execute a command on the machine that the PHP script is running on. (On my keyboard the backtik is on the same key as the tilde.) But if you are running this out of a web server then not re

Re: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread martinahingis
hmm.. very thanks Cal. I don't have any problem with security settings or another client side setting. Because actually I'm using PHP for an application (but not a web application) just works for the machine which is the server or in the same LAN with the werver. And all settings of their browser

RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
Martina, If you mean, from within a browser, is it possible to invoke a program on a client's machine then...yes, with a caveat. If the OS is windows, and the program has a COM interface and the user has set the security settings to a moronically low level, it is possible to invoke COM objects

[PHP] Is it possible to call an external client or server program?

2002-03-31 Thread martinahingis
Is it possible to call an external program via PHP. The program will most probably be in server. My aim is to call a scanner input program and want the client to scan a paper and upload it. thanks for help. martina. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: Nead Help With A Php Script

2002-03-31 Thread martinahingis
"Alain Kumschick FrançOis Robert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I need a php script that checks if the there is a cookie set with the users > username > and if not > it brings you to an other page and telling you that you are no

[PHP] Re: HTML Question

2002-03-31 Thread Justin French
You may also get better mileage in Netscape with the use of . Or, if you're on Apache, good old server side includes (Apache SSI) may be enough. Justin French Creative Director http://Indent.com.au on 01/04/02 5:27 AM, Gary ([EMAIL PROTECTED]) wrote:

Re: [PHP] ask for suggestion about printing

2002-03-31 Thread Miguel Cruz
On Mon, 1 Apr 2002 [EMAIL PROTECTED] wrote: > We are choosing some tools for building applications. Php is a very good > tools to build web applications, but we don't know if it can generate > printable reports. "Printable reports" mean the report you can print > what you see on screen (like winwo

[PHP] Newman Says: Error when starting sessions.

2002-03-31 Thread Philip J. Newman
I'm trying to start a session, and I get this error. I have been told its something to do with a missing dir is my php dir? Warning: open(1\sess_0513b5c5d7021f1acdcf9f732032081f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Philip J. Newman PhilipNZ :: Design Solutions h

[PHP] hosting

2002-03-31 Thread Heidi Belal
Hi All, was just wondering if anybody had any comments on web-x.com hosting services. Good/bad, reliable/not, up-time? support? etc... Thanks, Heidi = Heidi Belal www.code-corner.com ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work stati

Re: [PHP] ask for suggestion about printing

2002-03-31 Thread Ashley M. Kirchner
[EMAIL PROTECTED] wrote: > This can be done easily... > > And since when does PDFLIB cost money? I thought it was free... http://www.pdflib.com/pdflib/business.html I'm guessing they need multiple CPU and the PDI - which costs money. -- H | "Life is the art of drawing without an eraser.

Re: [PHP] Has anyone written such a function?

2002-03-31 Thread Rouvas Stathis
See attached file. -Stathis. Boaz Yahav wrote: > > Hi > > I need a function that will get a date in the past and return how much > time has passed since that date till now. > The input to the function is a MySQL DATETIME format and the output > should be something like : > > 2 Years, 36 Days,

Re: [PHP] ask for suggestion about printing

2002-03-31 Thread eric.coleman
This can be done easily... And since when does PDFLIB cost money? I thought it was free... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, March 31, 2002 2:02 PM Subject: [PHP] ask for suggestion about prin

[PHP] Re: Changing black to blue (2)

2002-03-31 Thread Andy
thanx! "Hugh Bothwell" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a map of the world with all countries. I have > > 250 maps of the same size as png where only one > > country is black, rest is transp. > > Now I neeed to set this country col

[PHP] ask for suggestion about printing

2002-03-31 Thread php
Dear Sir, We are choosing some tools for building applications. Php is a very good tools to build web applications, but we don't know if it can generate printable reports. "Printable reports" mean the report you can print what you see on screen (like winword). We are asking if at here, there

[PHP] Re: APACHE + SSL + PHP

2002-03-31 Thread Septic Flesh
I know I just wanna say that I use both these two switches...just borded to write them again --enable-module=ssl --enable-module=so -- Sapilas@/dev/pinkeye "Septic Flesh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I do

[PHP] Re: HTML Question

2002-03-31 Thread Gary
http://foo.com"; name="MyFrame" id="MyFrame" width="400" height="300" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"> You need to give a height. NN4 does not support iframe Gary Jtjohnston wrote: > I suppse this is an HTML question more than PHP. > I have a server elsewhere

php-general Digest 31 Mar 2002 17:17:13 -0000 Issue 1259

2002-03-31 Thread php-general-digest-help
php-general Digest 31 Mar 2002 17:17:13 - Issue 1259 Topics (messages 90857 through 90887): MySQL Connection Error - mysql_select_db 90857 by: Patrick Hartnett Case Statements - lil help please 90858 by: Patrick Hartnett 90864 by: Dennis Moore php form mail - what

Re: [PHP] APACHE + SSL + PHP

2002-03-31 Thread Tyler Longren
This isn't a correct apache configure flag: -enablemodule-ssl/so I suggest you use this howto: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html It gives you step by step examples on how to do exactly what you want to. Tyler Longren Captain Jack Communications [EMAIL PROTECTE

[PHP] [APACHE-PHP-WIN] : $_SESSION problems

2002-03-31 Thread John Mpaliza
  I configured well ( I think) my system (win32-apache 1.3.24-php4.1.2) and every think is working except session variables. Codes like this don't work: page1.php    session_start();    $_SESSION['test']="adding";    header("Location:

Re: [PHP] Websites on help for building PHP database sites

2002-03-31 Thread Jason Wong
On Sunday 31 March 2002 22:41, Denis L. Menezes wrote: > Hello friends, > > can anyone give me the links to websites who have instructions on > developing interactive webiste using MySQL and PHP? > > I have 2 books, but I need to know some things which are not in these > books. Have you tried goo

[PHP] APACHE + SSL + PHP

2002-03-31 Thread Septic Flesh
I download apache 1.3.24 + php 4.1.2 + mod_ssl-2.8.8-1.3.24 $ compile all $install all (not php yet) apache runs ok with or without ssl then compile php and install it.. I get an error cannot load shared library libphp4.so y ? I compile apache -enablemodule-ssl/so what I miss out and I g

[PHP] Re: Changing black to blue (2)

2002-03-31 Thread Hugh Bothwell
> I have a map of the world with all countries. I have > 250 maps of the same size as png where only one > country is black, rest is transp. > Now I neeed to set this country color to blue or red > to indicate a special spot. > I just don't want to save the same map double or tripple. Good! Make

Re: [PHP] Postgres question

2002-03-31 Thread Thalis A. Kalfigopoulos
There is a utiliti under contrib/ called oid2name which returns the name of the object given its oid. This will probably help you locate which directories correspond to which database. cheers, --thalis On Sat, 30 Mar 2002, Robert Abbate wrote: > Greetings to all! > > I have a webhosting com

[PHP] Websites on help for building PHP database sites

2002-03-31 Thread Denis L. Menezes
Hello friends, can anyone give me the links to websites who have instructions on developing interactive webiste using MySQL and PHP? I have 2 books, but I need to know some things which are not in these books. Thanks denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] fetching a parameter from url like on php.net A mirarcle?

2002-03-31 Thread Andy
thanx "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ErrorDocument 404 your_script.php > > then in your_script.php look at $REQUEST_URI > > Or stick a phpinfo() call there initially to see what is set. > > -Rasmus > > On Sun, 31 Mar 200

[PHP] PHP / cgiwrap - weird problem

2002-03-31 Thread Frank
Dear List, I have been using cgiwrap for many years, always with the .php extension added like an AddType like this. httpd.conf: Action application/php-script /cgi-bin/php.cgi AddHandler application/php-script .php4 .php3 .php Works perfectly. But in this case I don't want t

[PHP] Re: Any easy way to go from MySQL Dates to PHP dates?

2002-03-31 Thread Ernesto
Use strtotime(). $result = mysql_query("SELECT datefield FROM mytable"); $row = mysql_fetch_array($result); $datevar=strtotime($row['datefield']); echo date('m-d-Y', $datevar); Regards, "David Johansen" <[EMAIL PROTECTED]> wrote: > I was just wondering if there's any way to work with dates ret

[PHP] Re: Why?

2002-03-31 Thread Ernesto
Alberto Wagner wrote: > Why everyone uses $foo or $foobar as examples? > > > foo /foo/ 1. interj. Term of disgust. 2 [very common] Used very generally as a sample name for absolutely everything, esp. programs and files (esp. scratch files). 3. First on the list of metasyntactic variables used in

RE: [PHP] fetching a parameter from url like on php.net A mirarcle?

2002-03-31 Thread Rasmus Lerdorf
> I believe this is done with mod_rewrite Nope. Absolutely no reason to incur the wrath of mod_rewrite for something this simple. Just an ErrorDocument entry in your httpd.conf. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fetching a parameter from url like on php.net A mirarcle?

2002-03-31 Thread Rasmus Lerdorf
ErrorDocument 404 your_script.php then in your_script.php look at $REQUEST_URI Or stick a phpinfo() call there initially to see what is set. -Rasmus On Sun, 31 Mar 2002, Andy wrote: > Hi there, > > I am wondering how to get a parameter from url like on php.net Example: > php.net/functionname

[PHP] FREE HOSTING

2002-03-31 Thread Dani
Hi, I'm just wondering if anybody know if there is a free web hosting with MYSQL and PHP. I don't need a hugh space. mya be I need only 50Meg (for practise my PHP) thanks! regards, Dani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] fetching a parameter from url like on php.net A mirarcle?

2002-03-31 Thread Demitrious S. Kelly
I believe this is done with mod_rewrite -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: [PHP] fetching a parameter from url like on php.net A mirarcle? Hi there, I am wondering how to get a parameter from url

[PHP] fetching a parameter from url like on php.net A mirarcle?

2002-03-31 Thread Andy
Hi there, I am wondering how to get a parameter from url like on php.net Example: php.net/functionname I guess this is a server config isn't it? The server would otherwise asume this is a file and return a 404 error. How could I tell the server to run index.php if the file name is not on the ser

[PHP] Re: Php.ini

2002-03-31 Thread jtjohnston
Once upon a time on another (Windows) server I could place a php.ini in a directory and it would choose that one first before it defaulted to c:\windows\php.ini. It doesn't work on my Apache server today, but who knows? Chris Kay wrote: > Question I have is, > > Is it possible to specify a php.i

[PHP] HTML Question

2002-03-31 Thread jtjohnston
I suppse this is an HTML question more than PHP. I have a server elsewhere that does not have PHP accessible. Stupid & cheap of them, but true. I want to display a page within a page, WITHOUT using which won't work. I tried stuff like: http://www.somewhere.ca/test.php"; frameborder="no" border=

[PHP] Changing black to blue (2)

2002-03-31 Thread Andy
Hi there, I know I already posted this prob 2 days ago, but I am still stuck. What I tryed is to use imagefill what BvR suggested, but the problem is, that I would need to know where the black part is to set the start pixel color. This is not possible. Also Hugh was asking why I do not do this in