php-general Digest 22 Sep 2006 11:35:08 - Issue 4361
Topics (messages 242041 through 242060):
web browser shows blank page when accessing *.php file
242041 by: Anna Barnes
242044 by: Martin Marques
242048 by: Curt Zirzow
242049 by: Anna Barnes
242053
-Original Message-
From: Michelle Konzack [mailto:[EMAIL PROTECTED]
Sent: 19 September 2006 11:14
To: php-general@lists.php.net
Subject: [PHP] Re: Frustrated trying to get help from your site
Am 2006-09-18 14:43:12, schrieb Jon Anderson:
As an aside, I think that the online and offline
[snip]
Codegolf...
heh.. nice little twist.
[/snip]
At least we weren't asked to help someone write his homework.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anna Barnes wrote:
[Tue Sep 19 15:53:57 2006] [error] PHP Fatal error: Maximum execution
time of 60 seconds exceeded in /websites/ical/functions/ical_parser.php
on line 494
Not quite sure where to go from here.
ical_parser sounds like it is a function which sucks in information from
other
[EMAIL PROTECTED] wrote:
Hi,
Fatal error: session_start(): Failed to initialize storage module in
/home/vernoncompany.biz/includes/validations.php on line 2
validation.php:
#1 ?php
#2 session_start();
# ...
Two weeks ago I got this essage first time. And since, I'm getting more
often. Last
At 06:21 PM 9/21/2006, Chris W. Parker wrote:
Hello,
This is off topic but I wanted to get the list member's opinions on the
subject as it will probably benefit someone else.
Currently I don't use version control at all. What I do instead is have
one directory that contains my development
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote:
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote:
what about using:
php.net/pi
note the precision description.
or are we talking about a different pi.
The goal of the codegolf.com challenge is to print pi to 1000
Hello Sir/ Madame,
I am a developer working with PHP-5.1.6-Win32 and mySQL database. Following is
my question:
I successfully runs PHP-5.1.6-Win32 with Internet Information Services 6 (II6)
on Windows 2003 under ISAPI mode. Then, I runs the index.php of phpMyAdmin
software to connect to
At 2:38 PM +0200 9/22/06, Rory Browne wrote:
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote:
The goal of the codegolf.com challenge is to print pi to 1000 places.
The programmer to do it in the least keystrokes is the winner.
I personally don't think this is a very healthy contest. It
Try to copy php_mysql.dll to your system32 folder. I did it and works fine.
Nguyen, Phuong Anh Ho [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hello Sir/ Madame,
I am a developer working with PHP-5.1.6-Win32 and mySQL database. Following
is my question:
I successfully runs
On Friday 22 September 2006 07:29, Miles Thompson wrote:
Use Subversion.
For a nice Windows interface - Tortoise. Sorry, I can't rememberthe name
ofthe Linux interface.
Miles
I like kdesvn. It actually uses the svn API so it isn't just a wrapper for
the command line.
Hi All
This is all very weird and it may be that it isn't a php problem
after all.
Here is line 494 in ical_parser.php
ereg (([^:]+):(.*), $line
Additional information is
a) the mac that publishes the ical is always up, no probs there
although I should check if a system update has
We need a guy for some hourly PHP/MySQL work. Large project to start
with, plenty of incremental stuff down the road. Looking for someone
expert, with a flexible schedule who can make hours available when we
need them. Your regular hourly rate.
Also - only interested in someone local to
Hi.
I need to read urlencoded data from POST request. So far I have tried
$_POST['name'], but this converts each input %5C to two backslashes
(instead of one) and %00 to \0 (slash zero, not zero byte) for some
reason. Is there any other way to read the data apart from parsing
php://input myself?
Is there a way I can use % % instead of ? ? for the opening and closing
tags of a php script. I thought I read this somewhere but can't find
anything on it now.
Is there something that I could do with override php.ini command? I don't
have access to the php.ini file on this server.
Thanks
B
http://us2.php.net/ini.core
asp_tags boolean
Enables the use of ASP-like % % tags in addition to the usual ?php ?
tags. This includes the variable-value printing shorthand of %= $value %.
For more information, see Escaping from HTML.
Note: Support for ASP-style tags was added in
the ini directive for this is: asp_tags
and it appears you can set them in the .htaccess file on a per directory
basis.
See the user contributed notes on www.php.net/ini_set
HTH
-B
Beauford wrote:
Is there a way I can use % % instead of ? ? for the opening and closing
tags of a php script. I
2006/9/22, Rory Browne [EMAIL PROTECTED]:
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote:
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote:
what about using:
php.net/pi
note the precision description.
or are we talking about a different pi.
The goal of the
On Fri, 2006-09-22 at 09:00 -0700, Brian Dunning wrote:
Also - only interested in someone local to south Orange County, CA.
No outsourcers or non-locals can be considered, sorry.
Geee, way to fight back against the shrinking distance of the global
community brought to you by the
Martin Alterisio wrote:
2006/9/22, Rory Browne [EMAIL PROTECTED]:
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote:
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote:
what about using:
php.net/pi
note the precision description.
or are we talking about a
Hello all,
I personally don't think this is a very healthy contest. It
discourages comments, and use of whitespace to make code readable.
Anyway... as you say, it would be nice to have a contest that rewards
readability and maintainability... but, how can we messure that
qualities in this
Sorry folks, this is a long one...I've re-read a bunch of the
documentation, and I can't find a solution.
In debugging an out of memory condition, I found that PHP doesn't seem
to garbage collect unreferenced objects. It seems to work fine for
anything other than objects. (Arrays, strings,
I understand that fileinfo is supposed to be the replacement for
mime_content_type(), but the documentation is not real helpful. What
is the direct replacement for mime_content_type()?
--
Chris Jett
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
2006/9/22, Tom Atkinson [EMAIL PROTECTED]:
Martin Alterisio wrote:
2006/9/22, Rory Browne [EMAIL PROTECTED]:
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote:
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote:
what about using:
php.net/pi
note the
On 22 Sep 2006, at 11:14 , Robert Cummings wrote:
Geee, way to fight back against the shrinking distance of the
global
community brought to you by the Internet. I'm just curious why so many
posters for jobs feel the need to force a local boundary. Is the
quality
of work somehow better
Hi,
I am relatively new to php and am trying to set up a file upload
process for my website. I have read through the php security
documentation and a number of the security-related questions on these
lists and am attempting to implement as many of the measures as
possible.
One of the suggestions
On Friday 22 September 2006 22:58, Andy Hultgren wrote:
Hi,
I am relatively new to php and am trying to set up a file upload
process for my website. I have read through the php security
documentation and a number of the security-related questions on these
lists and am attempting to implement
I always use the ftp functions of php to upload files. I think it´s more
safe than move_uploaded_file function.
Andy Hultgren [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hi,
I am relatively new to php and am trying to set up a file upload
process for my website. I have
I don't want to spam a new blog I have created, so I won't post a link to
it, but I was thinking about every so often talking about PHP and its many
uses - to that end, if anyone has anything they want to blog, but couldn't
be bothered actually making a blog, please email me - naturally you will
On Fri, 2006-09-22 at 23:09 +0100, Toby Osbourn wrote:
I don't want to spam a new blog I have created, so I won't post a link to
it, but I was thinking about every so often talking about PHP and its many
uses - to that end, if anyone has anything they want to blog, but couldn't
be bothered
Did this list get a new server? Just wondering because lately my posts
have been showing up within 1 or 2 minutes and they haven't done that in
years. So either PHP General got a new zippy server or the mail system
was quarantining my mails before I fixed my DNS (which had some issues I
didn't
On Fri, 2006-09-22 at 18:55 -0400, Robert Cummings wrote:
Did this list get a new server? Just wondering because lately my posts
have been showing up within 1 or 2 minutes and they haven't done that in
years. So either PHP General got a new zippy server or the mail system
was quarantining my
On Thu, September 21, 2006 9:32 pm, Curt Zirzow wrote:
On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote:
Hello,
I am attempting to convert this code for generating the digits of pi
from the original C (below) to PHP.
long k=4e3,p,a[337],q,t=1e3;
main(j){for(;a[j=q=0]+=2,--k;)
On Fri, September 22, 2006 11:59 am, Martin Alterisio wrote:
Anyway... as you say, it would be nice to have a contest that rewards
readability and maintainability... but, how can we messure that
qualities in
this type of games?
If you think of the Open Market of software out there as the game
On Thu, September 21, 2006 7:08 pm, Colin Guthrie wrote:
I've used CVS a fair amount, no branching, as everybody always said
what a bear it was to merge.
I keep hearing subversion is easier to branch/merge.
Tomorrow, I've been tasked by the boss to find out HOW easy and how to
do it for a big
On Tue, September 19, 2006 8:14 pm, Chris wrote:
... FTP copy ...
Depending on the security issues, and SCP from exec() may be more
suitable...
Another option would be to upload a PHP script to one or the other
that does the FTP you want one way or the other... :-)
--
Like Music?
775 needs to be 0775 for starters, as I recall...
On Tue, September 19, 2006 11:07 am, Rahul S. Johari wrote:
Here's the interesting things. I did exactly that to begin with... And
I
never got the file can't be chmoded! ... Instead, I actually got the
Mode
changed to notification that I
On Wed, September 20, 2006 11:20 am, Pawel Miroslawski wrote:
Hi
it's example script:
?php
$string = This is some _color:pink_ colored text _color_;
$patterns[0] = '/_color:(.*?)_/';
$patterns[1] = '/_color_/';
$replacements[0] = 'font color=$1';
$replacements[1] = '/font';
echo
On Wed, September 20, 2006 1:04 pm, James Tu wrote:
I was thinking more along the lines of what version of Apache, MySQL
and PHP I should install...
If you are comfy installing from source, visit each site and download
the version marked latest stable release
MAYBE for Apache stick with 1.x as
On Thu, September 21, 2006 4:25 am, Bronislav Klucka wrote:
Sorry for previous question, was not that clear at all
Does anybody know how to write PHP extension in FreePascal?
Port the FreePascal to C first? :-)
I dunno... I mean, maybe there's some fancy FreePascal-C bridge
thingie to make it
On Wed, September 20, 2006 7:13 pm, Christopher Watson wrote:
I've been coding with PHP for maybe a year. So I'm somewhat new to
it. But I've learned quickly, and created a fairly serious LAMP app
that is capable of returning large query results. During my
investigation into various means
Cannot compression be set in .htaccess?
Or even within the script???
I suspect you could even find a PHP class out there to compress and
send the right headers to do it all in PHP, regardless of server
settings...
On Wed, September 20, 2006 7:33 pm, Christopher Watson wrote:
Hi Robert,
Well,
On Wed, September 20, 2006 5:18 pm, tedd wrote:
Hi gang:
I embedded php code inside css and changed my .htaccess to read --
FilesMatch \.(htm|html|css)$
SetHandler application/x-httpd-php
/FilesMatch
-- so that the css file would be processed and executed by php. The
end result was
On Thu, September 21, 2006 10:37 am, David Giragosian wrote:
So with this approach you're able to tailor css styles for specific
browsers
and their particular implementations of css, rather than employ hacks
directly in the css??
That's one possible use.
Really, though, once your CSS is
On Thu, September 21, 2006 12:17 pm, tedd wrote:
To the gang -- is this something new, or am I getting excited over
nothing?
I been doing it long time now...
You mean everybody doesn't run their CSS through PHP so they can make
it do what they want for each page?
How odd... :-)
--
Like
On Wed, September 20, 2006 3:19 pm, blackwater dev wrote:
First, the example I have is not the real situation, just an example
so I
don't want to get into why are you doing it like that, etc. Just want
to
see if it's possible.
Basically, I want to store stuff in a text field in a db like
On Wed, September 20, 2006 1:36 pm, Matthew H. North wrote:
Can't find this in the PHP docs, so: does anyone know whether
move_uploaded_file locks the target file during the process?
If move_uploaded_file does a rename within the same filesystem this
isn't an
issue (on unix, anyway, the O/S
Thanks for the follow-up Richard. I am now bracketing my Fusebox core
includes with ob_start(ob_gzhandler) and ob_end_flush(). It's done
wonders for those large query results. And since there is absolutely
nothing in this app that relies on multiple contiguous whitespace
characters, I'm good
On Fri, September 22, 2006 3:58 pm, Andy Hultgren wrote:
that as my root directory is simply www.myDomain.com and not
.public_html/ and I am on a shared server where my root cannot be
I got two words for you:
Change Hosts
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing
On Fri, September 22, 2006 11:42 am, Beauford wrote:
Is there a way I can use % % instead of ? ? for the opening and
closing
tags of a php script. I thought I read this somewhere but can't find
anything on it now.
Is there something that I could do with override php.ini command? I
don't
I read about a feature of PHP5 OOP that is something like this in a book or
a magazine a while back. But now I don't remember exactly how this works
and I can't find any reference to it in the online docs. The basic idea is
something along these lines:
class MyClass {
private $bob;
http://us2.php.net/class
On 9/22/06, Chris Boget [EMAIL PROTECTED] wrote:
I read about a feature of PHP5 OOP that is something like this in a book or
a magazine a while back. But now I don't remember exactly how this works
and I can't find any reference to it in the online docs. The basic
For any of you folks in the Bay Area, don't miss the open Hack Day at
Yahoo next Friday/Saturday. It is completely free and the density of
web experts will be higher than at most conferences.
More info on it at the following links:
http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/
I read about a feature of PHP5 OOP that is something like this in a book
or
a magazine a while back. But now I don't remember exactly how this works
and I can't find any reference to it in the online docs. The basic idea
is
something along these lines:
class MyClass {
private $bob;
So pretty much there's nothing to be done about it? If I can get the
chmod thing to make it so that you can't surf to your uploaded image
afterwards and view it, I'd be happy with that solution. I'd like to
stick with this host if I could.
On 9/22/06, Richard Lynch [EMAIL PROTECTED] wrote:
On
On Tue, September 19, 2006 8:21 am, João Cândido de Souza Neto wrote:
I´m using the fpdf class to create pdf files report and it works fine.
Now i need to get a standard pdf and put some data into for complete
data.
There´s some way to get an existent pdf file and put data into?
I think you
On Mon, September 18, 2006 5:33 pm, Stefan wrote:
I was wondering if anyone has experienced this before.
I am connecting to an IIS server over HTTPS using
pfsockopen and am getting xml data returned. Now when
I open the URL in a browser the XML is returned fine
without a problem. However when
well, perhaps I'm not seeing what it is that you're looking for. The
page I sent you is a basic introduction to classes and OOP in PHP,
which based on the example that you've provided seemed like what you
wanted. It seems obvious that you want to learn more about OOP, but
are you trying to find a
On Fri, 22 Sep 2006 20:15:49 -0400, Chris Boget [EMAIL PROTECTED] wrote:
http://us2.php.net/class
Any particular place on that page I should be looking? I've read it
several
times and didn't see anything like the above. The closest thing I saw
were
actual methods called setBob() and
Any particular place on that page I should be looking? I've read it
several
times and didn't see anything like the above. The closest thing I saw
were
actual methods called setBob() and getBob(), which isn't exactly what I'm
looking for...
Check here:
well, perhaps I'm not seeing what it is that you're looking for.
No, I'm not sure you are. Take a look at my sample code again. Pay
particular attention to how both $bob and $Bob are defined.
class MyClass {
private $bob;
public $Bob {
set( $var ) {
$this-bob = $var;
}
On Mon, September 18, 2006 4:53 pm, Ross wrote:
Can someone explain how and why you would use a symlink in php?
A symlink is the Un*x version of a Windows shortcut or the Mac's
alias
The difference being that a symlink actually *works* and a Windows
shortcut is useless for anything except their
On Mon, September 18, 2006 5:09 pm, Kevin Murphy wrote:
I'm looking for something that will convert a the opposite of the date
(w) function. In other words, if I have the number 3, I would
like it to return Wednesday. Is there such a beast out there
besides writing a switch or array or
That aside, I think that it would be very beneficial to the community as a
whole if a contest was started that encouraged readability and good
practices.
The scoring and judging could be done by a panel, but I think that it
would be more fun if the community itself was able to vote on various
ok, so if we were talking Java, perhaps you are looking for
information that allows you to build 'accessor' and 'mutator' methods?
If so, then your example should work (syntax aside). Here's another
'test' example that I just whipped up and tested that shows you can
use any method name you wish.
I may have hit send too soon...
Like, when you do FTP, do you see:
index.htm
page2.htm
page3.htm
right away?
*OR*, do you see:
public_html
And then you do cd public_html and THEN you see the files?
If you don't do cd public_html then I really don't think accepting
file uploads is a Good
PHP has __set and __get in some versions...
I think that's what you are looking for.
If you told us which particular feature in that pile of code you're
asking about, it would help...
I still wouldn't know the answer, as I don't do OOP in PHP much, but
somebody might.
On Fri, September 22,
ok, so if we were talking Java, perhaps you are looking for
information that allows you to build 'accessor' and 'mutator' methods?
Yes, exactly. I was flipping through a PHP5 book (possibly a magazine, but
it was definitely about PHP5 and not Java) and I saw this new language
construct.
PHP has __set and __get in some versions...
I think that's what you are looking for.
Yes, but exactly. They'll do if there is no other way (as below)...
If you told us which particular feature in that pile of code you're
asking about, it would help...
the ability to set an accessor like
is there a reason why php's built-in ftp extension does not have a
function that returns the last message the ftp server sent? for example,
it would be nice to know whether i can't create a directory because it
already exists or because i don't have permission. am i missing
something obvious
Richard Lynch wrote:
If you get no satisfaction on PHP-General, PHP-Internals may be able
to help...
Might have to give that a shot...Subscribing to one more mailing list
can't hurt I guess. :-)
Thanks for the suggestion.
You really need to specify PHP version and platform and all that,
On Fri, September 22, 2006 7:40 pm, Rory Browne wrote:
The script must be web based, and ask the user to enter a number. The
script
must then calculate the lowest Prime Number above that number.
I would like to have one point clarified:
By above that number do you literally mean or would =
For whatever reason when I ftp in using WinFtp I don't see public_html
(it's hidden, don't know why; if I make a directory called
.public_html it gets created and then disappears), but I can see my
file structure from my host's website and so I know that when I ftp in
to myDomain.com this is what
Rasmus Lerdorf wrote:
More info on it at the following links:
http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/
http://nate.koechley.com/blog/2006/09/22/hookytime-yahoo-developer-day-hack-day-on-sept-29th-and-30th/
http://del.icio.us/chadd/yhackday
This too:
74 matches
Mail list logo