Re: [PHP] variable question

2002-04-15 Thread Jason Wong
On Tuesday 16 April 2002 00:41, Jule Slootbeek wrote: Hey Guys and Gals, I'm writing this little script that takes two inputs: $name and $welcomemssg from a form and puts them in a text file. Now i only want to extract one of those variables open it with welcome.php, how do i go about this?

[PHP] chown ..opperation not permitted

2002-04-15 Thread John Weez
Hi all, My config is Apache 1.3 with PhP4 loaded as a module. I have a script which makes a directory. This directory is owned by nobody.nobody because that is what apache runs as. But, I want this directory to be owned by a differrent user. So, After making the directory i use the php

RE: [PHP] variable question

2002-04-15 Thread David McInnis
You would need to read in the line and explode the line into an array using explode(). How you do this depends on how you wrote the variables to a file. If you separated them using a , you could use $values = explode(,, $inputstring); see also: http://www.php.net/manual/en/function.explode.php

Re: [PHP] Detecting language

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 02:43 PM, Boaz Yahav wrote: I have an application that works with two languages. I'm trying to write a function that will tell me if a string contains only English or also chars from the other language. It's enough that there is one char of a different

[PHP] Copy image from a website to another?

2002-04-15 Thread Lic. Carlos A. Triana Torres
Hello all, I am learning php and I am trying to make a very simple script so as to download a jpg from one site I manage to another that I also manage. It would be, get a jpg from http://www.first_site.com/image.jpg and put in to http://www.second_site.com/image.jpg. I have tried this, but

RE: [PHP] Detecting language

2002-04-15 Thread Boaz Yahav
In case anyone is interested Function IsHebrew($string) { If(ereg('[?-?]',$string,$regs)) { EchoHebrew; }Else{ EchoEnglish; } } Not everyone can see the [?-?]. In any case this can be good for any language berber -Original

[PHP] XML Flatfile Database

2002-04-15 Thread Sebastian A.
Recently I have caught on to XML, and I think it truly is a good idea. Because XML was *made* to store data I believe an XML flatfile database is (perhaps) one of the best ways to store data because it can be easily exchanged. Therefore I would like to embark on the feat of trying to create

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 01:54 PM, John Weez wrote: I have a script which makes a directory. This directory is owned by nobody.nobody because that is what apache runs as. But, I want this directory to be owned by a differrent user. So, After making the directory i use the php

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread John Weez
No, user nobody does not have access to chown command. This is part of my problem i suspect. Erik Price wrote: Are you saying that when you are logged in as nobody, you can execute chown otheruser directoryname? If that is so then PHP, which runs under Apache which runs as nobody,

RE: [PHP] chown ..opperation not permitted

2002-04-15 Thread Darren Gamble
Good day. As you've probably surmised, chown needs to be run as the root user, even if the file or directory in question is owned by the user wanting to make the change. Setting up sudo access should work properly. Ensure that the service is actually running as nobody and not another

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Eugene Lee
On Mon, Apr 15, 2002 at 10:54:51AM -0700, John Weez wrote: : : I have a script which makes a directory. This directory is owned by : nobody.nobody because that is what apache runs as. But, I want this : directory to be owned by a differrent user. So, After making the : directory i use the php

Re: [PHP] variable question

2002-04-15 Thread Jule Slootbeek
Here's my code, teh $welcomemssg is one of the two variable store in index.php the other one is $name ?php $File = welcome/index.php; $Open = fopen ($File, r);

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 02:05 PM, John Weez wrote: No, user nobody does not have access to chown command. This is part of my problem i suspect. So then your chown command's permissions do not allow everyone to execute it? If this is not the standard setup, so I would speak to your

Re: [PHP] chown ..opperation not permitted

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 02:22 PM, Darren Gamble wrote: Setting up sudo access should work properly. Ensure that the service is actually running as nobody and not another unprivileged user. However, it should be mentioned that this is a very, very insecure method! The chown

[PHP] calculating US holidays

2002-04-15 Thread Tom Beidler
I need to calculate the date to see if it's a holiday, i.e. is today presidents day, which happens to be the third monday of february. Can someone point me to some code that can do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What date/time was it 7 hours ago?

2002-04-15 Thread Richard Emery
If you are using mysql, you can perform the calculations in mysql during the SELECT, such as: SELECT date_field - INTERVAL 7 HOUR FROM my_table; - Original Message - On Monday, April 15, 2002, at 09:50 AM, Torkil Johnsen wrote: What date/time was it 7 hours ago? I'm just trying to

Re: [PHP] variable question

2002-04-15 Thread cal
store $name on one line and $welcomemssg on a separate line. Then just remember that all odd numbered liens are names and even numbered lines are messages. =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: Jule Slootbeek [EMAIL PROTECTED] To: [EMAIL

[PHP] eregi() problems...

2002-04-15 Thread jas
// second selection for main image on main page $dir_name = /path/to/images/directory/; $dir = opendir($dir_name); $file_lost .= pFORM METHOD=\post\ ACTION=\done.php3\ NAME=\ad01\ SELECT NAME=\images\; while ($file_names = readdir($dir)) { if ($file_names != . $file_names !=..

[PHP] web spider?

2002-04-15 Thread Ryan Govostes
i was wondering if it would be possible to make a web spider in PHP. they work by download a website, then following all the links on the website to other pages, and then following the links on that page... is this possible in PHP without a whole lot of work? i just want to keep a counter of

Re: [PHP] eregi() problems...

2002-04-15 Thread Robert Cummings
jas wrote: // second selection for main image on main page $dir_name = /path/to/images/directory/; $dir = opendir($dir_name); $file_lost .= pFORM METHOD=\post\ ACTION=\done.php3\ NAME=\ad01\ SELECT NAME=\images\; while ($file_names = readdir($dir)) { if ($file_names != . $file_names

Re: [PHP] calculating US holidays

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 03:17 PM, Tom Beidler wrote: I need to calculate the date to see if it's a holiday, i.e. is today presidents day No, today is Patriot's Day! Not sure if it's celebrated outside of Massachusetts Erik Erik Price Web Developer Temp Media Lab,

Re: [PHP] calculating US holidays

2002-04-15 Thread Tyler Longren
? $month = date(m); $day = date(d); if ($month == 10 $day == 31) { print It's Halloween!; } ? you could do something similar to that. tyler - Original Message - From: Tom Beidler [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, April 15, 2002 2:17 PM Subject: [PHP]

Re: [PHP] calculating US holidays

2002-04-15 Thread Tom Beidler
That's fine for fixed dates, and I have that figured out, but presidents day, memorial day, labor day and thanksgiving fall on different days each year. Presidents day is the third monday of February. How do I calculate that? From: Tyler Longren [EMAIL PROTECTED] Organization: Captain Jack

[PHP] meta tags from mysql

2002-04-15 Thread Andras Kende
Hello All, I looking to to generate different meta tags from mysql for each page on a dynamic site which has about 400 pages from mysql database . Searched around but didnt find anything which will give me some hint whats the best way doing it Any help appreciated :) Thanks, Andras

Re: [PHP] calculating US holidays

2002-04-15 Thread Robert Cummings
He wants the third sunday in february which can't be handled by your code :) since the third sunday could fall on any number of days. The following isn't very optimal but will work (not syntax checked either). $i = 1; while( $i++ = 7 ) { // // First we find the first Sunday in February.

[PHP] Re: meta tags from mysql

2002-04-15 Thread Julio Nobrega Trabalhando
Mysql table with a meta column and a url column: $url = $PHP_SELF; $sql = SELECT meta FROM table WHERE url = '$url'; Just select from the database a meta column depending on the url people are. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que

Re: [PHP] web spider?

2002-04-15 Thread Greg Donald
On Mon, 15 Apr 2002, Ryan Govostes wrote: i was wondering if it would be possible to make a web spider in PHP. they work by download a website, then following all the links on the website to other pages, and then following the links on that page... is this possible in PHP without a whole lot of

[PHP] Confused on Session Register

2002-04-15 Thread Lash, David A (David)
Hi All I was trying to write a PHP session and was confused whether to use session_register or $_SESSION. Anyone know when to use either of these? (Or an interpretation of the following line)? Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is recommended for security and code

Re: [PHP] web spider?

2002-04-15 Thread Andrew Brampton
You most certainly can use PHP to do this. And if i'm not wrong I think there are allready scripts which do this (which wouldn't be too hard to hack up for yourself) Check out hotscripts.com Andrew - Original Message - From: Ryan Govostes [EMAIL PROTECTED] To: PHP People [EMAIL

Re: [PHP] web spider?

2002-04-15 Thread Steve Bissonnette
Ryan, You might want to look into this as a basis for some of your code, http://agent-source.com/sitemapper/ Contains a good ammount of spidering code that's broken down into small functions. ( not that I understand half of it ; ) Good luck -- s t e v e b i s s o n n e t t e [EMAIL

[PHP] Fw: [PHP-DB] Arrays

2002-04-15 Thread Richard Emery
You are getting array because that's what $eventdate is. Now, WHAT do you REALLY want to insert? - Original Message - From: Alex Francis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 15, 2002 3:13 PM Subject: [PHP-DB] Arrays I am trying to insert event dats into a

[PHP] credit card validation

2002-04-15 Thread jas
I need to know if there is one place to get information on creating a credit card validation script based on the users selected payment type (i.e. mastercard, visa, american express, etc.) If anyone knows of a good tutorial or sample of such a function please point me that way. thanks in

Re: [PHP] calculating US holidays

2002-04-15 Thread Steve Cayford
You could port Date::Calc from perl... or just call a perl script to do the calculation. Probably the easiest way to figure out Easter (for the extreme example) that I can think of. -Steve On Monday, April 15, 2002, at 03:05 PM, Tom Beidler wrote: That's fine for fixed dates, and I have

[PHP] peer code review wanted

2002-04-15 Thread Erik Price
Hi, I am just not seeing what is wrong with my code. Can anyone tell me if there is anything wrong with the following function? function set_material_id($material_id) { if (!preg_match('/^\d{1,3}$/', $material_id)) { return false;

[PHP] Re: credit card validation

2002-04-15 Thread phplists
Check out the code section at Zend.com.. There is at least one CCVal function there.. I think two.. I do believe hotscripts.com has some too in their PHP section.. Later, Bob Weaver Jas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need to know if there is

[PHP] Re: PHP Shopping Engine Recommendation

2002-04-15 Thread phplists
http://woodenpickle.com:8080/shop/admin.php login: shopadmin pass: demo Later, Bob Robert Collins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone recommend a good commercial shopping cart written in php? Robert W. Collins II Webmaster New

Re: [PHP] peer code review wanted

2002-04-15 Thread Robert Cummings
Erik Price wrote: Hi, I am just not seeing what is wrong with my code. Can anyone tell me if there is anything wrong with the following function? function set_material_id($material_id) { if (!preg_match('/^\d{1,3}$/', $material_id)) {

Re: [PHP] calculating US holidays

2002-04-15 Thread heinisch
Oh, I love these 32 second answers ;-) Just type it in google and zapp http://php.resourceindex.com/Functions_and_Classes/Date_and_Time/ 1st page, second answer ! G Oliver At 15.04.2002 13:05, you wrote: That's fine for fixed dates, and I have that figured out, but presidents day, memorial

Re: [PHP] peer code review wanted

2002-04-15 Thread Erik Price
On Monday, April 15, 2002, at 04:58 PM, Robert Cummings wrote: Well you don't return true anywhere... default return is false which is what happens if the else statement is reached. EUREKA! Thanks so much Rob! I too busy wondering how the preg_match was failing to notice that I didn't

Re: [PHP] Copy image from a website to another?

2002-04-15 Thread Chris Hewitt
Carlos, I may misunderstand you but surely the easiest way to copy a file from one computer to another is by ftp? Log into a shell on computer 1, ftp to computer 2 and transfer whatever files you want. This may be by a simple script and does not need php (did I say that?). On the other hand,

Re: [PHP] Newbie Question

2002-04-15 Thread Chris Hewitt
Hubert, It may just be the way you typed it in the email but your products.php?tosend = 1 has spaces in it. This will truncate the tosend parameter and give it a null value. HTH Regards Chris Janet Valade wrote: On the browser i have a page in which i select the first button which has a

Re: [PHP] credit card validation

2002-04-15 Thread Analysis Solutions
On Tue, Apr 16, 2002 at 02:41:53AM -0600, jas wrote: I need to know if there is one place to get information on creating a credit card validation script based on the users selected payment type (i.e. mastercard, visa, american express, etc.) I've got the best one out there. Automatically

Re: [PHP] web spider?

2002-04-15 Thread DL Neil
Greg, i was wondering if it would be possible to make a web spider in PHP. they work by download a website, then following all the links on the website to other pages, and then following the links on that page... is this possible in PHP without a whole lot of work? i just want to keep a

Re: [PHP] calculating US holidays OT

2002-04-15 Thread DL Neil
I need to calculate the date to see if it's a holiday, i.e. is today presidents day No, today is Patriot's Day! Not sure if it's celebrated outside of Massachusetts It's celebrated any day there's a SCUD inbound! =dn -- PHP General Mailing List (http://www.php.net/) To

[PHP] evaluate my mailing list attempt?

2002-04-15 Thread Police Trainee
Well, constructed from the help i received from some of you, this is the end result of my attempts to be able to send email to everyone listed in a file and including their names in the email. i would appreciate any feedback or suggestions for simplification, etc.

Re: [PHP] eregi() problems...

2002-04-15 Thread jas
I must be doing something wrong, for that solution did not work. Robert Cummings [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... jas wrote: // second selection for main image on main page $dir_name = /path/to/images/directory/; $dir = opendir($dir_name);

Re: [PHP] newbie question: templates with frames

2002-04-15 Thread Richard Archer
At 3:02 AM -0700 15/4/02, Alexander Javier wrote: Hello to all. Please help me in this problem of mine. I have an html template with a frame. I'm using phplib's templating functions to replace values in the templates. How do i also replace values both in the main template (frleft.htm) and in

Re: [PHP] Re: PHP MySQL Hosting services

2002-04-15 Thread Vins
you get unlimited traffic. here it is very cheep. so they can offer a great service. www.wthosting.cjb.net and they also don't pay for a domain. so that means even more cheeper prices. LOL they crazy. I know they guy, his way of thinking is free is better for the client and for them client

Re: [PHP] Searching a mySQL DB

2002-04-15 Thread Richard Archer
At 4:06 AM -0700 15/4/02, Thomas Edison Jr. wrote: I have a table with a column vProName, which let's say, contains a record Basket Ball Game. Now what i want is that if someone searches for Game or Ball, even then this record should appear. Either select * from ThatTable where vProName like

[PHP] Seeing if a value matches anything in an array

2002-04-15 Thread Leif K-Brooks
I'm trying to build some sort of AI chat bot in php (yes, I know I'm crazy). To do this, I need some way to check for the presence of any value from an array. Example: $pharray = array(php,the best language ever); if($question == What is .anything_in_array_function($phparray).?){ print Php is a

Re: [PHP] Poor results with GD

2002-04-15 Thread Richard Archer
At 5:32 PM +0200 15/4/02, Sear, Mick wrote: Not sure if anyone else uses GD much, but I've been experimenting with it and PHP recently and I've found I get large file sizes and very 'aliased' graphics. gd is the correct tool for your job. But there are some caveats. You will need to be using

Re: [PHP] Re: PHP MySQL Hosting services

2002-04-15 Thread Michael Kimsal
Vins wrote: you get unlimited traffic. here it is very cheep. so they can offer a great service. www.wthosting.cjb.net and they also don't pay for a domain. so that means even more cheeper prices. LOL they crazy. I know they guy, his way of thinking is free is better for the

[PHP] How do I overwrite file via FTP without changing owner/group?

2002-04-15 Thread John Kelly
Hi, I am using the example code at php.net to FTP a file to a remote server. I am trying to overwrite an existing file, but want to maintain the owner/group of the file being overwritten but it keeps giving the overwritten file the owner/group name of the userid that I am loggin in via FTP with.

RE: [PHP] Re: Need row number from database select

2002-04-15 Thread SP
Thanks Kevin, someone else suggested using global variable too. I didn't want to do that but I think this is the only way around it. So if I use a global variable called $row_number and $row_number++ as I print out each row then if two people are viewing the page, there would be two $row_number

[PHP] Re: Cross DB application

2002-04-15 Thread Manuel Lemos
Hello, Arcadius A. wrote: Hello ! I'm planning to write a database application for MySQL, and then port it to PostrgeSQL. Is there any library or class that could help me to write/maintain just one source code for both MySQL and PostgreSQL ? I think your best (if not the only) option in

[PHP] Re: Cross DB application

2002-04-15 Thread Manuel Lemos
Hello, Arcadius A. wrote: Hello ! I'm planning to write a database application for MySQL, and then port it to PostrgeSQL. Is there any library or class that could help me to write/maintain just one source code for both MySQL and PostgreSQL ? I think your best (if not the only) option in

[PHP] Re: HELP! Connect or no connect, that's the question...

2002-04-15 Thread Brad Thomas
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear all, I installed mysql for windows and had to copy some databases (including mysql standard databases), that I have to use for my php-project. I also installed the Apache server 1.3 ... My problem is, that

[PHP] newbe printing routine??

2002-04-15 Thread Dan Koken
Being completely new to PHP I went to this site for help on how to print reports. Thanks for all the ideas. I guess being a newbe, I was wondering if this is kind of the standard way most of you do all your reporting. Based on all the help I got, I did the following: 1. Wrote a report writer

RE: [PHP] Re: Cross DB application

2002-04-15 Thread James Cox
Hello, Arcadius A. wrote: Hello ! I'm planning to write a database application for MySQL, and then port it to PostrgeSQL. Is there any library or class that could help me to write/maintain just one source code for both MySQL and PostgreSQL ? I think your best (if not the only) option in

[PHP] Re: Seeing if a value matches anything in an array

2002-04-15 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Leif K-Brooks) wrote: I need some way to check for the presence of any value from an array. http://php.net/in-array http://php.net/array-search -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Cross DB application

2002-04-15 Thread Manuel Lemos
Hello, James Cox wrote: I'm planning to write a database application for MySQL, and then port it to PostrgeSQL. Is there any library or class that could help me to write/maintain just one source code for both MySQL and PostgreSQL ? I think your best (if not the only) option in PHP

RE: [PHP] Re: Need row number from database select

2002-04-15 Thread SP
Hi AJ, very interesting way of displaying a folder tree. Never thought of it that way. The problem I see is that you are limited to the depth of the tree because you can't just keep adding a new folder number to the end of the path. And the total number of folders is limited by the number of

[PHP] [ Variable Problems ]

2002-04-15 Thread [ rswfire ]
I have created a website that works somewhat uniquely. Every page is created using the root index.php file. I have an .htaccess document that redirects all 404 errors to this index.php file. So if someone access www.mydomain.com/mypage.html the index.php file is called and knows what to

[PHP] str_replace question

2002-04-15 Thread Andras Kende
Is a nicer way to remove any number 1-0 from a string??? Currently: $metakeywords=str_replace(1,'',strtolower($metakeywords)); $metakeywords=str_replace(2,'',strtolower($metakeywords)); $metakeywords=str_replace(3,'',strtolower($metakeywords));

[PHP] Faking a form POST

2002-04-15 Thread .ben
Hi. Does anyone know how to POST data to another script as if a form had done so? I want to POST some data to a script on another site and retrieve the data that is returned so i can poick it apart, i did it in ASP using a 3rd party component... just wondering if the same could be done in PHP.

[PHP] Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
Can I get some feedback on the conventional wisdom as to the best solution for high volume registration and authentication of users accessing a secure site? I have worked before with database/session based methods as well as htaccess. Which is preferred? Are there alternatives? Thanks for the

Re: [PHP] calculating US holidays

2002-04-15 Thread Tom Rogers
Hi This is one way: echo date(d/m/Y,strtotime(third sunday,strtotime(2/1/2002))); Tom At 05:17 AM 16/04/2002, Tom Beidler wrote: I need to calculate the date to see if it's a holiday, i.e. is today presidents day, which happens to be the third monday of february. Can someone point me to some

Re: [PHP] calculating US holidays

2002-04-15 Thread Tom Rogers
Hi Perhaps that should have been: echo date(d/m/Y,strtotime(third monday,strtotime(2/1/2002))); :-) Tom At 05:17 AM 16/04/2002, Tom Beidler wrote: I need to calculate the date to see if it's a holiday, i.e. is today presidents day, which happens to be the third monday of february. Can someone

Re: [PHP] str_replace question

2002-04-15 Thread Justin Blake
Andras Kende [EMAIL PROTECTED] wrote: Is a nicer way to remove any number 1-0 from a string??? Currently: $metakeywords=str_replace(1,'',strtolower($metakeywords)); $metakeywords=str_replace(2,'',strtolower($metakeywords)); $metakeywords=str_replace(3,'',strtolower($metakeywords));

Re: [PHP] graphing packages

2002-04-15 Thread Allen Lee
cacti http://www.raxnet.net/products/cacti/ Allen Lee http://www.modwest.com Modwest PHP Hosting On Mon, 15 Apr 2002, Jason Wong wrote: On Monday 15 April 2002 07:14, Christian Calloway wrote: hey ppl, I need to create some fairly complex graphs dynamically, and I need to be able

[PHP] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Manuel Lemos
Hello, Brad Hubbard wrote: Can I get some feedback on the conventional wisdom as to the best solution for high volume registration and authentication of users accessing a secure site? I have worked before with database/session based methods as well as htaccess. Which is preferred? Are

[PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly: Probably the fastest way to keep session profile information is by serializing the data array into a string that will be encrypted and then stored in cookie. The security weakness of this method is that if the secret

[PHP] naver.com ????

2002-04-15 Thread Brad Hubbard
Anyone else getting the weird messages from naver.com in response to posts to the list? Looks like a Korean out of office reply. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP/MySQL Query Prob

2002-04-15 Thread Jason Soza
Hey... new to the list, but didn't have time to lurk and watch the traffic, kind of in a bind here. I apologize in advance if I do something wrong... Using this code: ?php $link = mysql_connect() or die(Could not connect);

[PHP] variable question...

2002-04-15 Thread Phil Schwarzmann
Let's say I a variable called $var1 and it's values is one ...I want to access them by doing something like this... $i = 1; if (var.$i == one) echo Hello!; ...I want the combination of var and $i to equal $var1 How do I do this?? The code I just wrote will not print out Hello! THANKS!!!

[PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Manuel Lemos
Hello, Brad Hubbard wrote: On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly: Probably the fastest way to keep session profile information is by serializing the data array into a string that will be encrypted and then stored in cookie. The security weakness of

[PHP] smarter way to write config file?

2002-04-15 Thread Justin French
Hi all, Currently i've got a config file for each website, and I split it into essentially two config files, based on the server name, so that I can have 1 file for both my local server and the live server. something like: ? if($local) { $cfgAdminEmail = [EMAIL PROTECTED];

[PHP] Re: [PHP-DB] Re: Definitive answer for large scaleregistration/authentication

2002-04-15 Thread Richard Archer
At 2:11 PM +1000 16/4/02, Brad Hubbard wrote: On Tue, 16 Apr 2002 14:01, Manuel Lemos did align ASCII characters thusly: Probably the fastest way to keep session profile information is by serializing the data array into a string that will be encrypted and then stored in cookie. The security

[PHP] Login Frontend: Call for Suggestions

2002-04-15 Thread Ashley M. Kirchner
I have a directory on my server that contains log files for all my virtual hosts. I'd like to create a (web) login page where each owner of those vhosts can use to gain access to their individual log files. Ideally by using the same login they have on the system (their physical log in).

Re: [PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-15 Thread Brad Hubbard
On Tue, 16 Apr 2002 14:59, Richard Archer did align ASCII characters thusly: Aah, but does it scale? By most aqccounts. no :-( And do you want to run SSL for all page views? Yes. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP/MySQL Query Prob

2002-04-15 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hey... new to the list, but didn't have time to lurk and watch the traffic, kind of in a bind here. I apologize in advance if I do something wrong... Using this code: ?php $link = mysql_connect()

Re: [PHP] variable question...

2002-04-15 Thread Justin Blake
Phil Schwarzmann [EMAIL PROTECTED] wrote: Let's say I a variable called $var1 and it's values is one ...I want to access them by doing something like this... $i = 1; if (var.$i == one) echo Hello!; ...I want the combination of var and $i to equal $var1 How do I do this?? The code

Re: [PHP] Error accessing class

2002-04-15 Thread Andrew Schoenherr
Hi Tyler, Thank you, I checked the permissions and the ownership, all ok, but by inserting the absolute path in the page, the code is running and get the expected output from the script. I realized that I made the same mistake in the php.ini file, I updated the include_path statement to

Re: [PHP] smarter way to write config file?

2002-04-15 Thread Justin Blake
Justin French [EMAIL PROTECTED] has the same first name as me :) and wrote: Currently i've got a config file for each website, and I split it into essentially two config files, based on the server name, so that I can have 1 file for both my local server and the live server. something like:

<    1   2