Yep, a mysql database seems like the way to go. Thanks to all who have
offered to help on this project. Perhaps we could get together and figure
out what needs doing, assign jobs etc. I have hosting already sorted. Cheers
guys.
On Sun, Aug 24, 2008 at 5:05 AM, sean greenslade <[EMAIL PROTECTED]>wr
On one particular server, all *.html files are written in Python. I
uploading a few PHP files to the directory, but they must also have
.html extensions (they are replacing files that _were_ python, but it
is rather important that the filename stay the same and I'd rather
avoid rewrite). I figured
On 24 Aug 2008, at 15:05, Dotan Cohen wrote:
On one particular server, all *.html files are written in Python. I
uploading a few PHP files to the directory, but they must also have
.html extensions (they are replacing files that _were_ python, but it
is rather important that the filename stay the
2008/8/24 Stut <[EMAIL PROTECTED]>:
> In theory all you need to do is add a hash-bang line to the start of the PHP
> scripts. This should work...
>
> #!/usr/bin/env php
>
Thanks, that's what I am doing right now. I was hoping to avoid that
for portability, but if it is unavoidable then I can live
On 24 Aug 2008, at 15:39, Dotan Cohen wrote:
2008/8/24 Stut <[EMAIL PROTECTED]>:
In theory all you need to do is add a hash-bang line to the start
of the PHP
scripts. This should work...
#!/usr/bin/env php
Thanks, that's what I am doing right now. I was hoping to avoid that
for portability
2008/8/24 Stut <[EMAIL PROTECTED]>:
> If you use env then it should be pretty portable. The only other way to do
> it would be to specify each script individually
Yes, this is what I want to do, specify each file individually.
> or with a regex
No!!! (then I'd have two problems :))
> if that's
On 24 Aug 2008, at 16:09, Dotan Cohen wrote:
2008/8/24 Stut <[EMAIL PROTECTED]>:
If you use env then it should be pretty portable. The only other
way to do
it would be to specify each script individually
Yes, this is what I want to do, specify each file individually.
or with a regex
No!!
2008/8/24 Stut <[EMAIL PROTECTED]>:
> I'm confused. A #! line does not harm the portability of a PHP script in any
> way whatsoever, and if you use the env version rather than an absolute path
> then it should work out of the box on 99% of Linux servers and will also
> work everywhere else because
On 24 Aug 2008, at 16:27, Ashley Sheridan wrote:
By your own definition, this will not work on 1% of the Linux
servers, and don't forget that Linux is not the only operating
system that is capable of running a PHP server...
"and will also work everywhere else"
Windows will have no problem w
On 24 Aug 2008, at 16:30, Dotan Cohen wrote:
2008/8/24 Stut <[EMAIL PROTECTED]>:
I'm confused. A #! line does not harm the portability of a PHP
script in any
way whatsoever, and if you use the env version rather than an
absolute path
then it should work out of the box on 99% of Linux servers
You can replace the Python files with .html files that just have a
redirect header in them. Then you can just have the php files as .php.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Dotan Cohen wrote:
> On one particular server, all *.html files are writt
On Sun, 2008-08-24 at 13:35 +0100, Ashley Sheridan wrote:
> On Sat, 2008-08-23 at 22:17 -0400, Robert Cummings wrote:
> > On Sun, 2008-08-24 at 01:32 +0200, Jochem Maas wrote:
> > > Ólafur Waage schreef:
> > > > You can read about the header function.
> > > >
> > > > http://is2.php.net/manual/en/f
George Bernard Shaw, an Irishman.
tedd wrote:
At 11:13 PM +0100 8/22/08, Ashley Sheridan wrote:
Not to mention, but of the two major English speaking countries, both
America and England have different address standards. All too often
an American site seems to think that a postcode is the sam
tedd schreef:
At 9:55 PM -0700 8/23/08, Prasad Chand wrote:
This is off-topic, but the reason I was touchy about includes was
because it could create seo problems.
http://forums.digitalpoint.com/showthread.php?t=31519
any takers on how the above link was found? lol
Bttt -- nope -- t
Robert Cummings schreef:
On Sun, 2008-08-24 at 13:35 +0100, Ashley Sheridan wrote:
On Sat, 2008-08-23 at 22:17 -0400, Robert Cummings wrote:
On Sun, 2008-08-24 at 01:32 +0200, Jochem Maas wrote:
Ólafur Waage schreef:
You can read about the header function.
http://is2.php.net/manual/en/functi
tedd schreef:
At 10:02 PM -0700 8/23/08, Prasad Chand wrote:
Thanks for that information. But in my case I need to serve pages
based on selection of US states. There are 50 of them, so generating
pages dynamically would have been a nice idea.
WTF? do you have any idea why we write scripts as
On Sun, 2008-08-24 at 21:53 +0200, Jochem Maas wrote:
> Robert Cummings schreef:
> > On Sun, 2008-08-24 at 13:35 +0100, Ashley Sheridan wrote:
> >> On Sat, 2008-08-23 at 22:17 -0400, Robert Cummings wrote:
> >>> On Sun, 2008-08-24 at 01:32 +0200, Jochem Maas wrote:
> Ólafur Waage schreef:
> >>
At 7:47 PM +0100 8/24/08, ioannes wrote:
George Bernard Shaw, an Irishman.
tedd wrote:
As Churchill once said "We are two peoples separated by a common language."
And so did Oscar Wilde, Mark Twain, and Patton -- Google it and
you'll find that everyone said it.
Cheers,
tedd
--
--
Stut schreef:
On 24 Aug 2008, at 16:30, Dotan Cohen wrote:
2008/8/24 Stut <[EMAIL PROTECTED]>:
I'm confused. A #! line does not harm the portability of a PHP script
in any
way whatsoever, and if you use the env version rather than an
absolute path
then it should work out of the box on 99% of
At 10:02 PM +0200 8/24/08, Jochem Maas wrote:
tedd schreef:
You don't have to generate 50 pages dynamically to do it -- try this:
http://webbytedd.com/bbb/map/
That demo is done with just pure css -- no php nor javascript
a version of europe actually :-P
I saw that after I had done mine. I
Hi all :-)
It'll be fun to work here with you guys over the coming months. I
have been out of the coding loop for 7 years, and I am totally new to
PHP, but I should catch up not-too-slowly as I used to code HTML,
WebDNA, and a little Visual Basic too. Kindly bear with me.
First Q:
This c
But two of those entries are apparently named "." and "..".
Right. That's linux doing that, not php. If you jump into a ssh
connection and do an
$ ls -la
you will see
. and .. at the top.
if ($filename == '.' || $filename == '..') {
continue;
}
I haven't yet found the 'string.end
Govinda schreef:
Hi all :-)
It'll be fun to work here with you guys over the coming months.
fun? work? you must be new :-)
I have
been out of the coding loop for 7 years, and I am totally new to PHP,
but I should catch up not-too-slowly as I used to code HTML, WebDNA, and
a little Visual B
Byron schreef:
Yep, a mysql database seems like the way to go. Thanks to all who have
offered to help on this project. Perhaps we could get together and figure
out what needs doing, assign jobs etc. I have hosting already sorted. Cheers
guys.
great, take it offlist please. this is not a forum t
Micah Gersten schreef:
What is the point of figuring that out? If we knew that, we might be
able to help you with a solution. As it stands what you want is not
possible AFAIK.
you know wrong. he has all the info needed.
1. the document root of the site (/var/www/example.com)
2. the requeste
Damien Churchill schreef:
Is there a known issue with using stream_select with apache2 mod_php?
I have a script (http://php.pastebin.com/m601965d) that when run with
mod_php doesn't work, but when run with php-cgi from the command line works
fine.
define "doesn't work".
what exact php & apach
Dave M G schreef:
Ashley,
Thank you for responding.
best way to fix it was to use
$location = str_replace('//','/', $_SERVER['REQUEST_URI']);
Unfortunately the trim() command I use seems to destroy all slashes
anyway, so this doesn't seem to have an impact. Thank you for the
suggestion, th
Jochem Maas schreef:
...
apply ... or I'm just inconsistent or ... well Cumming no doubt has
something to say about it ;-)
that should have been Cummings as in Robbert.
don't you just hate it when you see a typo after you hit send and
before the email leaves the screen :-P
--
PHP Gener
sean greenslade schreef:
I have this snippet of code that is supposed to read the apache access log
and display it:
For some reason, it displays the logs when I run the php file thru terminal:
php -f /web/apache.php
but not when I access it thru the web. when I browse to it, it just displays
th
Should I send replies to just the list?, or is the etiquette to reply-
to-all?
fun? work? you must be new :-)
new to PHP; could get boring after a long time with it, sure... but I
have that 'coder's bug'... i.e. once fluent, then creatively solving
problems is fun!
okay enough jokes (
I swear I am RTFM, but it's an art in itself (at first anyway)/
WHERE is the syntax doc'ed for saying:
if (expr1 *OR* expr2 *AND* expr3) {
?
I got *AND* to work with "&", but "|" does not seem to work for *OR*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
if (stripos(strrev($file), "gpj.") === 0) {
echo $file;
}
note the ===, 3 equals signs here is very important! check the docs
for why.
== means 'equals', and === means 'is identical to'.
Seems like they would do the same thing when comparing '0' to 'the
position in the string where
Govinda wrote:
I swear I am RTFM, but it's an art in itself (at first anyway)/
WHERE is the syntax doc'ed for saying:
if (expr1 *OR* expr2 *AND* expr3) {
?
I got *AND* to work with "&", but "|" does not seem to work for *OR*
Actually & is a bitwise operator in php, not what you want.
You wan
Well, if you really want to know, I have to go to many places that do not
have internet access. For those places, I have a PDA. I have Avantgo
software on the PDA, and I wanted it to be able to store a copy of the log
file to review it when I do not have internet access. All I needed was a
webpage
I had been to that page, tried this:
if (stripos(strrev($file), "gpj.") === 0) || (stripos(strrev($file),
"fig.") === 0) || (stripos(strrev($file), "gnp.") === 0) {
(yes, Jochem, the regExp solution is best, but I am practicing
things ;-)
and got
Parse error: syntax error, unexpected T_BOO
if (stripos(strrev($file), "gpj.") === 0) || (stripos(strrev($file),
"fig.") === 0) || (stripos(strrev($file), "gnp.") === 0) {
You have too many parenthesis:
if (stripos(strrev($file), "gpj.") === 0) <-- this ends the if statement;
the next || is unexpected.
Also, at the end, you're missing a
Hi all,
Is there any difference between int(1) and int(11) when creating a table?
I checked the mysql manual and got that 1 and 11 are used to specify the
display width of an column.
Is there any other difference?
Any ideas appreciated.
Thx.
--
With best regards,
Shelley Shyan
http://phparch.
I hate to admit to this, but some 15 years ago I was consulting for a
company doing oil exploration in Nigeria and I received a very
elaborate and believable Nigerian scam. It was complete with signed
and official documents from both the Nigerian Government and the Bank
of Nigeria.
I passed t
Shelley wrote:
Hi all,
Is there any difference between int(1) and int(11) when creating a table?
I checked the mysql manual and got that 1 and 11 are used to specify the
display width of an column.
Is there any other difference?
Straight from the manual:
The display width does not constrain
easy to find our about concatenating with "." in the docs...
but not so with ","
what is the difference?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I use gPHPEdit and bluefish, it makes PHP easy.
--
Swapnil Jain
--
E-mail: [EMAIL PROTECTED]
MSN : [EMAIL PROTECTED]
GTalk : [EMAIL PROTECTED]
Skype : sj1410
YIM : sj1410
Shawn McKenzie wrote:
It flance wrote:
Hi,
What do you think is the best php editor for linux.
I'm using the
Check the result at http://phparch.cn.
And you are encouraged to make your choice.
2008/8/19 Pavel <[EMAIL PROTECTED]>
> I use Zend Studio (shareware, but i couldn't find better things). There are
> some plugins for Eclipse,but if you used Zend before, you will be cunfused
> by
> that plugins..
42 matches
Mail list logo