php-general Digest 7 Jun 2007 11:35:54 - Issue 4834
Topics (messages 256254 through 256265):
Re: Parse domain from URL
256254 by: Stefan Wixfort
256264 by: Robin Vickery
Re: More include issues
256255 by: Robert Cummings
256256 by: Jared Farrish
Hi all. I have a DocBook source[1] that I am processing into XHTML using the
DocBook XSL[2] toolchain. That is, XSLT. I'm not doing a huge amount of
customization on top of the default setup, either. Right now, I'm using the
standard XSLT Java toolchain; Xalan, Xerces, XIncluder, and all of
Hi,
I can make the files now after setting the permission to my images folder
but I cannot delete the folder or images in it. I have tried unlink and
rmdir with no success. Even with filezilla cannot delete it
The problem seems to be the images that are set to chmod of 600 and cannot
be
Hi,
I can make the files now after setting the permission to my images folder
but I cannot delete the folder or images in it. I have tried unlink and
rmdir with no success. Even with filezilla cannot delete it
The problem seems to be the images that are set to chmod of 600 and cannot
be
Robert Cummings wrote:
On Wed, 2007-06-06 at 20:26 -0500, Jared Farrish wrote:
On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote:
I feel ya brotha! I think Stut might be having a bad day...
Bad day?? Did you read the same posts I read?
On 06/06/07, Brad Fuller [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On 6/6/07, Brad Fuller [EMAIL PROTECTED] wrote:
I need to strip out a domain name from a URL, and ignore subdomains
(like www)
I can use parse_url to get the hostname. And my first thought was to
take the last 2
use the function chmod
chmod($img_url, 0777); //note the leading 0, it should be there
I hope this is what you want:
--
itoctopus - http://www.itoctopus.com
Ross [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I can make the files now after setting the permission to my
Otherwise you have to start again from scratch in python code (creating
more places for bugs to hide and making the whole thing more complicated).
While they can access the same database, there's nothing else they can
share.
Micro$oft expressed interest in Python. But I don't know whether it's a
No I want it to be 777 when I upload it not upload it nd have to change it.
itoctopus [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
use the function chmod
chmod($img_url, 0777); //note the leading 0, it should be there
I hope this is what you want:
--
itoctopus -
n relation to my other posts it is not that the folder permission are not
working, when I put an image inside them the image automatically has a 600
chmod and has the owner is 'nobody'. This means I cannot delete the files.
mkdir('images/'.$customer_id, 0755);
chown('images/'.$customer_id,
umask
blueboy wrote:
t: 0131 553 3935 | m:07816 996 930 | [EMAIL PROTECTED] |
http://www:blue-fly.co.uk
I cannot delete a couple of folders on the server as the have the owner
'nobody'. All I am doing is making the folders with
mkdir($customer_id, 0755);
Now is there a way to set the ownership
Larry Garfield wrote:
Hi all. I have a DocBook source[1] that I am processing into XHTML using the
DocBook XSL[2] toolchain. That is, XSLT. I'm not doing a huge amount of
customization on top of the default setup, either. Right now, I'm using the
standard XSLT Java toolchain; Xalan,
Hi,
What I want is to send a complete HTTP request, including special
headers, to another server over a HTTP proxy. Is this possible with
PHP?
I've seen the manual, and it doesn't say anything about proxy. I've
checked the comments on the fsockopen page, and there's a comment
about it for using
On 6/7/07, Ross [EMAIL PROTECTED] wrote:
n relation to my other posts it is not that the folder permission are not
working, when I put an image inside them the image automatically has a 600
chmod and has the owner is 'nobody'. This means I cannot delete the files.
On 6/7/07, Man-wai Chang [EMAIL PROTECTED] wrote:
Otherwise you have to start again from scratch in python code (creating
more places for bugs to hide and making the whole thing more complicated).
While they can access the same database, there's nothing else they can
share.
Micro$oft
On Thu, 2007-06-07 at 10:46 -0400, Daniel Brown wrote:
On 6/7/07, Man-wai Chang [EMAIL PROTECTED] wrote:
Otherwise you have to start again from scratch in python code (creating
more places for bugs to hide and making the whole thing more complicated).
While they can access the same
On 6/7/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Thu, 2007-06-07 at 10:46 -0400, Daniel Brown wrote:
On 6/7/07, Man-wai Chang [EMAIL PROTECTED] wrote:
Otherwise you have to start again from scratch in python code (creating
more places for bugs to hide and making the whole thing more
On 6/7/07, Robin Vickery [EMAIL PROTECTED] wrote:
On 06/06/07, Brad Fuller [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On 6/6/07, Brad Fuller [EMAIL PROTECTED] wrote:
I need to strip out a domain name from a URL, and ignore subdomains
(like www)
I can use parse_url to get the
Hello,
I want to allow uploading of huge video files, which may be as big as 4 GB. But
when I try to set
post_max_size = 4G
upload_max_filesize = 4G
in php.ini, it doesn't work and everything in post (posted data) is ignored.
I get a warning about size of posted data greater than some
[EMAIL PROTECTED] wrote:
Hi,
I can make the files now after setting the permission to my images
folder but I cannot delete the folder or images in it. I have tried
unlink and rmdir with no success. Even with filezilla cannot delete it
The problem seems to be the images that are set to
Sukhwinder Singh wrote:
I want to allow uploading of huge video files, which may be as big as 4 GB. But when I try to set
post_max_size = 4G
upload_max_filesize = 4G
in php.ini, it doesn't work and everything in post (posted data) is ignored.
I get a warning about size of posted data greater
I was reading the handbook on the topic of Unix process control. The first
thing it says is:
Process Control support in PHP implements the Unix style of process
creation, program execution, signal handling and process termination. Process
Control should not be enabled within a web server
Thanks for your reply.
So you are saying I cannot do it using php. These files have to be uploaded
locally but using web interface and I have to pass some parameters along
with file upload to update the database after upload is successful. Also I
have to rename the file after it is uploaded.
Hello,
I want to allow uploading of huge video files, which may be
as big as 4 GB. But when I try to set
post_max_size = 4G
upload_max_filesize = 4G
in php.ini, it doesn't work and everything in post (posted
data) is ignored.
I get a warning about size of posted data greater
Hi. One big diferrence is that python can be run interactively, while
php not. That's a really good advantage to debug the scripts. Anyway,
use the one you fell more comfortable.
2007/6/7, Abdullah Ramazanoglu [EMAIL PROTECTED]:
Hello,
I'm already (going to) use php for web based
Sukhwinder Singh wrote:
Thanks for your reply.
So you are saying I cannot do it using php. These files have to be
uploaded locally but using web interface and I have to pass some
parameters along with file upload to update the database after upload is
successful. Also I have to rename the
Greetings. I just want to say thanks for the help over the past couple of
days.
I am trying to get a form to delete a file.
If the file ends in .php, then I want it to unlink from a certain folder.
However, if the file ends in .html or .htm, I want it to unlink from another
folder.
Is there any
On 6/7/07, jose javier parra sanchez [EMAIL PROTECTED] wrote:
Hi. One big diferrence is that python can be run interactively, while
php not. That's a really good advantage to debug the scripts. Anyway,
use the one you fell more comfortable.
2007/6/7, Abdullah Ramazanoglu [EMAIL PROTECTED]:
Rumor has it that uploaded files are stored in memory before being
committed
to disk. If so, the amount of free RAM available to PHP would be the limit
to the filesize regardless of the ini file settings.
I don't think that is the case. File is written to temp directory as it is
uploaded.
And
Is there anything special you need to do to utilize these functions? The
former says it's available in versions 4 and 5 while the latter states that
it's available in versions = 4.3 and 5 (although is deprecated). I'm
currently running PHP version 4.3.11 on a Windows NT box. Based on both
On 6/7/07, Steve Marquez [EMAIL PROTECTED] wrote:
Greetings. I just want to say thanks for the help over the past couple of
days.
I am trying to get a form to delete a file.
If the file ends in .php, then I want it to unlink from a certain folder.
However, if the file ends in .html or .htm, I
A beeter method is to send the file via ftp. I think most browsers
allow this. And for example store the file in a user specific file.
Then the user, via a web interface, select the file it has uploaded
and do the rest of the operations you need.
Along with uploading the file I also have to
Sukhwinder Singh wrote:
Rumor has it that uploaded files are stored in memory before being
committed
to disk. If so, the amount of free RAM available to PHP would be the
limit
to the filesize regardless of the ini file settings.
I don't think that is the case. File is written to temp
I would hazard a guess that you're overflowing a signed 32-bit int by
specifying 4gig, but I could be wrong. It's certainly not the issue.
Yes you are right. That is what is happening.
Sukhwinder Singh
- Original Message -
From: Stut [EMAIL PROTECTED]
To: Sukhwinder Singh [EMAIL
[snip]
Is there any way to do this?
?
$extension =
str_replace('.','',strtolower(strrchr('installer.php',.)));
if($extension == php) {
// Do your unlink() routine for PHP here.
} elseif(strstr($extension,htm)) {
// Do your unlink() routine for .htm/.html files here will
also do
On 6/7/07, Chris Boget [EMAIL PROTECTED] wrote:
Is there anything special you need to do to utilize these functions? The
former says it's available in versions 4 and 5 while the latter states that
it's available in versions = 4.3 and 5 (although is deprecated). I'm
currently running PHP
Sounds like a problem with the installation.
What could go wrong with an installation on a Windows machine that uses
the binaries? Why would it be only these functions (that I can tell) that
would be missing? Is there somewhere I can go and check (possibly using
phpinfo()) to find out if
On 6/7/07, Steve Marquez [EMAIL PROTECTED] wrote:
Thank you very much! That worked.
--
Steve M.
on 6/7/07 11:31 AM Daniel Brown ([EMAIL PROTECTED]) wrote:
On 6/7/07, Steve Marquez [EMAIL PROTECTED] wrote:
Is the installer.php my form file?
--
Steve M.
on 6/7/07 11:12
On 6/7/07, Chris Boget [EMAIL PROTECTED] wrote:
Sounds like a problem with the installation.
What could go wrong with an installation on a Windows machine that uses
the binaries? Why would it be only these functions (that I can tell) that
would be missing? Is there somewhere I can go and
Sounds like a problem with the installation.
What could go wrong with an installation on a Windows machine that uses the
binaries? Why would it be only these functions (that I can tell) that would
be missing? Is there somewhere I can go and check (possibly using
phpinfo()) to find out if
Here is a function you and others may find helpful. It may need some work, I
haven't fully checked it out.
DOC_ROOT is $_SERVER['DOCUMENT_ROOT']
ftp_conn() is a simple ftp connection function.
/**
* dir_perms()
*
* Checks to see who is dir owner and uses ftp or php to change
On 6/7/07, Daniel Brown [EMAIL PROTECTED] wrote:
On 6/7/07, Chris Boget [EMAIL PROTECTED] wrote:
Sounds like a problem with the installation.
What could go wrong with an installation on a Windows machine that uses
the binaries? Why would it be only these functions (that I can tell) that
Oh, I also forgot to ask what do you get when you use stat()?
stat() works, but not if I pass in the actual name of the file. I have to
use fstat() in order to get the proper data. I'll have to check to see if
there are any functions disabled in the php.ini (I don't believe there are
Have you uncommented or added `extension=php_mime_magic.dll` in
your php.ini file for mime_content_type()? What about adding
something like this, as well:
extension=php_mime_magic.dll is commented out in my php.ini. So that
explains why the mime_content_type() isn't working. That's fine.
I was reading the handbook on the topic of Unix process control. The first
thing it says is:
Process Control support in PHP implements the Unix style of process
creation, program execution, signal handling and process termination. Process
Control should not be enabled within a web server
On 6/7/07, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
this question is already posted thousand times. but, after I tried for 2
hours to figure it out, I gave up and posted the question here.
I'm rebuilding one site. php 4.4.4
as usual, register_globals on, as well as magic_quotes.
I tried to turn
Sounds like you need a Java applet. I have little experience with this,
but I know that quite a few exist. I have no idea if any of them support
sending meta data with the upload. I suggest you start Googling.
Even java applets have to hand over the file to some script, in this case
php and
Rumor has it that uploaded files are stored in memory before being
committed
to disk. If so, the amount of free RAM available to PHP
would be the limit
to the filesize regardless of the ini file settings.
I don't think that is the case. File is written to temp
directory as it is
Tijnema wrote:
On 6/7/07, Afan Pasalic [EMAIL PROTECTED] wrote:
hi,
this question is already posted thousand times. but, after I tried for 2
hours to figure it out, I gave up and posted the question here.
I'm rebuilding one site. php 4.4.4
as usual, register_globals on, as well as
I've got a script that imports several CSV files via the Load Data File
command.
I need to know if each import query was successful or failed.
Is there a way to log the success/failure of each query including how
many rows were inserted?
Thanks,
Dave
I've got a script that imports several CSV files via the Load
Data File
command.
I need to know if each import query was successful or failed.
Is there a way to log the success/failure of each query including how
many rows were inserted?
I assum you are using MySQL,
Does file_get_contents() not work with absolute paths? I'm able to
successfully write data to a file that I create dynamically but when I go
back to actually read the contents of the file, nothing seems to work. Not
file_get_contents(), not file(), not fread() and not fgets();
$mydata =
Hello,
I am working off my development machine (my home pc) and I just loaded the
php-sdkfolder in my root directory and than ran php-sdk/install.php and got
this message.
INSTALLATION ERROR: One or more required PHP extensions is missing: openssl
I am not sure where to look for a fix.
Chris dedi ki:
Abdullah Ramazanoglu wrote:
--8--
Personally I'd stick to one or the other for the whole project, you'll
save yourself a lot of headaches in the future.
Thank you Chris, for the insight. The more I think about it, the closer I
get to the same conclusion. I've already made up
On Thu, 2007-06-07 at 15:39 -0400, Chris Boget wrote:
Does file_get_contents() not work with absolute paths? I'm able to
successfully write data to a file that I create dynamically but when I go
back to actually read the contents of the file, nothing seems to work. Not
What's going on?
That's the strangest absolute path I've ever seen... it seems to have
some kind of non-absolute prefix.
This has been a troll :)
Pardon? I'm not sure what you mean?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Daniel Brown dedi ki:
On 6/7/07, Man-wai Chang [EMAIL PROTECTED] wrote:
--8--
Interesting reading:
http://wiki.w4py.org/python-vs-php.html
Really interesting. It was a relief for me to see that even a somewhat
biased document written by python champions didn't reveal serious
On 6/7/07, Abdullah Ramazanoglu [EMAIL PROTECTED] wrote:
Daniel Brown dedi ki:
On 6/7/07, Man-wai Chang [EMAIL PROTECTED] wrote:
--8--
Interesting reading:
http://wiki.w4py.org/python-vs-php.html
Really interesting. It was a relief for me to see that even a somewhat
biased
On Thu, 2007-06-07 at 16:09 -0400, Chris Boget wrote:
What's going on?
That's the strangest absolute path I've ever seen... it seems to have
some kind of non-absolute prefix.
This has been a troll :)
Pardon? I'm not sure what you mean?
Just jabbing at windows :)
Cheers,
Rob.
--
Nathan Nobbe wrote:
I was reading the handbook on the topic of Unix process control. The first
thing it says is:
Process Control support in PHP implements the Unix style of process
creation, program execution, signal handling and process termination.
Process
Control should not be enabled
Sukhwinder Singh wrote:
Sounds like you need a Java applet. I have little experience with
this, but I know that quite a few exist. I have no idea if any of them
support sending meta data with the upload. I suggest you start Googling.
Even java applets have to hand over the file to some
Hi,
I just posted something like a how-to about making your very own PHP-based
lightweight MVC framework.
Hope you like it:
http://vladev.blogspot.com/2007/06/implementing-your-very-own-lightweight.html
Regards,
Emil Ivanov
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Thu, 2007-06-07 at 16:19 -0400, Daniel Brown wrote:
On 6/7/07, Abdullah Ramazanoglu [EMAIL PROTECTED] wrote:
If I'm not completely mistaken, I think that Python can even
interface with the GNOME libraries. PHP could theoretically do that,
as well, if someone went through and created
Even java applets have to hand over the file to some script, in this case
php and php will get it in $_FILES array it seems (in case of japplet).
so the problem will remain.
Not at all true. A Java applet can use FTP to handle the upload and still
pass meta data about the file as an HTTP POST
On 6/7/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Thu, 2007-06-07 at 16:19 -0400, Daniel Brown wrote:
On 6/7/07, Abdullah Ramazanoglu [EMAIL PROTECTED] wrote:
If I'm not completely mistaken, I think that Python can even
interface with the GNOME libraries. PHP could theoretically do
On Thu, 2007-06-07 at 23:30 +0300, Emil Ivanov wrote:
Hi,
I just posted something like a how-to about making your very own PHP-based
lightweight MVC framework.
Hope you like it:
http://vladev.blogspot.com/2007/06/implementing-your-very-own-lightweight.html
Personally, I hate front-end
On Thu, 2007-06-07 at 16:36 -0400, Daniel Brown wrote:
On 6/7/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Thu, 2007-06-07 at 16:19 -0400, Daniel Brown wrote:
I had one of those little screams yesterday when I started using the
PHP's id3 lib when I realized it's crap because it can't
Robin Vickery wrote:
In that case you can't do it just by parsing alone, you need to use
DNS.
?php
function get_domain ($hostname) {
dns_get_record($hostname, DNS_A, $authns, $addt); return
$authns[0]['host']; }
print get_domain(www.google.com) . \n; print
get_domain(google.com) .
Sukhwinder Singh wrote:
Even java applets have to hand over the file to some script, in this
case php and php will get it in $_FILES array it seems (in case of
japplet). so the problem will remain.
Not at all true. A Java applet can use FTP to handle the upload and
still pass meta data about
On 6/7/07, Brad Fuller [EMAIL PROTECTED] wrote:
Robin Vickery wrote:
In that case you can't do it just by parsing alone, you need to use
DNS.
?php
function get_domain ($hostname) {
dns_get_record($hostname, DNS_A, $authns, $addt); return
$authns[0]['host']; }
print
You don't appear to have read what I said. A Java applet can use FTP to
upload the file - PHP does not get involved in that part. Once the upload
is complete the applet can POST to your PHP file giving it information
like where it's put the file and this other information you need to give
it
Robert Cummings wrote:
On Thu, 2007-06-07 at 16:36 -0400, Daniel Brown wrote:
Are you using Amarok on Windows, Linux, or other? I have Amarok
1.3.1 on KDE 3.4.2 on Mandriva 2006.0 Community on 2.6.12-12mdksmp on
an i686 Intel(R) Pentium(R) 4 CPU 2.60GHz w/ 1GB RAM on a desk with a
bunch
Sukhwinder Singh dedi ki:
--8--
I have read. I have been trying to find out way for last two days.
I can say about jupload and how it seems to work.
It uploads file to server in a temporary directory.
It has postURL parameter. Then it POSTS the data to php file.
Because it POSTS, the php
Sorry but I couldn't follow. If I understood correctly, there's 50M (or
4G,
for that matter) data, and there's say 5K metadata. First, java applet
uploads the bulk data over ftp to a temp directory on the server
(employing the ftp service running on the server - not apache/php).
If/when the bulk
Hi all,
Does PHP happen to have something similar to Perl's File::Tail -
http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm?
I'm looking to be able to tail a file on the server side and somehow
figure out how to use AJAX to keep the file consistently updated through
to the client.
Any
On Thu, 2007-06-07 at 23:33 +0100, Colin Guthrie wrote:
Robert Cummings wrote:
On Thu, 2007-06-07 at 16:36 -0400, Daniel Brown wrote:
Are you using Amarok on Windows, Linux, or other? I have Amarok
1.3.1 on KDE 3.4.2 on Mandriva 2006.0 Community on 2.6.12-12mdksmp on
an i686 Intel(R)
My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4.
Our PHP programmer has developed quite a few PHP email forms and each
time an email is sent, the FROM: address is
[EMAIL PROTECTED] I don't know if this is a PHP
problem or apache problem (or even a sendmail problem for that
On Thu, 2007-06-07 at 22:03 -0400, Dylan Bouterse wrote:
My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4.
Our PHP programmer has developed quite a few PHP email forms and each
time an email is sent, the FROM: address is
[EMAIL PROTECTED] I don't know if this is a PHP
On Fri, 2007-06-08 at 04:29 +0100, brice wrote:
Hi,
I was wondering if anybody had any ideas about how to tackle this problem:
I have just set up Apache2.2 and php5 on VISTA using mod_php. Php page load
work fine for most things. However, when i try to separate some .php files
for
Hi,
I was wondering if anybody had any ideas about how to tackle this problem:
I have just set up Apache2.2 and php5 on VISTA using mod_php. Php page load
work fine for most things. However, when i try to separate some .php files
for inclusion throughout the website in a separate folder to the
81 matches
Mail list logo