Re: [PHP] Would appreciate thoughts on session management

2002-11-14 Thread Charles Wiltgen
you can click on requires its own invisible form storage somewhere, plus JavaScript code. For example, a simple calendar using POST needs (I estimate) at least 5x the amount of data sent to the client. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Charles Wiltgen
Hello, Many thanks for the responses! It's working great now... -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trivial newbie regex question

2002-11-13 Thread Charles Wiltgen
tle -- this means, "Starting with the forward slash closest to the end of $source, capture whatever comes after it and before '.html', and put it in $dest." Obviously not correct, but I've spent an embarrassing amount of time feel stupid. Help? -- Charles Wiltgen --

Re: [PHP] Web page doesn't display until script is done?

2002-11-13 Thread Charles Wiltgen
Rasmus, > try flush() Thanks! -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Including without a file

2002-11-13 Thread Charles Wiltgen
Khalid El-Kary wrote... > you may use chown, chgrp, chmod :^) Not if the hosting provider knows what they're doing. -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Web page doesn't display until script is done?

2002-11-13 Thread Charles Wiltgen
PHP script completes? -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Including without a file

2002-11-13 Thread Charles Wiltgen
ince I have to delete and write via FTP. In my experience, generally you can't write directly to files using PHP, since it's running as a different user than the ones who owns the directory. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Including without a file

2002-11-13 Thread Charles Wiltgen
Hello, I was looking for a way to include() from a variable. I can't just use eval(), since what's in the variable is a mixed PHP/XHTML. Well, it turns out that there's an answer in the user notes, which haven't worked on php.net for a few days. Basically, you eval("?

Re: [PHP] Would appreciate thoughts on session management

2002-11-13 Thread Charles Wiltgen
t's simpler than you're thinking. This method just allows you to use GET variables instead of POST variables, but without the GET drawback of the user seeing what you're sending in the address bar. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Charles Wiltgen
Gerard Samuel wrote... > Do you store this utf-8 stuff only in xml files?? Do you use a database? I > was under the impression that mysql doesn't support utf-8 Yeah, that would be a problem. I didn't think MySQL would be an issue, and I'll investigate... -- Charles Wilt

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Charles Wiltgen
Hello, I anyone out there using UTF-8 for files and databases? I want to use it for everything, and it'd be a major hassle if PHP's UTF-8 support was super- dependent on underlying OS issues, so any feedback is appreciated. -- Charles Charles Wiltgen wrote... > How mature is

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
isible GET method avoids all of this. <http://www.getsome.com/> -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
o send a new value for a variable, I just have link that looks like <http://www.domain.com/submit.php?variable=3>. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
an generate even that on the fly with JavaScript, but I don't know anything about JavaScript. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
c. Exactly -- this is the problem that's solved by using my Invisible Get method. With this method, the URL doesn't get filled with session object properties which aren't useful (or wanted) outside of the current session. -- Charles Wiltgen -- PHP General Mailing List (http://www.

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
transient session information in the URL. If the only drawback to Invisible Get is the (unnoticeable) serving of the tiny interim page, I think this could be a really good solution. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] _POST & _GET

2002-11-12 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... > Sorry for the long post, but I believe it is important to have a look at the > relevant standards from time to time. Very informative, thanks! -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Would appreciate thoughts on session management

2002-11-11 Thread Charles Wiltgen
y, though -- I'm trying very hard not to pollute the web folder with anything that I don't have to, and file creation/deletion is very expensive since I have to do it via FTP. Any ideas on this one? -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] automatically updating software

2002-11-11 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... >> You could use eval(), but that didn't work for me since I had mixed >> PHP/XHTML. > > Why wouldn't it work? Your example worked wonderfully, but I wasn't able to make eval() work with mixed PHP/XHTML content (which is what I

Re: [PHP] automatically updating software

2002-11-11 Thread Charles Wiltgen
m like that, no write access hassles. Can that be done? Can you > keep your functions in a database and "include" them from there? You could use eval(), but that didn't work for me since I had mixed PHP/XHTML. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Copy & Paste URL was [Re: [PHP] Would appreciate thoughts onsession management ]

2002-11-11 Thread Charles Wiltgen
es and all, but at least you'd limit the damage. I'm sure some of the more experienced people on the list can suggest additional stuff to check against. -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us asp

Re: [PHP] automatically updating software

2002-11-11 Thread Charles Wiltgen
ire write access that may introduce security issues? Security issues will prevent you from reading or writing any files that your PHP process doesn't have permissions for. In my experience, the only reliable way to do this is by using FTP using the username and password that the user will (pr

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Charles Wiltgen
David Rice wrote... > It's not "mandatory" to put quotes around attributes, but it would be wise to > use this style="recommended" method of representing attributes, if for no > reason="other" than to get used to a habit="good". It is mandato

Re: [PHP] Re: Request entity too large (already seen the FAQ)

2002-11-10 Thread Charles Wiltgen
Ask your worst, but search the archives first! <http://marc.theaimsgroup.com/?l=php-general> ...appeared at the bottom of the messages. List Mom? -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would appreciate thoughts on session management

2002-11-10 Thread Charles Wiltgen
and Ernest, for straightening me out on PHP sessions -- my only excuse is that the otherwise very-helpful "Professional PHP Programming" barely discusses them. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Would appreciate thoughts on session management

2002-11-10 Thread Charles Wiltgen
ssion IDs appear in a URL, and (3) I prefer not to use require a database just to store persistent properties. Are there drawbacks to storing persistent object properties as a serialized value in hidden fields that I'm missing? This is a newbie's first major web application, so I really

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-08 Thread Charles Wiltgen
you have them. If you don't know anything about using PHP and MySQL, buy one of the many fine books available on the subject. Or, you could just pay someone to do it for you. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE

2002-11-08 Thread Charles Wiltgen
I want to have it happen in a real time scenario There are several helpful people on the list, but you have to ask specific questions. If you want someone to do it for you, then you should give folks an idea what what you're willing to pay per hour or for the entire project. -- Charles Wi

Re: [PHP] Wildcard search

2002-11-08 Thread Charles Wiltgen
any security-conscious providers don't allow shell_exec(). Mine doesn't. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File locking problem

2002-11-08 Thread Charles Wiltgen
ervers out there. I will add a note to the documentation along the lines of "If you fopen() to an FTP URI, write some stuff, fflush() and ffclose(), that doesn't mean the file is complete (or that it even exists). Check for both of these things before you do anything with the file.

Re: [PHP] PHP fopen() bug + solution

2002-11-08 Thread Charles Wiltgen
Ernest, > To be more effective, and to allow the OS to do something else while you're > waiting at the file, your script should sleep for some microseconds... An excellent suggestion, thanks very much! :^) -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] File locking problem

2002-11-08 Thread Charles Wiltgen
() until it's larger than 10 bytes. I should while() until it's the size of the data I've written, but this method has been reliable so far. -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin an

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Marco Tabini wrote... > Ok, here's another possibly stupid solution. Not at all. My solution was not far from that -- I have to wait for the file to exist, and then to have something in it, and then include it. (See my "PHP fopen() bug + solution" post.) Thank you,

[PHP] PHP fopen() bug + solution

2002-11-07 Thread Charles Wiltgen
related to the workaround of not being able to create local files as another use with PHP. I hope this saves someone a few hours, -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and UTF-8

2002-11-07 Thread Charles Wiltgen
ing OS, and that I wouldn't be able to count on this functionality. I'd love to hear about the experience of list members who use this on many different PHP platforms. Thank you, -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
The rest of the time, the file is being created correctly but not included correctly. I've tried to include() and require(). No error is ever generated, I suspect because the file exists, and include/require are being called while the file is still open (even though I've flushed and clos

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Charles Wiltgen wrote... > I'm having file locking problems. > > I'm using fopen() to write a file via FTP. At the end, I'm doing... > > fflush($fp); > fclose($fp); > > ...and then I include it immediately after. But many times I only get pa

Re: [PHP] Why this open_basedir warning?

2002-11-07 Thread Charles Wiltgen
Path() . "index.php"); include($foo); ...and IT worked every time. So the problem appears to be related to using concatenation in my include statement (?). Odd. Many thanks for the response! -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why this open_basedir warning?

2002-11-07 Thread Charles Wiltgen
20 times or so, and I can't figure out why PHP loses it's mind and thinks there's a open_basedir violation. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete a file via FTP (without PHP FTP support)

2002-11-07 Thread Charles Wiltgen
me the ability read and write files as another user, my problems would be solved. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Delete a file via FTP (without PHP FTP support)

2002-11-06 Thread Charles Wiltgen
// Delete a file via FTP function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) { $error = FALSE; // Open connection to FTP port $ftp = fsockopen($ftpServer,21); $foo = fgets($ftp); if (!ereg("^220*", $foo)) { $error = "*** Error! FTP service not r

Re: [PHP] File locking problem

2002-11-06 Thread Charles Wiltgen
is no guarantee that a file is completely written, and I'm wondering what I can do besides insert sleep() statements. -- Charles Wiltgen "Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels co

[PHP] File locking problem

2002-11-06 Thread Charles Wiltgen
x27;t really flushed and closed properly. What else can I do? Thanks, -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh

Re: [PHP] Running functions as other than nobody

2002-11-06 Thread Charles Wiltgen
27;m using fsockopen() to "speak FTP" to do things like delete files I've created with fopen(). This is far slower and more error-prone, and I'm very, VERY interested in other portable solutions. Please post whatever you find about this to the list, and I'll do the same.

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
Charles Wiltgen wrote... > I'm using sockets, and everything working except I can't CD to a directory > with a period in it (which is, of course, what I need to do). Does I need to > escapte this somehow for fputs()? Sorry, I'm an idiot...I went back to the FTP RFC and e

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... >> So, DreamHost doesn't appear to have compiled PHP with FTP support. Can >> anyone recommend a great FTP class? (I'm not exciting about doing this via >> sockets, but I will if I have to...) > > Would curl be an option? Do they have this? You could, however, alwa

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... > $fp = ftp_connect("$ftphost"); > if ($fp) { > $login = ftp_login ($fp, $user, $pass); > ftp_delete ($fp, $ftpfile); > ftp_quit($fp); > } > else die('Cannot connect to FTP'); So, DreamHost doesn't appear to have compiled PHP with FTP support. Can

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
27;t directly use the file handle > returned by fopen - that's why the PHP god has created it :) A very good point, and this will work for me. I mentioned in my first note that I'm afraid that this is about 1,000 times slower than creating/writing a "local" file, but I d

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
prompt was, I would've gone with putting the burden on the user. -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh beware

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
se with most people's service providers. I'm starting to think that PHP, although a great choice for anything but in-house software, may not be the right choice for a product aimed at non- technical people. Is there a PHPriest in the house? -- Charles Wiltgen -- PHP General Mailing

Re: [PHP] fopen() with permissions?

2002-11-05 Thread Charles Wiltgen
x27;m stumped. Many thanks for the response, and I appreciate any additional thoughts. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fopen() with permissions?

2002-11-05 Thread Charles Wiltgen
fopen($thefile, "r")-ing from there (since I think that will be faster than sending everything through an FTP server). Any feedback is appreciated, -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4.2.3 compile problem on OSX

2002-11-05 Thread Charles Wiltgen
structions on the Stepwise site. Mac OS X also comes with PHP pre-installed, although I'm not sure what version. -- Charles Wiltgen PlaybackTime <http://PlaybackTime.com/> - Great new QuickTime 6 book - Even pirates need parrots - Nokia's 6 new phones:

Re: [PHP] XML to MS Word

2002-10-31 Thread Charles Wiltgen
Manuel Lemos wrote... >>> I'd say RTF is a format you're going to be able to come to grips with >>> quicker than .doc -- just take a look at the source of a word doc -- it's >>> pretty obscure!!! >> >> And proprietary, and soon to be obsolete. But Office 11 files will be XML >> files. > > RTF i

Re: [PHP] XML to MS Word

2002-10-30 Thread Charles Wiltgen
Justin French wrote... > I'd say RTF is a format you're going to be able to come to grips with > quicker than .doc -- just take a look at the source of a word doc -- it's > pretty obscure!!! And proprietary, and soon to be obsolete. But Office 11 files will be XML fil

Re: [PHP] Re: Plug-in strategies?

2002-10-30 Thread Charles Wiltgen
; You may want to take a look at Metabase... > You may also want to look into MetaL... Thank you for the advice and pointers! :^) -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern c

[PHP] Plug-in strategies?

2002-10-30 Thread Charles Wiltgen
Hello, Does anyone know of articles that discuss best practices for supporting plug-ins? I searched for a while, but there doesn't seem to be anything out there. -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, i

[PHP] Processing current file

2002-10-30 Thread Charles Wiltgen
any tips. Thank you, -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh beware the other head of science...it bites!&