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
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
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
--
Rasmus,
> try flush()
Thanks!
-- Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 script completes?
-- Charles Wiltgen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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("?
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
() 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
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,
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
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
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
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
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
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
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
// 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
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
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
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.
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
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
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
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
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
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
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
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
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:
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
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
; 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
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
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!&
58 matches
Mail list logo