RE: [PHP] session management

2004-01-30 Thread Giz
There's a sessions tutorial on phpfreaks.com that outlines the basics of using sessions. I'm not 100% sure what you mean when you say you don't want to do url rewriting. Without either cookies or passing a url param, there is no way to determine if the request comes from someone who has an active

[PHP] Am I missing Something

2004-01-30 Thread Phillip S. Baker
Greetings all, I am running version 4.3.4 of PHP. Fairly recently. I am trying to call a pretty basic programming tool. Maybe I am just really tired, or something but I am not getting what is going on. Is there something I am missing. I am pulling a SQL call on a date to get the month. I am

Re: [PHP] session management

2004-01-30 Thread Nadim Attari
Handling Session with PHP 4 http://www.zend.com/zend/tut/session.php (Feb 15, 2000) Session Authentication http://www.zend.com/zend/spotlight/sessionauth7may.php (May 15, 2001) Custom Session Handling http://www.zend.com/zend/spotlight/code-gallery-wade8.php (April 30, 2003)

[PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one long line, like this: /scriptlink

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread David OBrien
At 03:16 AM 1/30/2004, Freedomware wrote: I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one

[PHP] Re: locking to domain

2004-01-30 Thread Pavel Jartsev
Ryan A wrote: Hey all, I have a rather simple need that I am sure a lot of you must have gone through, I need a bit of code so that the script can run only at something.com..I am generating a MD5 license key based on that... Problem that I am having is.. wont I need 2 keys to see if the domain is

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave Thanks for the tip. However, I must be doing something wrong. \n didn't work, so I searched Google for PHP + new line and found a page that said you have to use \r\n if

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Pavel Jartsev
Freedomware wrote: David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave ... Do I need to modify the new line code because my echo statements are enclosed in single quotes (' '), rather than double quotes ( )? newline-character

[PHP] PHP timeout

2004-01-30 Thread Mario
Hi all I have a winXP machine on a network running IIS (PHP and MySQL is installed) I have recently moved from one machine to another and after setting up IIS and the rest and try to run few PHP scripts they just run forever or timeout. I believe the problem is with the security permission on

[PHP] PHP Social Software

2004-01-30 Thread Ralph
Anybody know of any PHP based Social Software projects? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
Got it. It took me a while to home in on the period. Thanks for the tips! Pavel Jartsev wrote: newline-character should be inside double quotes (\n). For example: instead of: echo 'link href=' . $periods . 'css/nations.css rel=alternate stylesheet type=text/css title=Nations /\r\n'; use:

[PHP] OOP methodology

2004-01-30 Thread Chris Neale
This is a long one - I'm trying to get to grips with my understanding of OOP. I'm not sure that I understand object oriented programming as well as I could to benefit from using it in PHP. Although I've used it to produce working applications, of the few objects I've produced nearly all have

Re: [PHP] Am I missing Something

2004-01-30 Thread Stuart
Phillip S. Baker wrote: I am running version 4.3.4 of PHP. Fairly recently. I am trying to call a pretty basic programming tool. Maybe I am just really tired, or something but I am not getting what is going on. Is there something I am missing. I am pulling a SQL call on a date to get the month.

Re: [PHP] PHP timeout

2004-01-30 Thread Raditha Dissanayake
Mario, Please don't reply to a message when you want to ask a question compose a new thread instead. Anyway from what you have described it sounds like you have a firewall that's blocking the mysql port. Somefirewalls just drop the packets instead of denying the connection. That way the

RE: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Ford, Mike [LSS]
On 30 January 2004 08:55, Freedomware wrote: David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave Another way you could go, as this is mostly HTML with some PHP values thrown in, is to write it as such -- then all

Re: [PHP] OOP methodology

2004-01-30 Thread Raditha Dissanayake
Hi Chris, Sounds to me like you are pretty much on the right track bearing in mind that PHP is not the bes language to learn OOP. Even your taskmanager sounds good, i wouldn't bother with reading up on design patterns just yet. They are indeed very important and you should definitely study

[PHP] PHP Style Switchers - Recommendations?

2004-01-30 Thread Freedomware
I've been using JavaScript style switchers combined with alternate style sheets, allowing users to control the appearance of my web pages. However, I recently read that you can make style switchers with PHP - which are allegedly superior to JavaScript style sheets. Then I found a PHP style

RE: [PHP] OOP methodology

2004-01-30 Thread electroteque
Here is my advice, check out the pear code, it will help you dearly get the grips of how to setup classes. IMHO i feel pear is a standard, i use most of the standard but i dont particularly write classes for pear but structure it similar, but am thinking of porting my error code around pear.

RE: [PHP] parsing variables inside a variable?

2004-01-30 Thread Ford, Mike [LSS]
On 29 January 2004 14:56, jimbo wrote: Hi, I have a query regarding variable parsing. I have some text in a MySQL database in which I have included some variable names. Eg (but w/o quotes): thankyou $name for registering on our web site. I query and use mysql_fetch_array to get the

RE: [PHP] OOP methodology

2004-01-30 Thread electroteque
Yes i think java would be the best to learn proper OO, i've nevr done it, but coming the other way knowing php OO, java became more familiar to me, i'm gonna do it this year. With PHP5 coming out that all may change slightly. May i ask though, what is the point of a destructor and is it really

Re: [PHP] PHP timeout

2004-01-30 Thread Mario
thanks for the reply Raditha. I don't have a firewall setup on this PC Is there a chance it's a permissions problem? And why do few simple scripts run fine though? Thanks Mario - Original Message - From: Raditha Dissanayake [EMAIL PROTECTED] To: Mario [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] PHP timeout

2004-01-30 Thread Raditha Dissanayake
Well the situation you have described are the typical symptoms of a firewall eating up packets. (Simple scripts running fine and those that connect to networking timing out) How about installing both the php engine and mysql on the same machine for testing? Mario wrote: thanks for the reply

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
Wow, thanks for the tips. That makes life a lot simpler! Mike Ford wrote: Another way you could go, as this is mostly HTML with some PHP values thrown in, is to write it as such -- then all your newlines are present exactly as they appear. This would look something like: By the way, the test

Re: [PHP] PHP timeout

2004-01-30 Thread Mario
both php and mysql is on the same machine. even running the following timesout: ?php if (!($mylink = @mysql_pconnect(localhost,*,**))) print h3Problem connecting to the database server/h3\n; exit(); } mysql_select_db(xxx) or die (h3Problem connecting to the

Re: [PHP] PHP timeout

2004-01-30 Thread Raditha Dissanayake
Hi, Make sure the mysql service is started and make sure that there isn't anything else competing for the same port (3306) beyond that i am afraid i cannot help as i am not a windows expert. Mario wrote: both php and mysql is on the same machine. even running the following timesout: ?php if

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Jay Blanchard
[snip] Yes i think java would be the best to learn proper OO, i've nevr done it, but coming the other way knowing php OO, java became more familiar to me, i'm gonna do it this year. [/snip] Why not start with the king of OOP, C++? Currently C++ is the most robust implementor of OOP design issues.

[PHP] Re: parsing variables inside a variable?

2004-01-30 Thread jimbo
Thanks Justin I was aware of that method but wanted to avoid it if possible, however another person explained to me that eval() can be used to force PHP to evaluate (i.e. parse) the variables, just thought I'd let you know for your future reference. James --

Re: [PHP] parsing variables inside a variable?

2004-01-30 Thread jimbo
Great - thanks v. much Mike. I don't know why there was no mention of eval() in the section of the manual on Variable Parsing. James -- www.jholt.co.uk : affordable business website solutions www.htpshareware.com : software for the

[PHP] tourico

2004-01-30 Thread Diana Castillo
Does anyone have any experience connecting with the new Tourico Holidays system via xml with php? I need help if so. -- Diana Castillo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] locking to domain

2004-01-30 Thread Ryan A
Hey, Sorry, when I posted this yesterday it was towards the end of my day and I was not thinking straight, by the time I got up today I had it figured out :-) Thanks anyway to everyone who replied. Cheers, -Ryan On 1/30/2004 7:38:27 AM, Justin French ([EMAIL PROTECTED]) wrote: On Friday,

RE: [PHP] session management

2004-01-30 Thread Jeff McKeon
Here's how I do it. User table in mysql UserID, username, password, admin, read, write 1001, John, *#(@(@, 0, 1, 0 1002, betty, KD)#(S, 1, 1, 1 Create a login form. Get their username and password, Run a query to pull the record where username and password match If the username is in the

Re: [PHP] PHP timeout

2004-01-30 Thread Mario
it looks like it has nothing to do with MySQL and just with php I'm running a simple script like $x=23; echo $x; and it displays the number 23 properly, but the page keeps loading like there is something else to load too. - Original Message - From: Raditha Dissanayake [EMAIL

[PHP] Re: OOP methodology

2004-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2004-01-30 09:41:53 +: I'm trying to get to grips with my understanding of OOP. snip / Looks like you might enjoy reading Design Patterns by Gamma et. al. (ISBN: 0201633612). It's not easy reading, but will quite likely open your eyes. I've had many

RE: [PHP] phpCollab on shared server?

2004-01-30 Thread Marc A. Garrett
Burhan, Thanks for your kind offer of help. I was able to get it up and running with no problems. Best, Marc A. Garrett [EMAIL PROTECTED] -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 11:47 AM To: 'Marc A. Garrett' Subject: RE:

Re: [PHP] Size of Arrays

2004-01-30 Thread Gandolf
Hi at all, Indeed. The following script had my machine happily swapping like crazy at 320,000 array items (each being 1k, task manager showed 640meg total memory in use on this development machine with 512meg RAM running WinXP). ?php while (@ob_end_flush()); $data = Array();

Re: [PHP] Am I missing Something

2004-01-30 Thread Marek Kilimajer
You have: select date_format('%c', date_column) You need: select date_format('%c', date_column) AS date_column Else the column name in the result is date_format('%c', date_column). Phillip S. Baker wrote: Greetings all, I am running version 4.3.4 of PHP. Fairly recently. I am trying

Re: [PHP] Size of Arrays

2004-01-30 Thread Stuart
Gandolf wrote: To the OP, why do you need to store all the items in memory at the same time? Can't you read some, process them then read the next lot, process them, read the next lot etc? No I couldn't because we have to use 1,6 Mio values direktly. If we read them each for each it will take a

[PHP] Request for files

2004-01-30 Thread Marco Schuler
Hello Sorry for bothering you with that 'question'. There was an article about an authentication-system in the German version of the magazin 'php solutions' issue October/November 2003. Unfortunately, my CD that was provided with the magazin has got a lot of CRC-errors (scratches). Could somebody

[PHP] Transferring an initiated Session to a Browser !!

2004-01-30 Thread Admin - CpanelPlus
Hi all, I Need to access certain data in a Page protected by user login. I have written a script with socket functions which connect to port 80 and automates what any browser does. That's Ok .. Now I have the Data What I wanted in a variable. But I am also in need of a Mechanism where I can

Re: [PHP] OT, Maybe: Question Re: Apache/Macintosh Platform

2004-01-30 Thread Roddie Grant
What you have is fine, but I think (I don't do it that way) this means each user will have completely separate code. That might be A Good Thing, or you might be the only user anyway. An alternative is to use /Library/WebServer/Documents/ Any pages placed there can be called with either

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Chris W
Freedomware wrote: I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one long line, like

Re: [PHP] Transferring an initiated Session to a Browser !!

2004-01-30 Thread Matt Matijevich
snip But I am also in need of a Mechanism where I can transfer an Initiated session to the User's Browser ... ( Not Just OutPutting the above variable .. But actually Transferring the Session to the User's Browser ) /snip not sure I understand 100% what you mean. You could send a cookie or

[PHP] Re: tourico

2004-01-30 Thread Lucian Cozma
If you refer to the gilboa/galileo reservation system, I've had a project on it for a Greece-based travel company. It involved XML messaging with the Gilboa server. Lucian COZMA Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone have any experience connecting

RE: [PHP] parsing variables inside a variable?

2004-01-30 Thread Ford, Mike [LSS]
On 30 January 2004 12:35, jimbo wrote: Great - thanks v. much Mike. I don't know why there was no mention of eval() in the section of the manual on Variable Parsing. Possibly because they didn't want to get into the security issues involved. It sounds like you're ok there, as you only intend

[PHP] Document Management and publishing

2004-01-30 Thread Jon Shoberg
Might anyone be able to recomend a PHP based (or Java/Perl/Python) based document management system? I'm looking to being a LARGE collection of PDF documetns online. The focus of this application isn't necessarily publishing articles but equally managing files and assiciating certain

[PHP] diff between script_filename, path_translated

2004-01-30 Thread John Schulz
After reading the manual entry on $_SERVER predefined variables, I'm unclear on the difference between 'SCRIPT_FILENAME' and 'PATH_TRANSLATED'. Results from a test script, run from a few different locations on my webserver, were always the same for these two variables. I'm especially confused

[PHP] Re: parsing variables inside a variable?

2004-01-30 Thread Justin Patrin
Jimbo wrote: Thanks Justin I was aware of that method but wanted to avoid it if possible, however another person explained to me that eval() can be used to force PHP to evaluate (i.e. parse) the variables, just thought I'd let you know for your future reference. James --

[PHP] textimage

2004-01-30 Thread Maciek Hofstede
Hey, I have one problem, i can't use 'text mode' exp: echo blah; end 'image function'? exp: imagepng($rys); Any idea? -- Maciek Hofstede PGP: http://www.demon.pl/max/max.pgp pgp0.pgp Description: PGP signature

Re: [PHP] diff between script_filename, path_translated

2004-01-30 Thread John W. Holmes
From: John Schulz [EMAIL PROTECTED] After reading the manual entry on $_SERVER predefined variables, I'm unclear on the difference between 'SCRIPT_FILENAME' and 'PATH_TRANSLATED'. Results from a test script, run from a few different locations on my webserver, were always the same for these

Re: [PHP] Re: parsing variables inside a variable?

2004-01-30 Thread John W. Holmes
From: Justin Patrin [EMAIL PROTECTED] What you need to understand is that the string parsing for variables only happens when the string is actually in your script. When you dynamically create a string (or get it from a DB) it's just a string of characters in memory and is *not* parsed. To

Re: [PHP] textimage

2004-01-30 Thread John W. Holmes
From: Maciek Hofstede [EMAIL PROTECTED] I have one problem, i can't use 'text mode' exp: echo blah; end 'image function'? exp: imagepng($rys); Any idea? I've had my coffee now and I'm still confused. What are you trying to do? I'm going to try more coffee. ---John Holmes... --

Re: [PHP] Transferring an initiated Session to a Browser !!

2004-01-30 Thread John W. Holmes
From: Admin - CpanelPlus [EMAIL PROTECTED] I Need to access certain data in a Page protected by user login. I have written a script with socket functions which connect to port 80 and automates what any browser does. That's Ok .. Now I have the Data What I wanted in a variable. But I am also

Re: [PHP] textimage

2004-01-30 Thread Ajai Khattri
On Fri, 30 Jan 2004, Maciek Hofstede wrote: I have one problem, i can't use 'text mode' exp: echo blah; end 'image function'? exp: imagepng($rys); You have to use the font rendering functions to put text into an image. I have used imagettftext() to do this. See:

Re: [PHP] diff between script_filename, path_translated

2004-01-30 Thread John Schulz
John W. Holmes wrote: Not sure what to say on this one other than, yeah, they're the same. :) Ah, spiffy. ;) Not sure if this will help either, but this is what I use to determine where I'm at in scripts I write. Very helpful, thank you! :) I realized after sending that I should probably keep

Re: [PHP] textimage

2004-01-30 Thread Maciek Hofstede
On Fri, 30 January 2004 at 11:53:14 -0500, John W. Holmes wrote: From: Maciek Hofstede [EMAIL PROTECTED] I have one problem, i can't use 'text mode' exp: echo blah; end 'image function'? exp: imagepng($rys); Any idea? I've had my coffee now and I'm still confused.

Re: [PHP] textimage

2004-01-30 Thread Ajai Khattri
On Fri, 30 Jan 2004, Maciek Hofstede wrote: i'm writing a host monitor. image it's diagram generate from mysql, if i use imagestring or imagettftext web is too big, there is about 150 - 170 hosts, and i have generate image and put html descriptions: image host alive: ble ble ble ble ble

Re: [PHP] textimage

2004-01-30 Thread Raditha Dissanayake
Hi, Sounds to me like you could be killing your server with so many images being dynamically generated. How about keeping a set of pre generated images and use your php script to embed them into html (depending on whether the server is up or down). You can for example create a large image in

[PHP] Re: OOP methodology

2004-01-30 Thread Justin Patrin
Wow, that's a lot of stuff in one class. Personally, I've started using the MVC (Model, View, Controller) architecture. Basically what it does is seperates Data logic from Display logic and Control logic. Here's how I've been using it. Model: Holds and deals with all data for the program, such

Re: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Justin Patrin
Jay Blanchard wrote: [snip] Yes i think java would be the best to learn proper OO, i've nevr done it, but coming the other way knowing php OO, java became more familiar to me, i'm gonna do it this year. [/snip] Why not start with the king of OOP, C++? Currently C++ is the most robust implementor

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Jay Blanchard
[snip] Hehe, and here is where we start a holy war. [/snip] Bring it. [snip] I would have to disagree. While it may be possible to implement good OOP in C++, it does not nearly implement OOP as well as many other languages. It also has many other design problems that hinder the learning of OOP.

Re: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Chris Boget
Which of the many other languages implement OOP better? Smalltalk, for one. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
Hello everyone, I am trying to write a function that would compare one table to a number of other tables in Mysql and remove any duplicates found. This is for tables of email addresses where I want to remove any dups found. Example: Master list - compare to list1, list2, list3, and so on and

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Raditha Dissanayake
Hi, If you are using mysql 4 you can use subselects to delete from where in (select) the select itself can be a multi table join. if you are on mysql 3.xx you can use PHP to mimic a subselect. Chris Bruce wrote: Hello everyone, I am trying to write a function that would compare one table

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
Mysql 3.23.54. My first thought was to load the output from the tables into an array and they use a foreach and in_array to create a list of dups, but I wanted to see if there was an easier way. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Kelly Hallman
On Fri, 30 Jan 2004, Jay Blanchard wrote: I would have to disagree. While it may be possible to implement good OOP in C++, it does not nearly implement OOP as well as many other languages. It also has many other design problems that hinder the learning of OOP. I respect your opinion and

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread John W. Holmes
From: Chris Bruce [EMAIL PROTECTED] I am trying to write a function that would compare one table to a number of other tables in Mysql and remove any duplicates found. This is for tables of email addresses where I want to remove any dups found. Example: Master list - compare to list1, list2,

RE: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Mike Brum
My first thought was to load the output from the tables into an array and they use a foreach and in_array to create a list of dups, but I wanted to see if there was an easier way. -- If you're not using MySQL 4, then yeah, that's probably the best way. Just realize that this isn't going to be

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread John W. Holmes
From: Chris Bruce [EMAIL PROTECTED] Mysql 3.23.54. My first thought was to load the output from the tables into an array and they use a foreach and in_array to create a list of dups, but I wanted to see if there was an easier way. Ah, in that case, my other query won't work. :) This

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
This will work for Mysql 3.23.54? -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 On Jan 30, 2004, at 12:48 PM, John W. Holmes wrote: From: Chris Bruce [EMAIL PROTECTED] I am trying to write a

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
Cool, thanks John, I'll give it a shot. Sorry for the last email, I sent it before you sent this one :) -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 On Jan 30, 2004, at 12:54 PM, John W. Holmes

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Raditha Dissanayake
Did you mention cofee John? now why did i suggest subselects when good old joins seem to do the tricks. Yikes! John W. Holmes wrote: From: Chris Bruce [EMAIL PROTECTED] I am trying to write a function that would compare one table to a number of other tables in Mysql and remove any

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Ajai Khattri
On Fri, 30 Jan 2004, Kelly Hallman wrote: Other languages dispense with a lot of the formalities found in C++ (a good or bad thing, depending on your perspective). I found Python to be a great language to learn OOP, since it forces good habits on you. C++ is a very large unwieldly language -

Re: [PHP] Document Management and publishing

2004-01-30 Thread memoimyself
Hello Jon, On 30 Jan 2004 at 10:57, Jon Shoberg wrote: Might anyone be able to recomend a PHP based (or Java/Perl/Python) based document management system? I'm looking to being a LARGE collection of PDF documetns online. The focus of this application isn't necessarily publishing

[PHP] How do you guys do this?

2004-01-30 Thread Ryan A
Hey all, I needed to make a simple upload script so users could upload their images but had a small extra requirment, after searching google, hotscripts and all the other usual places and downloading code, i realized its better to write the whole damn thing myself, so i did. Now that the little

[PHP] Re: How do you guys do this?

2004-01-30 Thread Justin Patrin
The reason I didnt want to use the user's username as his pic name is coz then if someone wanted to break into his account they already know the username and they could try to bruteforce the password... if i use first and last name...there is a _small_ possibility of 2 members having the same

RE: [PHP] How do you guys do this?

2004-01-30 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Friday, January 30, 2004 10:09 AM said: common directory (member_pics) so what do you suggest I name the pictures? eg: username.jpg? first_last_name.jpg? random_number_username.jpg? how about timestamp_originalfilename.jpg? Someone uploads

[PHP] Logging on to a web based application

2004-01-30 Thread Shaun
Hi, We are trying to develop a web based system where users a charged per office. I would be grateful to hear anyone's experience in creating such applications and how the users are managed. Our main concern is how we stop a client paying for one office use and distributing their password to

[PHP] The PHP Problem

2004-01-30 Thread Ash
Hi, I am totally new to PHP and dont know a thing. I tried looking through the articles but they were of no use. My Question is: How can I just write php in a text editor, save it as a .php, and view it in internet explorer, offline? I have tried everything and it just wont work. I tried the code:

Re: [PHP] The PHP Problem

2004-01-30 Thread Gabriel Guzman
On Friday 30 January 2004 10:51 am, Ash wrote: How can I just write php in a text editor, save it as a .php, and view it in internet explorer, offline? you have to install php. http://www.php.net/manual/en/installation.php gabe. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] The PHP Problem

2004-01-30 Thread Pushpinder Singh
You need to test this page on a webserver. I assume you are on a Win system .configure IIS to understand php and then place all your scripts in C:/Inetwin/ folder and u shud be set. hth ps On Friday, January 30, 2004, at 01:51 PM, Ash wrote: Hi, I am totally new to PHP and dont know a thing. I

Re: [PHP] The PHP Problem

2004-01-30 Thread John Nichel
Ash wrote: Hi, I am totally new to PHP and dont know a thing. I tried looking through the articles but they were of no use. My Question is: How can I just write php in a text editor, save it as a .php, and view it in internet explorer, offline? I have tried everything and it just wont work. I

Re: [PHP] The PHP Problem

2004-01-30 Thread memoimyself
Hello Ashley, On 30 Jan 2004 at 18:51, Ash wrote: Hi, I am totally new to PHP and dont know a thing. I tried looking through the articles but they were of no use. My Question is: How can I just write php in a text editor, save it as a .php, and view it in internet explorer, offline? I have

Re: [PHP] How do you guys do this?

2004-01-30 Thread John W. Holmes
From: Ryan A [EMAIL PROTECTED] I am having all the pics upload to one common directory (member_pics) so what do you suggest I name the pictures? uniqid() and md5() would come in handy here. Another question related to this, I am restricting the uploaded files to be jpg,png and gif for

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Jay Blanchard
[snip] Experience has chown that smaller simpler languages are easier to learn and apply than larger ones. [/snip] Obviously. :) I'd be curious as to how many cam to PHP from a programming background? Likewise, how many start with PHP and go on to other languages? And what those languages are

Re: [PHP] Logging on to a web based application

2004-01-30 Thread Jake McHenry
- Original Message - From: Shaun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 30, 2004 1:38 PM Subject: [PHP] Logging on to a web based application Hi, We are trying to develop a web based system where users a charged per office. I would be grateful to hear anyone's

[PHP] exec cURL to pass custom MIME headers

2004-01-30 Thread Kristopher Spencer-Yates
Hi, Normally I wouldn't do this but the cURL list seems to be in severe hibernation, ie. no activity. I'm in a bit of a jam w/ this and so here goes How do I get cURL to pass headers properly? It is ignoring my -H headers and sending its own default or whatever set of headers. One

Re: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Chris Garaffa
On Jan 30, 2004, at 2:19 PM, Jay Blanchard wrote: I'd be curious as to how many cam to PHP from a programming background? Likewise, how many start with PHP and go on to other languages? And what those languages are either direction? Probably a strange mix, but... I came to PHP from an

Re: [PHP] How do you guys do this?

2004-01-30 Thread Marek Kilimajer
Ryan A wrote: Hey all, I needed to make a simple upload script so users could upload their images but had a small extra requirment, after searching google, hotscripts and all the other usual places and downloading code, i realized its better to write the whole damn thing myself, so i did. Now that

[PHP] file separator...

2004-01-30 Thread Dan Joseph
Hi Everyone, Hoping someone can shed a light on this. I have to send a file separator in a string that I piece together to a remote system. I've been told this is x'1C' ASCII or x'22' HEX. I have no idea what to really send. I've tried several things. Can someone tell me what it is

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Kelly Hallman
On Fri, 30 Jan 2004, Jay Blanchard wrote: I'd be curious as to how many cam to PHP from a programming background? Likewise, how many start with PHP and go on to other languages? And what those languages are either direction? I started serious coding in perl. When I found PHP, I realized I was

Re: [PHP] Size of Arrays

2004-01-30 Thread Galen
Should anyone be planning experiments or projects with large arrays, use a for() loop instead of a foreach() loop when working with your array. And be sure to count the array, stick that result into a variable, then compare against the variable instead of running the count() again. On huge

RE: [PHP] Size of Arrays

2004-01-30 Thread Chris W. Parker
Galen mailto:[EMAIL PROTECTED] on Friday, January 30, 2004 12:35 PM said: On huge arrays (hundreds of thousands of elements, three dimensions, several megabytes) the performance impact is huge! The downside is you'll probably have to use numeric keys instead of associative, but for big

Re: [PHP] The PHP Problem

2004-01-30 Thread Chris Edwards
I have several web sites that I use PHP/mySQL with. I pay approximately $9 per month for a gigabyte of space and unlimited data transfer. I use CodeWright from Starbase as my editor. It detects PHP code and colorizes the code as you type i.e. reserved words are blue, comments are green, literals

[PHP] PHP and XML.

2004-01-30 Thread Mark Ackroyd
Odd problem. I have written a small script that processes some XML, it runs on a few FreeBSD boxes I admin over. On one of the boxes (the only one) .. if I run this script through apache, The xml_set_element_handler and xml_set_character_data_handler functions return a 1 error (out of memory)

[PHP] Related links embedded in pages....

2004-01-30 Thread Ryan A
Hey all, I'm sure you must have visited sites where articles on a page have links to place that explain what that word means.. eg: This is an article about a computer programming language called php which is taking web development to a different. in the above snip of the article computer

RE: [PHP] Logging on to a web based application

2004-01-30 Thread Robert Sossomon
I use a DB table to manage my users, I do not have to worry about locking it down to one user, however one thought is to track the user into a temporary DB, if the user name is there and the sessionID does NOT match the one in the DB, then the user is not granted permission to access the programs.

[PHP] Exectution Time?

2004-01-30 Thread Mike Mapsnac
Is there a way to find out the execution time of php program? Thanks _ Check out the coupons and bargains on MSN Offers! http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418 -- PHP General Mailing List

Re: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Justin Patrin
Jay Blanchard wrote: [snip] Experience has chown that smaller simpler languages are easier to learn and apply than larger ones. [/snip] Obviously. :) I'd be curious as to how many cam to PHP from a programming background? Likewise, how many start with PHP and go on to other languages? And what

Re: [PHP] Am I missing Something

2004-01-30 Thread Phillip S. Baker
At 09:54 AM 1/30/2004 +, Stuart wrote: Phillip S. Baker wrote: I am running version 4.3.4 of PHP. Fairly recently. I am trying to call a pretty basic programming tool. Maybe I am just really tired, or something but I am not getting what is going on. Is there something I am missing. I am

Re: [PHP] Exectution Time?

2004-01-30 Thread John W. Holmes
From: Mike Mapsnac [EMAIL PROTECTED] Is there a way to find out the execution time of php program? If you start a task at 10:00 and finish at 10:15, how long did it take? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >