Re: [PHP] Variables

2003-01-08 Thread Justin French
on 09/01/03 11:52 AM, Stephen ([EMAIL PROTECTED]) wrote: Yet another question: How would you make a variable's name the value of another variable? For example... Variable 1's value is joe. I want to make the value of variabe one, or joe, the name of variable two which would equal something

Re: [PHP] Auto Include a Function

2003-01-10 Thread Justin French
Hi, I haven't seen anything like that implemented yet. I have my functions logically grouped/organised into files... I only include the file when needed. Some files (like my string functions and DB functions) are auto-prepend (a php.ini directive) auto-included into every script, which does

Re: [PHP] Databases vs. File Access

2003-01-10 Thread Justin French
am curious about the performance differences between using a database or leaving the data in the individual files they originated in. Can anyone offer any recommendations? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Informing a User of an Illegal Character in a post

2003-01-10 Thread Justin French
Basically, you want to do a regular expression to see what characters are in the username, and make none of them are illegal... I currently have the rules of 5-30 characters lowercase, numbers 0-9 and underscore (_) only I achieve this with: ? if((!preg_match(/^[a-z0-9_]*$/, $username)) OR

Re: [PHP] Is this possible with php?

2003-01-10 Thread Justin French
on 10/01/03 6:14 PM, Tom Rogers ([EMAIL PROTECTED]) wrote: I use webdrive which allows me to map an ftp site to a windows drive letter so it gets treated as a local drive . very usefull. You can read about it here http://www.webdrive.com/ Does anyone know of a mac (OS8/9 NOT OSX)

Re: [PHP] Adding HTTP URL Code

2003-01-08 Thread Justin French
I think the reason you didn't get a reply is because no one could understand what you wanted to happen my guess is... You need a regular expression to turn URLs in a string into links. So that this: --- This is a test. It is only a test. What happens when I include a URL in my results

Re: [PHP] Simple Form Processing

2003-01-11 Thread Justin French
Hi, the files themselves are available in the $_FILES array, but it's not as simple as that. may i recommend you start by copying the Examples 18-1 and 18-2 from this page: http://www.php.net/manual/en/features.file-upload.php Once you've got THAT code working smoothly and understand what's

Re: [PHP] rintones using php

2003-01-11 Thread Justin French
You'd need a server capable of sending them (I think it's an SMS gateway hardware device, or something like that), which I think is more of an issue than then PHP scripts involved... Justin on 12/01/03 6:57 AM, Arvindv ([EMAIL PROTECTED]) wrote: Hi, Were can i get scripts to send

Re: [PHP] Format tables!!

2003-01-11 Thread Justin French
table width=400 tr tdbname/b/td tdbaddress/b/td tdbphone/b/td /tr ? // connect to database excluded // error checking and result checking excluded $sql = select id,name,address,phone from contacts; $result = mysql_query($sql); while($myrow

Re: [PHP] Simple Form Processing

2003-01-12 Thread Justin French
as I even find simple mistakes like missing quotes in example code. So what's going wrong? Thank you again, Kyle On Sun, 12 Jan 2003 15:17:42 +1100, Justin French [EMAIL PROTECTED] said: Hi, the files themselves are available in the $_FILES array, but it's not as simple

Re: [PHP] Favorite Email validation routine?

2003-01-12 Thread Justin French
I use, and love the simplicity of, validEmailFormat()... it's a near-as-possible port of someone's Perl script which has become close to the definitive script/function for Perl developers. http://www.killersoft.com/downloads/pafiledb.php?action=categoryid=1 Cheers, Justin on 13/01/03 4:21

Re: [PHP] Favorite Email validation routine?

2003-01-12 Thread Justin French
Just checked the URL -- there are now 2 versions... I'm using 1.0 Justin on 13/01/03 4:38 PM, Justin French ([EMAIL PROTECTED]) wrote: I use, and love the simplicity of, validEmailFormat()... it's a near-as-possible port of someone's Perl script which has become close to the definitive

[PHP] document contained no data

2003-01-13 Thread Justin French
Hi gang, I'm encountering a strange, random, sporadic error on a new server. Basically, sometimes, in a non-repeatable fashion, a page will not load. In NN7 Mac, the error is the page contained no data. In IE5.x Mac, the error is along the lines of host not found or could not access URL

Re: [PHP] document contained no data

2003-01-13 Thread Justin French
tricky -- I have to wait until I spot an error, then download a 10+meg log, and try and find my request... but I'll work on that next for sure. Justin Justin French wrote: Hi gang, I'm encountering a strange, random, sporadic error on a new server. Basically, sometimes, in a non-repeatable

Re: [PHP] document contained no data

2003-01-13 Thread Justin French
on 13/01/03 10:05 PM, Jason Wong ([EMAIL PROTECTED]) wrote: On Monday 13 January 2003 17:46, Justin French wrote: Hi gang, I'm encountering a strange, random, sporadic error on a new server. Basically, sometimes, in a non-repeatable fashion, a page will not load. In NN7 Mac, the error

Re: [PHP] Authentication programming

2003-01-14 Thread Justin French
on 15/01/03 7:07 AM, Jordan Elver ([EMAIL PROTECTED]) wrote: Hi, I'm about to start a new project which will require a login system. The system should allow for different types of access on a per page basis. I'm going to achieve the login system using sessions, which I have done before. My

Re: [PHP] emptying hte array??

2003-01-14 Thread Justin French
on 15/01/03 7:52 AM, Scott Fletcher ([EMAIL PROTECTED]) wrote: How to do the proper way of emptying hte array?? Example... $a[0] = test1; $a[1] = test2; $a[2] = test3; $a[3] = test4; $a = ;-- Is this hte proper way to do it unset($a); http://php.net/unset Justin -- PHP

Re: [PHP] htmlspecialchars

2003-01-14 Thread Justin French
on 15/01/03 4:24 AM, Foong ([EMAIL PROTECTED]) wrote: Hi, I wonder which is the better way to store data into database? 1. stor the data after we call htmlspecialchars with the data (means we store as quote; in database) 2. stor the data in non encoded form and call htmlspecialchars

Re: [PHP] document contained no data

2003-01-15 Thread Justin French
Just as an update, the sysadmin definitely thinks it's my code... I'm not convinced, but I'm faced with the task of finding out :) It appears your site is causing the webserver to segfault (crash), which is why nothing comes up some times - these crashes are logged in the main Apache logfile,

[PHP] alternative control structure syntax

2003-01-15 Thread Justin French
Hi, Can someone point me to the page in the manual where this style of control structure syntax is documented? $var = ($something) ? foo : bah; ??? Can't see it, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] intermittent session loss

2003-01-15 Thread Justin French
the page a few times? Many thanks in advance, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: SPAM: Re: [PHP] intermittent session loss

2003-01-16 Thread Justin French
that gets to 18, the other getting to 4. Again, this is NOT a repeatable bug... right now, it just counted perfectly up to 25 before I got bored... :) Justin ---John Holmes... - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, January

Re: [PHP] document contained no data

2003-01-16 Thread Justin French
any extensions that you wouldn't find in a base install. Thanks for the words of encouragement though :) Justin Justin French wrote: Just as an update, the sysadmin definitely thinks it's my code... I'm not convinced, but I'm faced with the task of finding out :) It appears your

Re: [PHP] document contained no data

2003-01-16 Thread Justin French
I wrote a simple test script which increments a sessions counter, as per the manual. That way they couldn't complain about having to debug mountains of code, etc etc. Intead of the usual 1,2,3,4,5...50 it was more like 1,2,3,0,4,5,1,6,7,2,8,9,3 I emailed them, and they've switched the sessions

Re: [PHP] Re: Ever complained about lousy PHP programmers?

2003-01-16 Thread Justin French
on 17/01/03 5:44 AM, Peter Hutnick ([EMAIL PROTECTED]) wrote: Because short tags are evil ;-) My provider has short tags enabled, so there is no getting around this bit of ugliness. Can you set the php.ini value to disallow short tags locally via a .htaccess file?? Justin -- PHP General

Re: [PHP] Session Length

2003-01-16 Thread Justin French
Check out the 'max lifetime' session settings in the sessions part of php.ini Justin on 17/01/03 7:11 AM, Pushpinder Singh Garcha ([EMAIL PROTECTED]) wrote: Hello Everyone: I am using Sessions to secure parts of my website. I need to know if there is a way to set a lifetime for these

Re: [PHP] Display Dates in English o_O

2003-01-16 Thread Justin French
start with http://php.net/strtotime and http://php.net/date ? // many lines $d = '2003-01-16'; // from mysql $ds = strtotime($d);// unix stamp $df = date('l, F dS, Y',$ds); // formatted echo $df; ? OR ? //one line echo date('l, F dS, Y',strtotime('2003-01-16')); ?

Re: [PHP] fit window to image

2003-01-16 Thread Justin French
php can help, but remember, PHP only outputs HTML code to the browser... it can't actually resize the window, because that's a client-side thing like javascript. but you can find out the x and y of an image with http://www.php.net/manual/en/function.getimagesize.php Then use this information in

Re: [PHP] Create unike variables for each record

2003-01-16 Thread Justin French
wouldn't you use the primary key as the unique identifier? html body ? if(!isset($_GET['id'])) { // show all records // print a clickable list of first and last names $sql = select id,firstname,lastname from contacts; $result = mysql_query($sql); while($myrow =

Re: [PHP] frame problem

2003-01-17 Thread Justin French
1. this has nothing to do with PHP 2. this has nothing to do with PHP 3. you could call a frameset html page with a href=frameset.html target=_top 4. you could set individual frames to different sources from one link with javascript -- but you'd have to consult a JS list :P Justin on

Re: [PHP] 2 Qs: Passing current URL with session and how to avoidsession timeout???

2003-01-18 Thread Justin French
1. If you require the back button to work forever, then do not use sessions, because they're not designed to be a forever thing. 2. I do this sort of stuff by building my own URL from $_SERVER components: ? $script = $_SERVER['PHP_SELF']; $qs = $_SERVER['QUERY_STRING']; $currentURL =

Re: [PHP] Auto Incrementing in PHP

2003-01-18 Thread Justin French
on 19/01/03 9:59 AM, John W. Holmes ([EMAIL PROTECTED]) wrote: Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. I assume you're

Re: [PHP] SQL+php

2003-01-18 Thread Justin French
where the F*** are you getting july from??? which number do you want to convert to a month, or am i totally missing it? you need to be DESCRIPTIVE in what you want to acheive. we're not a mind readers! Justin on 19/01/03 11:59 AM, Paul Marinas ([EMAIL PROTECTED]) wrote: i am trying to

Re: [PHP] 2 Qs: Passing current URL with session and how to avoidsession timeout???

2003-01-18 Thread Justin French
on 19/01/03 2:45 PM, -[ Rene Brehmer ]- ([EMAIL PROTECTED]) wrote: I haven't found the server array in the manual (yet anyway), so I'm not sure what exactly it is you're doing ... so a bit of 'splaining would be nice ... I'm only on my 4th month of PHP'ing afterall ...

Re: [PHP] How know how many sessions are active?

2003-01-19 Thread Justin French
If you're on a dedicated server (no other sites on the server), you could just count the session files in /tmp. Otherwise, the general consensus seems to be that you need to decide how long a user is active for (say a minute, or 3, or an hour?), and save (eg) the SID and timestamp in a file or

Re: [PHP] php.ini: how to load different ini file depending onhost?

2003-01-19 Thread Justin French
You can override parts of your php.ini on a per-directory level with a .htaccess file... eg: IfModule mod_php4.c php_flag register_globals off php_flag magic_quotes_gpc on php_flag magic_quotes_runtime on php_flag magic_quotes_sybase on /IfModule Justin French on 20/01/03 2

Re: [PHP] Mass Mailing with PHP MySQL

2003-01-19 Thread Justin French
A while() loop will, at some point, break. this is because the script will timeout on the server before you send to any large lists... when I say large, this could be 100 address', or could be 10,000 -- it all depends on your server/ISP and server load at certain times. A better/simpler solution

Re: [PHP] How know how many sessions are active?

2003-01-20 Thread Justin French
on 21/01/03 2:07 AM, Jeremías Grunge ([EMAIL PROTECTED]) wrote: Another question Do you know a way to close a session when client closes the explorer? Perhaps with a client script? Apart from what everyone else has said about cookie lifetime, there is probably some javascript foolery you

Re: [PHP] PHP and Sessions?

2003-01-20 Thread Justin French
on 21/01/03 8:33 AM, John Nichel ([EMAIL PROTECTED]) wrote: But he said that it's working in 4.2.2 (default off), but not working in 4.1.2 (default on). If I remember correctly, $HTTP_POST_VARS['whatever'] worked before 4.2.x, right? What about things like $_POST $_SERVER, etc. did those

Re: [PHP] simple date question

2003-01-20 Thread Justin French
why not just call date('m') to get the month? justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How know how many sessions are active?

2003-01-20 Thread Justin French
on 21/01/03 9:12 AM, Jeremías Grunge ([EMAIL PROTECTED]) wrote: Any examples of call logout.PHP from javascript (I know that's not a Scripting forum) I already told you! Pop-up a new window with javascript on window close, with the URL 'logout.php'. If you need more than that, best find a

Re: [PHP] PHP Sessions generates Segment Faults

2003-01-20 Thread Justin French
Hi, I had this problem a few weeks back. The host changed the sessions from 'mm' to 'files' in php.ini and restarted, and all was ok... not sure of the reasons behind the faults, but I had this EXACT problem (with standard session stuff). Justin on 21/01/03 2:29 AM, Blaster ([EMAIL

Re: [PHP] Time code!!!

2003-01-20 Thread Justin French
Please post in raw text, not HTML. ?php echo date('d m y'); ? look in the manual to decide what format you need to replace 'd m y' with: http://php.net/date The welcome back bit all depends on cookies, sessions, how your login scripts work, etc etc. Justin on 20/01/03 12:46 PM, Karl James

Re: [PHP] Header Error message i think!!

2003-01-20 Thread Justin French
PLEASE don't post in HTML/Rich Text sheeesh! Justin on 20/01/03 2:18 PM, Karl James ([EMAIL PROTECTED]) wrote: http://www.ultimatefootballleague.com/Create_Account.phps Warning: Cannot add header information - headers already sent by (output started at

Re: [PHP] PHP Sessions

2003-01-21 Thread Justin French
on 21/01/03 9:25 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote: There is some discussion as to whether my globals are on or not ... I am using session_register to name my sessions, and then the global command later on on the individual pages to remember which session it is we're looking for. No

Re: [PHP] PHP Sessions generates Segment Faults

2003-01-22 Thread Justin French
wrote it yourself, perhaps it's got a bug. If it's a library script, perhaps it has a bug, or has a FAQ, or some support. There's also the option that there's a bug with PHP in this/these version(s) which is causing the problems. Is there a reason why you can't just use 'files'??? Justin French

Re: [PHP] writing a newsletter program in php?

2003-01-22 Thread Justin French
Yes, this is a reasonable candidate for a PHP project, however: 1. why reinvent the wheel? 2. There are some serious issues with using PHP's mail() command: a) large mailing lists will time out on individual emails b) the alternative to a is to use Bcc. Your ISP will probably set the maximum

[PHP] query caching caching in general

2003-01-22 Thread Justin French
anyone got any links to decent tutorials on sql caching, and caching in general? they don't have to be mysql/php specific, but that would of course help :) general theory tutorials are fine too :) Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] get current username from the windows system

2003-01-23 Thread Justin French
So, you want the server (PHP) to probe the client (user's) remote machine to find out the windows username? Can't be done. First thing to remember is that PHP is server side. SOME LIMITED information is sent to the server by the browser, but I doubt this would ever be considered -- or even

[PHP] nested queries/loops

2003-01-23 Thread Justin French
that shows me the light on how I might reduce the number of queries, perform smarter, more complex queries, or something like that. Otherwise, I can see myself writing some really sluggish code :) Or perhaps my problem is back at the database level, with too many tables, or whatever. Justin

Re: [PHP] nested queries/loops

2003-01-23 Thread Justin French
Thanks Marek, That put me right on track :) Justin on 23/01/03 11:24 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: SELECT * FROM partner p LEFT JOIN pid_to_sid p2s ON p.id=p2s.pid LEFT JOIN service s ON p2s.sid=s.id LEFT JOIN category c ON s.categoryid=c.id WHERE $your_conditions ORDER BY

Re: [PHP] image source from PHP

2003-01-23 Thread Justin French
can you copy paste a little bit of the HTML source of what you're doing? justin on 24/01/03 10:05 AM, Karina S ([EMAIL PROTECTED]) wrote: Hello, I want to make a sit where an image comes from a database. In the db I store only the filename and path. I have the following code: ?php $ps

Re: [PHP] Login and sessions?

2003-01-23 Thread Justin French
Start here http://www.WebmasterBase.com/article/319 Sure, it isn't perfect, and doesn't do everything you want it to do (and it currently relies in register_globals ON), but I found it educating, and formed the basis of my own user/admin/clearance/membership/session management system which I use

Re: [PHP] IP address

2003-01-24 Thread Justin French
server with PHP) 5. page comes back thru the 2 to 20 servers 6. arrives at my ISP 7. gets sent to my computer 8. I look at the page So, which one of these computers are you trying to get the IP address of? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] multiple entry forms !!

2003-01-27 Thread Justin French
on 28/01/03 10:20 AM, scott ([EMAIL PROTECTED]) wrote: hi looking for some advice I have a site in progress. user to it have to enter a LOT of information (it will contain a club directory) in order to try and make it a less unpleasant experience for the user, I want to give them 7

Re: [PHP] PHP Page Refresh on Redirection

2003-01-27 Thread Justin French
on 28/01/03 4:42 PM, Phil ([EMAIL PROTECTED]) wrote: I have a PHP page with a form that submits to another PHP processing page. On completion of the PHP actions on the processing page, I have echoed into the page the javascript action of 'location.href=...' and the location is redirected to

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Justin French
you want to achieve on the web, or offline. If on the web, keep it basic, with perhaps a save to server option and a printable thankyou/proof page. If offline, I think PDF forms are the best of a bad bunch. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] register_globals

2003-01-28 Thread Justin French
on 29/01/03 6:41 AM, Kiswa ([EMAIL PROTECTED]) wrote: change If($id==1){ to If($_GET['id']==1){ or put this line near the top of your script: $id = $_GET['id']; or, a little more anal: if(isset($_GET['id'])) { $id = $_GET['id']; } Justin font size=2a href=left.php?id=1

Re: [PHP] Advice on uploaded files

2003-01-28 Thread Justin French
on 29/01/03 11:16 AM, Manuel Ochoa ([EMAIL PROTECTED]) wrote: I writting a php program for a small insurance company and they want to receive uploaded digital photos. Should I store the photos in a mysql database or in a directory on the hard drive? If you have experience with this any

Re: [PHP] best way to pass variables to iframe

2003-01-28 Thread Justin French
on 29/01/03 4:35 PM, Mantas Kriauciunas ([EMAIL PROTECTED]) wrote: I believe there was question like this, but I was wondering if someone could point me with useful information about passing variables to iframe. To point out the obvious, you can pass variables to any URL by using GET: iframe

Re: [PHP] using custom button instead of standard submit formelement

2003-01-29 Thread Justin French
The W3.org site is down at the moment, so I can't confirm this, but I'm pretty sure... input type=submit name=parent value=foo src=icon.gif / ... is correct, but I've never done it :) I think the page you want to look at is: http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT Cheers,

Re: [PHP] Context

2003-01-30 Thread Justin French
AFAIK, PHP skips over anything out side the ? and ?... so yes, technically, it would be a little faster. End of the day, such a small gain could probably be made up elsewhere by optimising a function you use on every page, or something else like that. It's been said on the list many times

Re: [PHP] How to check for refresh in PHP

2003-01-30 Thread Justin French
Not really that simple. You can't use the HTTP_REFERER, because it's not set when the user refreshes (at least on my browser, so at best it will be unreliable). Common ways to prevent such things happening (like voting for a pic or song or poll more than once) are usually done with either: 1.

Re: [PHP] .php extensions versus .html

2003-01-31 Thread Justin French
I think what you've seen is shtml / ssi / server side includes, but anyway, since you asked: 1. create a .htaccess file which pushes *all* .php pages through PHP I *THINK* the code is something like: Files ~ \.html$ ForceType application/x-httpd-php /Files But you should check the apache

Re: [PHP] need some guidance

2003-01-31 Thread Justin French
On a major level, create or use a large CMS (content management system), and use the information you have in the databases / file system to establish what's new, modified, etc. On a smaller level, you could check which files have been updated in X days (I think) with PHP, and display them as a

Re: [PHP] PHP Apache

2003-01-31 Thread Justin French
strings must be wrapped in quotes $name = 'ab'; Justin on 31/01/03 8:45 PM, Aaron Stephan William Boeren ([EMAIL PROTECTED]) wrote: The script: ?php #start variables $name = ab; $age = 16; #start script echo Hi, my name is $name and I'am $age years old.; ? -- PHP General Mailing

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Justin French
Firstly, try uploading two SMALL files (say, no more than 1k each), just to check if it's an issue with *two files*, or an issue with *file size*, *script time outs* (maximum execution time) or something else. Start ruling them out, one at a time. Justin on 01/02/03 12:03 AM, Antti ([EMAIL

Re: [PHP] Exclusion in Regex not working

2003-01-31 Thread Justin French
Can I make a suggestion? I tend to look at the issue of user input the other way around... rather than excluding things I don't think I want, I choose in allow things I *DO* want... so instead of saying a username shouldn't contain !@#$%^*()_+-=?:';, I say it should contain a-zA-Z0-9_-. This

Re: [PHP] php and Mac running 8.6

2003-02-02 Thread Justin French
on 02/02/03 3:30 PM, Bobbi-Lea ([EMAIL PROTECTED]) wrote: I've just installed php, zend developer, mysqladmin, and apache on my pc laptop. Are there any available for mac 8.6 ? Not to the best of my knowledge... mac OSX has though :) Justin -- PHP General Mailing List

Re: [PHP] index.php

2003-02-02 Thread Justin French
Strange -- can u change it to foo.php and execute it, or do you get a 404 error (not found)? Justin on 03/02/03 12:45 PM, Renato Lopes ([EMAIL PROTECTED]) wrote: Hi! I have called a index.php file in a directory. Every time I point my browser to that directory the contents of the

Re: [PHP] including files...

2003-02-02 Thread Justin French
on 03/02/03 5:28 AM, John W. Holmes ([EMAIL PROTECTED]) wrote: Pretty much. Only addition is to make sure filename.inc can't be viewed through the browser. ... by having apache refuse to server all .inc files through http, via the use of a .htaccess file (assuming apache server) Cheers,

Re: [PHP] question

2003-02-02 Thread Justin French
on 02/02/03 7:56 AM, Karl James ([EMAIL PROTECTED]) wrote: what is a winmail.dat file? PLEASE don't post in rich text / HTML -- you've been asked more than once PLEASE ask php-specific questions Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mail functions in php

2003-07-23 Thread Justin French
Have you read the mail page in the manual? Didn't think so :) It discusses multipart messages/attachments/etc, links to and provides examples/tutorials on the topic, etc etc. Start there, then come back if you get stuck. http://au.php.net/manual/en/function.mail.php Justin On Wednesday,

Re: [PHP] Opinon please - Host refuses to install a later version than 4.2.3 - says they're too buggy.

2003-07-23 Thread Justin French
This really should be asked on a MySQL list for starters, but my advice is to search for a host that WILL upgrade or do what you want/need. There are 1000's of hosts out there... you shouldn't have any trouble finding a host to meet your requirements, and (at least for me) changing hosts is as

[PHP] do i need to output headers on parsed CSS files?

2003-07-23 Thread Justin French
on these PHP-parsed CSS files? TIA Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Justin French
On Thursday, July 24, 2003, at 12:18 PM, Curt Zirzow wrote: And in my case I would never see the next page. I have javascript turned off. Never rely on javascript to do the work, excpecially in small cases like this when php can handle it without any issues, such as javascript being turned

Re: [PHP] do i need to output headers on parsed CSS files?

2003-07-23 Thread Justin French
On Thursday, July 24, 2003, at 01:05 PM, Mike Brum wrote: Justin, when you echo/print your CSS info, you can add tabs /t and newlines /n to your documents for indentation and organization in the source if that's what you're after. Otherwise, when you output it to the browser it's going to print

Re: [PHP] do i need to output headers on parsed CSS files?

2003-07-23 Thread Justin French
Yup, that worked... thanks to everyone for their help :) Justin On Thursday, July 24, 2003, at 01:50 PM, Chris Shiflett wrote: Yeah, that's a very good guess. You should be able to do something like this to specify the content type yourself: header('Content-Type: text/css'); -- PHP General

[PHP] looking for some kind of CMS breakthough (slightly OT)

2003-07-28 Thread Justin French
Hi all, I've been writing CMS's for years now, and at the moment, I find myself looking for some breakthrough, or at the very least, a change in the way I do things. Anyone can write a CMS to manage simple articles with a data structure like: id author date_written heading body keywords

[PHP] tags to lowercase

2003-07-29 Thread Justin French
to be needed more and more in order to comply with XHTML strict. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tags to lowercase

2003-07-30 Thread Justin French
Sounds great, although I doubt my host will install... has anyone considered such a beast running as a PHP function/class? Justin On Wednesday, July 30, 2003, at 02:53 PM, Jeff Harris wrote: On Jul 30, 2003, Curt Zirzow claimed that: |* Thus wrote Justin French ([EMAIL PROTECTED]): | Hi all

Re: [PHP] Re: looking for some kind of CMS breakthough (slightly OT)

2003-07-30 Thread Justin French
, with a heavy reliance on site-wide CSS, rather than an in-line style of mark-up and styling. But, it may end up being the only option :) Justin French On Thursday, July 31, 2003, at 03:51 AM, Pete James wrote: Why not use a wysiwyg edit box? There are quite a few of them... unless you don't want

Re: [PHP] tags to lowercase

2003-07-31 Thread Justin French
Not really that useful -- essentially I want this as part of a CMS On Thursday, July 31, 2003, at 11:55 AM, Jason Sheets wrote: Tidy is available for DOS as well, you could run it on your windows machine locally then upload the source to your host. Jason -- PHP General Mailing List

Re: [PHP] tags to lowercase

2003-07-31 Thread Justin French
, and offered to compile it too!), so that may be the other option. With any luck, I should be able to write some wrappers to tidy from within a PHP script. Thanks to everyone for their help, Justin On Thursday, July 31, 2003, at 12:41 PM, Curt Zirzow wrote: * Thus wrote Justin French

Re: [PHP] Re: value submit button

2003-07-31 Thread Justin French
Do some testing in a few browsers to see what happens when the user hits enter or return, rather than clicking on the button(s)... I *think* you need to put in a hidden element. For example, if you wanted submit2 to be the default value: ?=$_POST[submit]? form method=post input

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-03 Thread Justin French
On Monday, August 4, 2003, at 11:33 AM, Robert Mena wrote: a) apache It seems that apache + php does not work well under heavy load so I should stick with 1.3.X right ? Any ideas where I can find a rpm package for redhat 9 ? I can't help with the Oracle question, but yes, stick with apache

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Justin French
, but maybe that can't be done (no way to know without seeing the code). Good luck, Justin French On Monday, August 4, 2003, at 01:04 PM, Micah Montoy wrote: Anyone know of a way to use a variable that isn't defined until further down the script at the top. I have a counter and once everything runs

Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Justin French
Identify common problematic characters, and develop a function (series of str_replace()'s) to convert them to suit. Over time, you can always add to this function as you spot more problematic characters. Also look at something like Tidy (see archives in the last week where it was discussed

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Justin French
Do you mean something like: ? $i = 0; $sql = SELECT a,b,c FROM foo; $res = mysql_query($sql); while($myrow = mysql_fetch_array($res)) { $i++; echo $i.br /; echo $myrow['a'] .br /; echo $myrow['b'] .br /; echo $myrow['c'] .br /; } ? Justin

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-05 Thread Justin French
If you're using CGI/Perl, WHY WHY WHY are you asking questions on a PHP list? I've given you a hint, so perhaps take that hint and ask a question on an Oracle list, or search the Oracle documentation for similar functions. Justin French On Tuesday, August 5, 2003, at 10:37 PM, Coello, David

Re: [PHP] Old version of PHP

2003-08-09 Thread Justin French
On Friday, August 8, 2003, at 09:21 AM, Dan Phiffer wrote: I'm working on an ongoing project that depends on a shared webserver running an old version of PHP (4.1.2 I believe). Is there any good reason to stick with an older version of PHP, or might it be a valid suggestion to have it

Re: [PHP] PHP Name of Script -0-T-

2003-08-10 Thread Justin French
article by Kevin Yank on sitepoint.com about membership stuff, which has recently been revised: http://www.sitepoint.com/article/319 And a whole bunch of contact databases at google: http://www.google.com/search?q=%22contact+database%22+PHP+Mysqlie=UTF- 8oe=UTF-8 Justin French On Wednesday

Re: [PHP] Filling a text field

2003-08-11 Thread Justin French
Any of these will work: input type='text' name='foo' value='?php echo $foo; ?' size='20' / input type='text' name='foo' value='?=$foo?' size='20' / ? echo input type='text' name='foo' value='{$foo}' size='20' /; ? easy :) Justin On Monday, August 11, 2003, at 07:01 PM, bob pilly wrote: Hi all

Re: [PHP] Simple cookie question

2003-08-11 Thread Justin French
On Sunday, August 10, 2003, at 01:36 PM, Liam Gibbs wrote: Does it have to be a cookie? I use the IP address and store that somewhere. Liam, please don't advise relying on the IP address for anything. It's been discussed to death on the list before, but in short, the highlights are: 1.

Re: [PHP] Old version of PHP

2003-08-12 Thread Justin French
On Friday, August 8, 2003, at 10:28 AM, Neil Davis wrote: Fellas, can't see how this should be an issue. It is a security issue. Most ISP's don't allow register_globals to be turned on. Read the php docs about register_globals. Zeev and company explain it better than I can.

Re: [PHP] checking the return value of member function with empty

2003-08-14 Thread Justin French
Count the number of ('s and )'s, or get a text editor which can help you balance them out in some way: 1 2 3 321 if (!empty($this-GetParam('someparameter'))) { // foo } This *SHOULD* be syntactically correct, but php doesn't think so. Should I

Re: [PHP] Container functions....

2003-08-14 Thread Justin French
Sounds like you're trying to replicated something in ColdFusion? I have a few blocks of code on my pages which are only executed on my development server, not the live server -- is this what you want? if(ereg(192.168.0.,$_SERVER['SERVER_ADDR'])) { $local = 1; } else

Re: [PHP] getting images?? Help!!

2003-08-14 Thread Justin French
On Tuesday, August 12, 2003, at 11:26 AM, Micah Montoy wrote: I have created a little image manager. Mainly for personal usage but I have a few friends that would like it as well. Anyway, the problem that I've run into is that I can only select one file at a time using the form attribute

Re: [PHP] Best PHP CMS

2003-08-14 Thread Justin French
It'd be nice if the demo's worked! Justin On Wednesday, August 6, 2003, at 12:31 PM, Ralph Guzman wrote: Any opinions on ezPublish 3? http://www.ez.no/ I am considering this as a CMS and framework for my future projects. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: on specific time in the month do script!!

2003-08-14 Thread Justin French
Specific Day: ? $today = date('j'); // eg 1 - 31 if($today 2) { // show } else { // don't show } ? Addition of specific time frame of 12noon - 4pm ? $today = date('j'); // eg 1 - 31 $hour = date('G'); // eg 0

<    3   4   5   6   7   8   9   10   11   12   >