Ronald Wiplinger wrote:
I am having troubles with the function file_exists()
I tried the full path like:
if (file_exists('/srv/www/../images/pic412.jpg') {
echo "";
} else {
echo " " //picture is missing!
}
No matter if I use the full path or just images/pic4
Ronald Wiplinger wrote:
I am having troubles with the function file_exists()
I tried the full path like:
you are missing a closing parenthesis on your condition
if (file_exists('/srv/www/../images/pic412.jpg') ) {
if (file_exists('/srv/www/../images/pic412.jpg') {
echo "";
} e
I am having troubles with the function file_exists()
I tried the full path like:
if (file_exists('/srv/www/../images/pic412.jpg') {
echo "";
} else {
echo " " //picture is missing!
}
No matter if I use the full path or just images/pic412.jpg, it always
shows th
On 14/11/2007, Larry Garfield <[EMAIL PROTECTED]> wrote:
> I have some more benchmarks for your list if you're interested:
>
> http://www.garfieldtech.com/blog/magic-benchmarks
>
Thanks, there is some food for though there. I'll also benchmark some
of them and see what I come up with.
Dotan Cohen
Ronald Wiplinger wrote:
I added just into a input field"
19" enclosure
which was displayed from the database as:
19\" enclosure
That gives me some questions:
1. where the protecting slash comes from?
Probably magic_quotes_gpc
2. how can I get it away when I want to display that field?
1) window.onload = function () {formfield.focus();}
2) Meta refresh or some combination of Javascript, flush(), and
ob_flush().
On Nov 13, 2007, at 3:46 PM, "Jon Westcot" <[EMAIL PROTECTED]> wrote:
Hi all:
This may or may not be a PHP-related question, but, since I'm
coding with PHP,
1.Probably that's because the function mysql_real_escape_string() is turned on.
You can check that in your php.ini configuration.
2. If you want to display them as you wanted, you can use stripcslashes() on
your output contents.
3. Maybe phpmyadmin automatically stripped that out.
And
1. Any
At 6:52 PM -0700 11/13/07, Jon Westcot wrote:
> Here's a collection of animated wait gifs:
http://webbytedd.com/bb/wait/
Steal as you need -- I did.
Thanks. I'll check that out. I'm still wondering, though, how the
redirection works if it is supposed to occur only before any text ap
in my experience it never stops at a single focus event on a login box...
but yes, i should have replied with the simpler solution first.
On 11/13/07, tedd <[EMAIL PROTECTED]> wrote:
> At 5:49 PM -0800 11/13/07, mike wrote:
> >yeah, but adding in jquery will open up his entire world :)
>
> It cou
At 5:49 PM -0800 11/13/07, mike wrote:
yeah, but adding in jquery will open up his entire world :)
It could, but it's an overkill for a simple input field focus thing, IMO.
It's like selling a guy a Hummer because he wants to drive on the
gravel on the side of the road.
Cheers,
tedd
--
---
Hi Tedd:
> > Also, while I'm asking questions, let me ask another one: I've
> >seen several pages (frequently, pages that come up after a login
> >page has been filled out) that provide some user mollification (you
> >know, the typical "Please be patient, don't get your nylons in a
> >knot, we
Hi Mike, Chris, et al.:
Thanks for the info. I'm not certain if I'll be needing jquery, or what
benefits it might afford me with my meager little project, but I will check
it out.
In the meantime, Chris's snippet worked like a charm! Thanks!
Jon
--
PHP General Mailing List (http:
I added just into a input field"
19" enclosure
which was displayed from the database as:
19\" enclosure
That gives me some questions:
1. where the protecting slash comes from?
2. how can I get it away when I want to display that field?
3. The slash is not to see in phpmyadmin, why not?
and:
yeah, but adding in jquery will open up his entire world :)
the example below will work without jquery. personally though i try to
stick with jquery since i usually need it for more throughout my site.
On 11/13/07, Chris <[EMAIL PROTECTED]> wrote:
> It only works if you have included the jquery
Jon Westcot wrote:
Hi Mike:
you want javascript.
i'd recommend using jquery (jquery.com)
I'll look into this. Thanks.
put an id="username" on the username box.
then do
$(document).ready(function() {
$("#username").focus();
});
voila
Hmmm. It didn't work for me. Do I ne
I have some more benchmarks for your list if you're interested:
http://www.garfieldtech.com/blog/magic-benchmarks
On Tuesday 13 November 2007, mike wrote:
> On 11/13/07, Dotan Cohen <[EMAIL PROTECTED]> wrote:
> > I came across this page today:
> > http://reinholdweber.com/?p=3
> >
> > It covers a
At 4:46 PM -0700 11/13/07, Jon Westcot wrote:
Hi all:
This may or may not be a PHP-related question, but, since I'm
coding with PHP, I thought I'd ask:
When a form loads, such as a login form, I'd like to have the
cursor placed automatically in the Username field. Right now, it
req
i don't believe so. it should trigger the focus event for that element ID.
of course you did download and include jquery.js in your page... can
you send me (off list) the URL to the page? i can help you out, but it
is off topic to PHP now :)
On 11/13/07, Jon Westcot <[EMAIL PROTECTED]> wrote:
> H
Hi Mike:
> you want javascript.
>
> i'd recommend using jquery (jquery.com)
I'll look into this. Thanks.
> put an id="username" on the username box.
>
> then do
>
>
> $(document).ready(function() {
>$("#username").focus();
> });
>
>
> voila
Hmmm. It didn't work for me. Do I nee
you want javascript.
i'd recommend using jquery (jquery.com)
put an id="username" on the username box.
then do
$(document).ready(function() {
$("#username").focus();
});
voila
On 11/13/07, Jon Westcot <[EMAIL PROTECTED]> wrote:
> Hi all:
>
>This may or may not be a PHP-related questi
Hi all:
This may or may not be a PHP-related question, but, since I'm coding with
PHP, I thought I'd ask:
When a form loads, such as a login form, I'd like to have the cursor placed
automatically in the Username field. Right now, it requires me to click it
with the mouse or to tab int
OK, I'm looking at the PHPEclipse site, and I've been here before: the current
Using PHPEclipse document lists the system requirements as PHP 5.1.2 or *below*,
and Apache 2.0 or *below*
Is that just badly out-of-date (last update is April 2007), or is PHPEclipse
really not able to support PHP 5.
If anyone recommends anyone well versed in PHP in their network, in or
around San Francisco, please send them along to me Chris Cox @
[EMAIL PROTECTED] Thank you in advance for your consideration.
www.stepup.com
Sincerely,
Chris Cox
Intuit
--
PHP General Mailing List (http://www.php.net/)
To uns
If anyone recommends anyone well versed in PHP in their network, in or
around San Francisco, please send them along to me Chris Cox @
[EMAIL PROTECTED] Thank you in advance for your consideration.
www.stepup.com
Sincerely,
Chris Cox
Intuit
-Original Message-
From: [EMAIL PROTECTED]
[mailt
On 11/13/07, Dotan Cohen <[EMAIL PROTECTED]> wrote:
> I came across this page today:
> http://reinholdweber.com/?p=3
>
> It covers a lot of flammable material (echo vs. print) but I wonder
> how valid some of the advice is. Can anyone elaborate? Thanks.
funny you should post this, I've recently be
On Tue, 2007-11-13 at 23:37 +0200, Dotan Cohen wrote:
> I came across this page today:
> http://reinholdweber.com/?p=3
>
> It covers a lot of flammable material (echo vs. print) but I wonder
> how valid some of the advice is. Can anyone elaborate? Thanks.
Some of it is definitely useful individua
I came across this page today:
http://reinholdweber.com/?p=3
It covers a lot of flammable material (echo vs. print) but I wonder
how valid some of the advice is. Can anyone elaborate? Thanks.
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ
hi Nir,
I think you should direct this question to [EMAIL PROTECTED]
(the php core developers list).
Rachmel, Nir (Nir) wrote:
> Hi,
>
> I am running PHP 5.2.3 as a statically compiled module for a web server
> (appWeb, which is an embbeded apache-like server).
> My platform is a ppc processor,
Al wrote:
> Install the Firefox extension "HTML Validator". It does a real time Tidy
> check for every page.
good advice.
>
> Make your code W3C compatible and it'll work on all modern browsers.
less good advice. I agree you should be doing everything to make your code
validate 100% BUT having
Ronald Wiplinger wrote:
> I got a larger file which consists of lines with a defined length of 56
how large? for very big files it's dangerous to read them in all at once,
as was exampled in other replies. I would say that large in this case would
be anything bigger than 5 Mb (this is a very rough
Ronald Wiplinger wrote:
> Chris wrote:
>> Ronald Wiplinger wrote:
>>> My php program is working with Firefox, but not with Internet Explorer.
>> Nothing to do with php, your problem is javascript.
>>
>>> Is there a tool to find the problem?
>> For IE, try
>>
>> http://www.microsoft.com/downloads/de
Hi Chris, et al.:
> > Here's a section of what comes back when I do this:
> >
> > [mls] => 1234567
> > [property_address] => Main St
> > [city_arr] => Array
> > (
> > [0] => CHNDHT
> > [1] => CHNDLR
> > [2] => GILBER
> > [3] =
Use myFile= file() which puts all your lines in a nice simple array.
The use foreach()on the array to exact your sub-strings.
Personally, I'd assemble the results in a big string. Then, echo the string.
$fields= NULL;
foreach(myFile as $line){
$fields .=
"substr($line, 0, 5)" .
" nbsp;"
Hi,
I am running PHP 5.2.3 as a statically compiled module for a web server
(appWeb, which is an embbeded apache-like server).
My platform is a ppc processor, running Windriver Linux.
The problem I encounter is, that when printing many syslogs to the
system my web-server crashes.
I have backt
On Nov 13, 2007 9:02 AM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Nov 13, 2007 1:40 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> >
> > [EMAIL PROTECTED] wrote:
> > > PLEASE I have like 50 from it so far.
> > >
> > >
> > > -Original Message-
> > > From: Daniel Brown [mailto:[EMAIL PROTECT
On Nov 13, 2007 7:01 AM, chris smith <[EMAIL PROTECTED]> wrote:
> On Nov 13, 2007 7:10 PM, Jon Westcot <[EMAIL PROTECTED]> wrote:
> > Hi Chris:
> >
> > > Exactly as you have there.
> > >
> > > print_r($_POST);
> > >
> > > will show you everything.
> >
> > Here's a section of what comes back wh
On Nov 13, 2007 10:14 AM, tedd <[EMAIL PROTECTED]> wrote:
> At 10:40 PM -0800 11/12/07, Jim Lucas wrote:
> >>-snip-
> >>
> >That is funny, I have not received one bounce message.
> >
> >Jim
>
> Same here, but my subscription to this list is via my gmail account
> -- maybe that filters it for me.
>
On Nov 12, 2007 3:19 PM, Jake <[EMAIL PROTECTED]> wrote:
> >> Is there any possibility to trigger an action when the session is
> >> inactive
> >> for some time? I need to log users' login and logout, and so I need to
> >> know
> >> about logouts caused by timeout. Neither there seems to be a
> po
At 10:40 PM -0800 11/12/07, Jim Lucas wrote:
-snip-
That is funny, I have not received one bounce message.
Jim
Same here, but my subscription to this list is via my gmail account
-- maybe that filters it for me.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http:
On Nov 13, 2007 1:40 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
> > PLEASE I have like 50 from it so far.
> >
> >
> > -Original Message-
> > From: Daniel Brown [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 12, 2007 5:31 PM
> > To: php-general List
> > Subje
The fgets() function only reads a single line from the file. See the
below link for a way to read through all lines in the file. Then
after reading each line, use substr to pull out the fields.
http://us.php.net/manual/en/function.fgets.php
On Nov 13, 2007 8:53 AM, Ronald Wiplinger <[EMAIL PRO
I got a larger file which consists of lines with a defined length of 56
characters. Each line ends with a line feed (0A),
>From each line I want one field from position 1 ~ 5 and field 2 from
position 7 ~ 46.
I tried:
$myFile = "plaiso";
$fh = fopen($myFile, 'r');
$theDataLine = explode("\n",fge
Hi list
We here at ZeroCinco Propaganda are looking for a PHP Developer to
assist me in our web projects
Must have a good knoledge of PHP and mySQL, and integration with
ActionScript.
Also you need to be confortable using Photoshop.
If you are interested send your resume to
[EMAIL PROTECTED]
Install the Firefox extension "HTML Validator". It does a real time Tidy check
for every page.
Make your code W3C compatible and it'll work on all modern browsers.
Ronald Wiplinger wrote:
My php program is working with Firefox, but not with Internet Explorer.
I cannot see anything I did wrong
On Nov 13, 2007, at 1:34 AM, Jim Lucas wrote:
Jason Pruim wrote:
Hi Everyone,
I have a question, and to avoid getting flammed until the morning,
I waited to ask until the end of my day :) Or near it at least.
I have a small simple script I'm writing so that I can calculate
how much a certa
My company has the following job openings available. Be sure to check out
our recruiting video at https://www.yakabod.com/join.html?nav=4. It's a
pretty fun watch. :)
Join in the Adventure.
Yakabod, a web software and services company, is located in a beautifully
restored facility in Frederick
phpEdit
mvh wrote:
I am using crimson editor for editing now
It is the best editor i found.
But is it not an IDE.
-
Hemanth
http://www.ValueAds.co.in http://www.ValueAds.co.in
http://www.PaidAds.co.in http://www.PaidAds.co.in
Bangalore, India
Ph: +919844125556
--
PHP General Mailing L
On Nov 13, 2007 7:10 PM, Jon Westcot <[EMAIL PROTECTED]> wrote:
> Hi Chris:
>
> > Exactly as you have there.
> >
> > print_r($_POST);
> >
> > will show you everything.
>
> Here's a section of what comes back when I do this:
>
> [mls] => 1234567
> [property_address] => Main St
> [cit
Hi Chris:
> Exactly as you have there.
>
> print_r($_POST);
>
> will show you everything.
Here's a section of what comes back when I do this:
[mls] => 1234567
[property_address] => Main St
[city_arr] => Array
(
[0] => CHNDHT
[1] => CHNDLR
On 12/11/2007, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > Ronald Wiplinger wrote:
> >> My php program is working with Firefox, but not with Internet Explorer.
> >
> > Nothing to do with php, your problem is javascript.
> >
> >> Is there a tool to find the problem?
> >
> > For IE
-- Forwarded message --
From: kNish <[EMAIL PROTECTED]>
Date: Nov 12, 2007 3:50 PM
Subject: enhanced_list_box
To: php-general@lists.php.net
Hi,
I am using this function enhanced_list_box. This works
fine. Except the return value is None. How is it possible for it to
ret
Lester Caine wrote:
> Peter Ford wrote:
>> I've tried to use Eclipse PDT, and it's just generally horrible - the
>> All-in-one
>> has no Subversion support and no SSH support for deploying to the server
>> properly. The debugging support worked well on the windows version, but I
>> couldn't get it
52 matches
Mail list logo