[PHP] Re: OO Programming - get practical

2002-07-23 Thread Paul Dionne
Thanks Richard, actually your comments really help. As I said to a few others who replied directly, I feel like it is something I ought to be doing. But most of my development is small-scale and I work alone. There is no "external" pressure to do so. Furthermore, I fear that if I were to u

[PHP] Re: Question about using if elseif ...

2002-07-23 Thread Fargo Lee
Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Inserting Processed Data from One Table 2 Another!

2002-07-23 Thread Thomas Edison Jr.
Ok i have simple issue, i'm stuck at one point. I have a table "Clientdetails" which contains ClientID. I have created another table "Authentication" with 2 fields, "ClientID" and "Password". I want to pick up the ClientID from table "Clientdetails" and insert "ClientID" and a Password i have ge

[PHP] probelm : delete files using PHP

2002-07-23 Thread umesh
Hi Gurus, I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux. I want to delete files in a directory,which were created 15 days back. I can not do it, with PHP filesystem and directory functions, as PHP runs as "nobody" user. Can anybody pls. help me ? Thanking you all in anticipatio

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Dave at Sinewaves.net
Here's the URL for mod_layout if anybody's interested... http://software.tangent.org/projects.pl?view=mod_layout It's powerful, but just a little heftier than what I want. Since all I need is .html and .htm support, I think I'm just going to end up modifying my http.conf - I'd rather mess with

Re: [PHP] Newman and sessions.

2002-07-23 Thread Justin French
on 24/07/02 4:04 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote: > so how would i get the $username and $password into the session > > session_register('$username','$password'); READ THE MANUAL php.net/session_register tells you EVERYTHING you need to know, including examples and user cont

Re: [PHP] Re: Newman and his session management.

2002-07-23 Thread Justin French
on 24/07/02 3:38 PM, David Robley ([EMAIL PROTECTED]) wrote: > In article <004c01c232d3$9a600ef0$0401a8c0@philip>, [EMAIL PROTECTED] > says... >> I have started a session on the server, and now would like to add a user >> name and password, and some other information to the session to carry it >>

Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Justin French
on 24/07/02 2:00 PM, Dave at Sinewaves.net ([EMAIL PROTECTED]) wrote: > That works fine for files with .php extensions, but I need something to add > code to html pages as well... Any ideas??? Well, this IS a php list :P If you have control over the apache config, you can specify all .html fil

Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Jason Wong
On Wednesday 24 July 2002 12:07, Dave at Sinewaves.net wrote: > I think you may have it on that one! You get the gold star! :) > > Thanks for the help -- I probably would have banged my head against my > keyboard for another week or so before I thought of that! Or you can use something called mo

Re: [PHP] Newman and sessions.

2002-07-23 Thread Philip J. Newman
so how would i get the $username and $password into the session session_register('$username','$password'); ?? - Original Message - From: "Wee Keat" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 5:43 PM Subject: Re: [PHP] Newman and session

Re: [PHP] PHP creating table for HTML layout

2002-07-23 Thread Briggsy
Thanks to all those who replied here and directly. I have realised PHP isn't going to do what I want and have gone back to researching using CSS and float tags. Thanks for all the suggestions. Shane "Martin Clifford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

RE: [PHP] How do you make a directory

2002-07-23 Thread Roger Lewis
On Wednesday 24 July 2002 11:12, Roger Lewis wrote: > I'm trying to learn to create a directory in php, and from everything I've > read I created this simple test that I put into the file add_user_dir.php. > Unfortunately I can't get it to work. I am getting the error message: > > Warning: MkDir

Re: [PHP] Oracle persistent connection limit

2002-07-23 Thread Thies C. Arntzen
On Tue, Jul 23, 2002 at 11:39:20AM -0700, Eric Thelin wrote: > That is what I figured. The problem is that oracle doesn't even seem to > have per-process limits. the oci-driver will only open one server-connection per TNS-name/process. so if you use $a = ociplogon("scott", "ti

Re: [PHP] secure sockets

2002-07-23 Thread Josh Levine
Mike Mannakee wrote: > > I have not done this but have studied enough tcp/ip to know that ssl is not > a protocol. The opening portion would refer to your protocol, like http or > ftp. One would access via ssl using https://, not ssl:// Try that. According to the docs, 4.3.0 will support such

[PHP] Re: secure sockets

2002-07-23 Thread Josh Levine
Richard Lynch wrote: > > >Here's some sample code: > > > > > $hostname = 'ssl://155.246.211.23'; > > You have to be running PHP 4.3.0 (IE, CVS or snapshot) to use 'ssl://' with > fsockopen, according to the manual. > > You may have to use cURL for now, or develop in 4.3.0 and deploy when it's >

[PHP] Newman and sessions.

2002-07-23 Thread Philip J. Newman
I have started a session on the server, and now would like to add a user name and password, and some other information to the session to carry it across all the other pages that are in this session. Any hints on where to start? --- Philip J. Newman. PhilipNZ.com Design Solutions http://www.phili

[PHP] Re: Newman and his session management.

2002-07-23 Thread David Robley
In article <004c01c232d3$9a600ef0$0401a8c0@philip>, [EMAIL PROTECTED] says... > I have started a session on the server, and now would like to add a user > name and password, and some other information to the session to carry it > across all the other pages that are in this session. Any hints on

RE: [PHP] install to unix... hastles

2002-07-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > > Hiya, > > > > > > > > I'm new to installing php onto unix i can get the ./configure > > > > command to run > > > > with out error (well any that are obvious) > > > > but when i do the make it comes up with > > > > > > > > # make > >

[PHP] Newman and his session management.

2002-07-23 Thread Philip J. Newman
I have started a session on the server, and now would like to add a user name and password, and some other information to the session to carry it across all the other pages that are in this session. Any hints on where to start? --- Philip J. Newman. PhilipNZ.com Design Solutions http://www.p

RE: [PHP] install to unix... hastles

2002-07-23 Thread Peter
> > Hiya, > > > > > > I'm new to installing php onto unix i can get the ./configure > > > command to run > > > with out error (well any that are obvious) > > > but when i do the make it comes up with > > > > > > # make > > > Making all in Zend > > > make[1]: Entering directory `/usr/local/php-4.2

[PHP] Spambot Defense Code

2002-07-23 Thread Jason Soza
Worked on this a bit tonight, thought it might help someone out there! I looked at the bottomw of phpclasses.org at what they'd done to obfuscate their e-mail address using JavaScript. While theirs is much more complex, I couldn't figure a way to do it their way when you don't know the exact user@

RE: [PHP] install to unix... hastles

2002-07-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > sorry forgot to say that I've tried to locate the unix.h file in other > distribs etc but wif no luck > > > -Original Message- > > From: Peter [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 24 July 2002 12:33 PM > > To: php_gen

Re: [PHP] Re: How to add new user to the domain

2002-07-23 Thread Jason Reid
http://www.mricon.com/SM/guide he has a tutorial (for both redhat, and freebsd) that details exactly howto setup a full mail server, using virtual domains/users. step by step. should be what is needed here. I use it personally for my servers. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.ac

Re: [PHP] Re: MySQL - PHP combined log

2002-07-23 Thread Richard Lynch
> >>>how about this curve... getting PHP to append a line to the apache log. >> >>How about reading the documentation? > >Deserved that for not being clear enough... see below. My apologies if I missed the word "access log" or even assumed you meant "error log" when you just said "log."I sho

[PHP] Installing PHP 4.2.1 troubles on Solaris

2002-07-23 Thread Peter
hi am getting this error # make Making all in Zend make[1]: Entering directory `/usr/local/php-4.2.1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -I../TSRM -g -O2 -prefer-non-pic -static -c -o zend_language_parser.lo `test -

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-23 Thread Jason Soza
I must be dumb because I still can't get it to work. Using the following instead of my previous preg_match_all statement: preg_match_all("|(.*)|i", $contents, $out); Gives me only the -last- 3 headlines on http://www.kinyradio.com/juneaunews/latest_juneau_news.html. I've looked at the source and

Re: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread Andre Dubuc
Simply wonderful news:> But again, for design work, it isn't worth the trouble. I'm using SESSION variables $_POST, $_SESSION, and as long as they don't change, there's little point upgrading until the site is on-line. However, I will inform my IP to use all the latest versions. I'm running L

Re: [PHP] Credit card checks?

2002-07-23 Thread Analysis & Solutions
On Tue, Jul 23, 2002 at 11:17:19AM -0700, Richard Baskett wrote: > > http://www.AnalysisAndSolutions.com/code/ccvs-ph.htm Rick, thanks for the plug. Allow me to plug it further... I updated that page just this minute. So, whomever looked at it in the past (prior to 12:00 am 24 July 2002 EST)

[PHP] Re: Mail programme that uses .htpasswd to verify username/password

2002-07-23 Thread Richard Lynch
>Does anyone know of such a programme? Untested code: \n"; } elseif (crypt($PHP_AUTH_PW, $passwords[$HTTP_AUTH_USER]) != $HTTP_AUTH_PW){ echo "Invalid Password\n"; } else{ # Continue script here. } ?> -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY

[PHP] Re: Getting the day if given a date

2002-07-23 Thread Richard Lynch
>Is there any way to get the day of the week given a date. > >For example if the date is the 22nd July 2003 I want to know if it will be a >Monday or Wednesday, etc.. > >Any help appreciated. http://php.net/date/ Also look at the strfromtime or whatever the heck it is. -- Like Music? http://l

[PHP] Re: What is a mysql link ressource

2002-07-23 Thread Richard Lynch
>and i never see any copy.) My only guess is that a mysql_link resssource is >also an object and gets copied or lost somewhere in the middle. In the old days, a MySQL link resource was just an integer. It is now a 'Resource' type internal to PHP. I don't *think* it will get copied on assignment

[PHP] Re: Errors with 4.2.2

2002-07-23 Thread Richard Lynch
>I have been running 4.1.1 due to any time I upgraded to 4.2.0 I would >get emalloc errors. Now that this upgrade to 4.2.2 I am getting the same >errors and this is a must upgrade. If any one can help with finding out >why I am getting these errors I would appreciate it. > > >[This is from my erro

[PHP] Re: secure sockets

2002-07-23 Thread Richard Lynch
>I'm trying to connect to a Java application that's listening on a socket >using SSL. I am trying to use fsockopen with the address beginning with >ssl://, but it doesn't work. There's no error message that I can find, >it just doesn't create the file-handler. > >Here's some sample code: > > $ho

[PHP] Re: Certificate information using php?

2002-07-23 Thread Richard Lynch
>I have a challenging part to this project. Let's say the PHP webserver >establish a connection to a different website and received the ssl >connection from there. How do I get the certificate information from that >website and display it? I can use print_r($GLOBALS) but it only display the >ce

[PHP] Re: Oracle persistent connection limit

2002-07-23 Thread Richard Lynch
>Is there a way to limit the total number of persistent connection to an >oracle database? I know this functionality exists for MySQL through a >setting in the php.ini but I haven't found it for oracle. I am in an >environment where we have about 10 users that connect to oracle from >each of 10

[PHP] Re: Help installing Apache please

2002-07-23 Thread Richard Lynch
>Hi, >Someone please tell me how to install apache on redhat >linux. Download the web-server that is named apache-1.3.xx (highest xx) and ends in .tar.gz from: http://apache.org/ Save it in /usr/src or somewhere convenient. cd to that directory: cd /usr/src Untar it: tar -xzf apache-1.3.xx.tar

[PHP] Re: Apache 2 support broken?

2002-07-23 Thread Richard Lynch
>With php 4.2.2 I get this when trying to compile with apache 2 support: > >I grabbed a CVS version of PHP and during configure it lets me know that I >need apache 2.0.40 -- since the latest release of Apache 2 is 2.0.39 I'm not >sure what to do there.. Does that mean the latest apache 2 devel sou

[PHP] Re: [ANNOUNCE] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and4.2.1

2002-07-23 Thread Richard Lynch
>Very cute! "Upgrade Now!" It will work well with PHP newbies. Not! If you are on Windoze, just download and run the installer or whatever you did last time that actually worked, as much as anything on Windoze works. If on Un*x: Download 4.2.2 from http://php.net and save it in /usr/src or

[PHP] Re: PHP 4.2.2 release problems

2002-07-23 Thread Richard Lynch
>After my host recently upgraded to the latest version after reading the >recent advisory I have got an error that won't load one of my php pages and >I can't see why not. Here's the error I get - > >Warning: Failed opening '' for inclusion >(include_path='.:/usr/lib/apache/php') in /home/sites/si

[PHP] Re: XML vs. PHP manual???

2002-07-23 Thread Richard Lynch
>I read the useful document about XML in PHP on >http://www.analysisandsolutions.com/code/phpxml.html. I still haven't made >much progress on XML. I'm still confuse about XML. I had to write XML >stuffs on the client-side with the build-in XML request and it doesn't make >sense that the client

[PHP] Re: Using PHP with MySQL - Can I supress MySQL errors?

2002-07-23 Thread Richard Lynch
>Hi, > >I'm using PHP to connect and perform queries with a MySQL database. I've >noticed that it there is an error performing certain >commands like 'mysql_connect()', I'll get a warning message in the browser. > >I'd like to suppress these messages as I am storing the error, >mysql_error(), i

[PHP] Re: control structure question

2002-07-23 Thread Richard Lynch
>is there a more programmatically elegant way of saying... One option would be to just exit; when you get an error if the rest of the script isn't going to execute and send out some closing tags you need anyway. Future versions of PHP might have a try/catch mechanism, but that doesn't help you r

[PHP] Re: need some help on stratagy... (php/mysql/javascript)

2002-07-23 Thread Richard Lynch
>I have an embedded object in my webpage which will play a DVD movie right in >the page (provided you have a disc in teh dvdrom drive). One of the >javascript methods attached to this object returns the current time. OK, on >to the php/mysql part. I have a mysql database which has a table to ca

[PHP] Re: Where to set return-path for virtualhosts

2002-07-23 Thread Richard Lynch
>I saw a comment in the online docs about setting the return-path for >sendmail for virtualhosts. However, the note did not say WHERE to put the >line - I attempted to put it into apache's virtual host tag and that failed. >The line was: > >php_admin_value return-path "/usr/sbin/sendmail -t -i -f

[PHP] Re: Script Testing Portal Connections...

2002-07-23 Thread Richard Lynch
>#!/usr/local/bin/php -q >// don't timeout! >set_time_limit(0); > >// set some variables >$host = "1.2.3.4..."; >$port = 1234; >$command = "/usr/games/fortune"; # I must be missing something, cuz I don't see where this $command is used... >// create socket >$socket = socket(AF_INET, SOCK_STREAM,

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-23 Thread Richard Lynch
>Well, I'm not sure about the 'you get what you pay for'. Some paid for >software has less support and documentation than PHP! In my experience, *ALL* paid-for software has less support and documentation than PHP. This is excluding support contracts for software you paid for -- Once you pay Orac

[PHP] Re: PHP input and variables dynamic :)

2002-07-23 Thread Richard Lynch
> > >onclick = "document.all['tree'].status[].value='expand'; No matter what you do, JavaScript will *NEVER* accept the [ or ] character as part of a field's NAME. Those are RESERVED keys in JavaScript. You'll have to refer to the INPUT by NUMBER, rather htan name. onClick = "document.all.tre

[PHP] Re: How to add new user to the domain

2002-07-23 Thread Richard Lynch
>Any one please let me know how to use PHP to add new user to a domain for >using mail (sendmail). You mean like a *REAL* user with a login and everything? Yikes! DANGER, WILL ROBINSON DANGER! You *REALLY* shouldn't do this unless you *REALLY* understand Un*x permissions and system security.

[PHP] Re: OO Programming - get practical

2002-07-23 Thread Richard Lynch
>I want to point something out to aspiring authors. The truth is, that few >books and web pages out there show examples using OO methods. For example, >the book I use as my primary reference has one chapter on OO PHP and that >is it. The rest of the examples in the book are in regular functi

[PHP] Re: redirecting after login

2002-07-23 Thread Richard Lynch
>I've got the login part working perfectly, and I can turn the URL into a >link on the page, but I'd rather have the script just automatically forward >the person to the page they're login gives them access to. > >I've tried using header(), but since the redirection takes place about >mid-scrip

[PHP] Re: number of files in a dir vs. performace

2002-07-23 Thread Richard Lynch
>I'm using mysql to hold references to image files then served on my pages >via PHP. > >I have typically a set of two files: > >thumb and a large original, on occasion there is also a variant inreasing >the set to 3 per image > >currently I am holding all of the files in 1 directory since the DB

[PHP] Re: returning form variables to previous page

2002-07-23 Thread Richard Lynch
>hi i am trying to implement error handling in a join page, i would like to >try and use one page if possible and then go through in steps like ?step=1 >etc , i would like to be able to return form variables to the previous step >if there is an error, how could i do this ? Honestly, I've always f

[PHP] Re: How to store an image into a mysql database using php language?

2002-07-23 Thread Richard Lynch
>I want to store image data into mysql table using BLOB Why? It's just going to clog up your database, increase the risk of your database self-destructing, and you can't *DO* anything with the data in that blob. Unless you're actually de-constructing the image pixels with SQL and doing photo co

[PHP] Re: Simple question I guess.

2002-07-23 Thread Richard Lynch
>I have a site with all my movies and stuff stored in a database. And I have >made a admin page where I can add, delete and update records. When I add new >records, I have made a listbox for the category (ex. action, comedy etc.) so >I dont have to write it every time I add a new record. But when

[PHP] Re: Headers already sent (Sometimes)

2002-07-23 Thread Richard Lynch
>Im getting Warnings about headers being already sent. But not on my local >web server > >Im sending the headers (to try and make the page not cache) before anything >is echoed to the browser. Somebody somewhere is sending *SOMETHING* to the browser -- possibly a NEWLINE at the tail end of one of

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Dave at Sinewaves.net
I think you may have it on that one! You get the gold star! :) Thanks for the help -- I probably would have banged my head against my keyboard for another week or so before I thought of that! Dave -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 200

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Cal Evans
Tell apache that .html files are to be served through php * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 11:00 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Banner Ad Servi

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Dave at Sinewaves.net
That works fine for files with .php extensions, but I need something to add code to html pages as well... Any ideas??? Dave -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 8:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Banner Ad Serving...

Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Jason Wong
On Wednesday 24 July 2002 11:47, Dave at Sinewaves.net wrote: > Is there any way of automatically adding a certain bit of code to every > page on a web server (or within a given directory)? php.ini --> auto_prepend_file, auto_append_file -- Jason Wong -> Gremlins Associates -> www.gremlins.com.

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Martin Towell
use the auto_append or auto_prepend directives in the php.ini file -Original Message- From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:48 PM To: PHPlist Subject: [PHP] Banner Ad Serving... Is there any way of automatically adding a certain bit of c

[PHP] Banner Ad Serving...

2002-07-23 Thread Dave at Sinewaves.net
Is there any way of automatically adding a certain bit of code to every page on a web server (or within a given directory)? As in, is there any kind of Apache-specific PHP stuff that will add a banner ad or copyright notice to pages (without editing the actual pages themselves and without changin

Re: [PHP] Accessing upper directory of public_html directory

2002-07-23 Thread Justin French
If they don't allow you to store the file outside (above) the public_html directory, then you may want to try the following: - name your password files with .inc extension - a .htaccess file (assuming apache) to Deny all requests for *.inc files from the server This means that any file you name

Re: [PHP] MySQL Backup and Restore

2002-07-23 Thread Justin French
Can highly recommend doing it (and a whole lot more) with phpMyAdmin (http://phpMyAdmin.net) Justin French on 24/07/02 1:04 PM, Peter ([EMAIL PROTECTED]) wrote: > grab ur self a copy of myphpadmin or use mysqldump or just simply make a > copy of the data dir or grab ur self a copy of mysql_

Re: [PHP] How do you make a directory

2002-07-23 Thread Tech Support
How about a trailing slash after the directory name ;-) like this: $dirpath = "/home/sites/home/users/demodocs/web/userforum/" . $username; you had: $dirpath = "/home/sites/home/users/demodocs/web/userforum" . $username; which would try to create a new directory inside the web directory. die("$

Re: [PHP] How do you make a directory

2002-07-23 Thread Jason Wong
On Wednesday 24 July 2002 11:12, Roger Lewis wrote: > I'm trying to learn to create a directory in php, and from everything I've > read I created this simple test that I put into the file add_user_dir.php. > Unfortunately I can't get it to work. I am getting the error message: > > Warning: MkDir

RE: [PHP] Accessing upper directory of public_html directory

2002-07-23 Thread John Holmes
> I bought a web host service from a company named easyspace.com. I have > tried to ask them this question many times but until now there is no > response from them at all. > According to the security issue of placing password in script I brought > up > days ago, some one on this news group sug

[PHP] How do you make a directory

2002-07-23 Thread Roger Lewis
I'm trying to learn to create a directory in php, and from everything I've read I created this simple test that I put into the file add_user_dir.php. Unfortunately I can't get it to work. I am getting the error message: Warning: MkDir failed (Permission denied) in /home/sites/home/users/demo/web

RE: [PHP] MySQL Backup and Restore

2002-07-23 Thread John Holmes
Second the MySQL Front recommendation. That's one heck of a tool that makes things really easy. Otherwise, use mysqldump like Peter recommended. To dump the databases, use this from the system prompt: mysqldump -uuser -ppassword database_name > filename.sql To import, create the database and u

RE: [PHP] Re: Formating datevariables...

2002-07-23 Thread John Holmes
> Sure using MySQL specific calls is faster but makes you more dependant > on MySQL and thus makes your application less portable to other databases. > > Cameron Of course. It depends on your application. I know I'm only going to use MySQL for the programs I'm doing now, so I can use this _faste

[PHP] Accessing upper directory of public_html directory

2002-07-23 Thread Sailom
I bought a web host service from a company named easyspace.com. I have tried to ask them this question many times but until now there is no response from them at all. According to the security issue of placing password in script I brought up days ago, some one on this news group suggested me to

RE: [PHP] MySQL Backup and Restore

2002-07-23 Thread Peter
grab ur self a copy of myphpadmin or use mysqldump or just simply make a copy of the data dir or grab ur self a copy of mysql_front > -Original Message- > From: kip [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 24 July 2002 12:58 PM > To: [EMAIL PROTECTED] > Subject: [PHP] MySQL Backup a

Re: [PHP] Errors with 4.2.2

2002-07-23 Thread Jason Wong
On Wednesday 24 July 2002 06:24, Brian Paulson wrote: > I have been running 4.1.1 due to any time I upgraded to 4.2.0 I would > get emalloc errors. Now that this upgrade to 4.2.2 I am getting the same > errors and this is a must upgrade. Why is it a 'must' upgrade? The recently announced vulnerab

[PHP] MySQL Backup and Restore

2002-07-23 Thread kip
Hi, Can you tell me the steps of backup and restore the databases in Mysql? And can i specific a path for the backup file? Futhermore, i have installed the MySQL in Win2000 but i don't know how to restore the database of MySQL from a Linux server to Win2000 MySQL. Thanks -- PHP General Mai

Re: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread Evan Nemerson
Yeah. Apache is vulneralbe to a buffer overflow in the chunked-encoding, and PHP has (i think) a buffer overflow in the multipart/form-data POST form handling. It might be a format string though... that just came out this week. yesterday, i think. For dev you might want to consider using the C

Re: [PHP] Re: Formating datevariables...

2002-07-23 Thread Cameron McKay
Sure using MySQL specific calls is faster but makes you more dependant on MySQL and thus makes your application less portable to other databases. Cameron John Holmes wrote: > > > Did you even read the replies? Why are you going to do a bunch of string > manipulation, mktime, and date calls i

[PHP] RE: Sorting db Entries by Year-Month -- Solved

2002-07-23 Thread Andre Dubuc
Thanks to BigDog and John Holmes for their suggestions. I figured it out: it was rather easy, in hindsight, of course: Works as expected. Regards, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] install to unix... hastles

2002-07-23 Thread Peter
sorry forgot to say that I've tried to locate the unix.h file in other distribs etc but wif no luck > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 24 July 2002 12:33 PM > To: php_gen > Subject: [PHP] install to unix... hastles > > > Hiya, > > I'm new to i

[PHP] install to unix... hastles

2002-07-23 Thread Peter
Hiya, I'm new to installing php onto unix i can get the ./configure command to run with out error (well any that are obvious) but when i do the make it comes up with # make Making all in Zend make[1]: Entering directory `/usr/local/php-4.2.1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -

RE: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread John Holmes
> further research indicates that for PG I could trysomething like: > > SELECT EXTRACT(MONTH FROM TIMESTAMP) I'm sure there is a NOW() or TIME() function in PG that returns the current date/time. Then you could do this: SELECT * FROM your_table WHERE EXTRACT(MONTH FROM your_column) = EXTRACT(MO

Re: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread Andre Dubuc
Hi John, further research indicates that for PG I could trysomething like: SELECT EXTRACT(MONTH FROM TIMESTAMP) Big John has offered some advice using: $today = getdate();  $start = $today['year'] . '-' . $today['mon'] . '-' . '01';  $end  =  $today['year'] . '-' . $today['mon'] . '-' . '31'

Re: [PHP] Re: Credit card checks?

2002-07-23 Thread Matt
From: "Mark McCulligh" <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 8:47 PM Subject: [PHP] Re: Credit card checks? > You could use an algorithms called mod10. Mod 10 catches keying errors. It's use is to prevent digits from being swapped. So if you key 133791 instead of 137391, the mod 1

RE: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread John Holmes
Isn't there a MONTH function in PG? SELECT * FROM your_table WHERE MONTH(NOW()) = MONTH(your_column) ?? Or if PG stores dates in the Unix timestamp format, is the an equivalent to date() that you can extract the month from the column and compare them?? ---John Holmes... > -Original Message

RE: [PHP] Re: Formating datevariables...

2002-07-23 Thread John Holmes
> Thanx for the help.. > > I ended up with this solution ;) > > $dag = substr ( $row['endret_dato'], 7, 2 ); > $mnd = substr ( $row['endret_dato'], 4, 2 ); > $aar = substr ( $row['endret_dato'], 0, 4 ); > > date ("dmY", mktime(0,0,0,$mnd,$dag,$aar) ) Did you even read the replies? Why are you

Re: [PHP] PHP creating table for HTML layout

2002-07-23 Thread Justin French
PHP can't help here -- you should do a search on the web for "liquid" website designs, or check out / borrow some code from other sites you've seen work. Although not valid, I've seen height="100%" work on 1000's of sites. Combined with a CSS statement, you should be able to cover all browsers.

Re: [PHP] secure sockets

2002-07-23 Thread Mike Mannakee
I have not done this but have studied enough tcp/ip to know that ssl is not a protocol. The opening portion would refer to your protocol, like http or ftp. One would access via ssl using https://, not ssl:// Try that. Curl would be your other option, and that should work just fine for most use

[PHP] Re: PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > I tried to upgrade from PHP 4.2.1 to 4.2.2 due to the security bug > announce in the web site. When I do make install, it stopped with > errors. The following are the last few lines from the output: > > [activating module `php4' in /

[PHP] Re: Question to 'DIR'

2002-07-23 Thread David Robley
In article <000801c231e3$414d08e0$7897fea9@N4N8U9>, [EMAIL PROTECTED] says... > It´s a silly question, but how can I create a directory on web? > > Using PHP? mkdir() is the function - but beware that the user your web server runs as may not have permissions to create directories in some place

[PHP] Mail programme that uses .htpasswd to verify username/password

2002-07-23 Thread The Doctor
Does anyone know of such a programme? -- Member - Liberal International On 11 Sept 2001 the WORLD was violated. This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] Society MUST be saved! Extremists must dissolve. Beware of defining as intelligent only those who share your opinions -- PHP

Re: [PHP] secure sockets

2002-07-23 Thread Josh Levine
The docs for fsockopen() say I should use ssl:// (the docs for fopen() say to use https:// for a secure HTTP 1.0, which I don't want). I can go ahead and try it, though... --Josh Levine Peter wrote: > > josh just a query did u try it with https:// rather than ssl:// ? > > > -Original Mes

Re: [PHP] Re: Credit card checks?

2002-07-23 Thread Mark McCulligh
There is a credit card validating class on phpclasses.org under e-commerce. "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF5034CFBAF@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF5034CFBAF@EXCHANGE... > Try this: > > function do_mod_10($num) > { > /

RE: [PHP] Re: Credit card checks?

2002-07-23 Thread Martin Towell
Try this: function do_mod_10($num) { // The Luhn formula works right to left, so reverse the number. $num = strrev($num); $total = 0; for ($i = 0, $j = 1; $i < strlen($num); $i++, $j=3-$j) { $digit = $num[$i] * $j; if ($digit > 9) $digit -= 9; $total +=

Re: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread Andre Dubuc
Well, that would be nice! Sort of 'completes-my-day' :> So, both are vulnerable, eh? Great. Thanks for the warning -- but I'm using them for design only. Once the site is on-line, I'll be sure to use the upgraded versions. From what I read on-list, however, the current 'upgrades' have their pro

Re: [PHP] Sorting db entries by Year-Month

2002-07-23 Thread Evan Nemerson
What do you guys think? Should we tell him he's running a vulnerable version of PHP _and_ of Apache??? On Tuesday 23 July 2002 16:26 pm, Andre Dubuc wrote: > Apache 1.3.23 + PHP 4.1.2 + PostgreSQl 7.2 > > I have a guestbook that I would like to display the current month's > entries. I can disp

[PHP] Re: Credit card checks?

2002-07-23 Thread Mark McCulligh
You could use an algorithms called mod10. Both Visa, MasterCard and I think most other credit cards use the mod10 algorithm. A credit card must pass a mod10 test to be a valid number(Like a Regular Expression test). It won't tell you if the number exist, but it will tell you if it could exist.

Re: [PHP] secure sockets

2002-07-23 Thread Evan Nemerson
Patrick is right in that you can use CURL to do this, but as of PHP 4.3.0, you can use https:// if you have compiled in OpenSSL support. On Tuesday 23 July 2002 11:56 am, Josh Levine wrote: > I'm trying to connect to a Java application that's listening on a socket > using SSL. I am trying to

[PHP] Compiling PHP on Linux

2002-07-23 Thread Osman Omar
Hi I try to compile php and got error message any idea? system: Redhat 7.2 Apache 2.0.39 (for redhat 7.0 from apache website) php 4.2.2 error messages --- /bin/sh /usr/tmp/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/usr/tmp/php-4.2.2/sapi/apache2filter -I/usr/tmp/php-4

[PHP] Re: Formating datevariables...

2002-07-23 Thread Ragnar
Thanx for the help.. I ended up with this solution ;) $dag = substr ( $row['endret_dato'], 7, 2 ); $mnd = substr ( $row['endret_dato'], 4, 2 ); $aar = substr ( $row['endret_dato'], 0, 4 ); date ("dmY", mktime(0,0,0,$mnd,$dag,$aar) ) -R "Ragnar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROT

RE: [PHP] secure sockets

2002-07-23 Thread Peter
josh just a query did u try it with https:// rather than ssl:// ? > -Original Message- > From: Josh Levine [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 24 July 2002 9:53 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] secure sockets > > > Thanks for the pointer! I had looked at it, but

Re: [PHP] secure sockets

2002-07-23 Thread Josh Levine
Thanks for the pointer! I had looked at it, but didn't see too much information on using CURL with a telnet type application. I'll take a closer look at it. --Josh Levine Patrick Lynch wrote: > > Hi Josh, > > I have not done this myself but afaik, you can use curl to so this. > http://www.p

RE: [PHP] GD Library for Windows

2002-07-23 Thread Peter
Jadiel, i do that the file ur after and tried sending it to u but ur server rejected it. > -Original Message- > From: Jadiel Flores [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 24 July 2002 9:03 AM > To: [EMAIL PROTECTED] > Subject: [PHP] GD Library for Windows > > > I'm trying to devel

  1   2   3   >