On 9/3/2013 1:09 AM, Daevid Vincent wrote:
-Original Message-
From: Jim Giner [mailto:jim.gi...@albanyhandball.com]
Sent: Monday, September 02, 2013 8:14 PM
To: php-general@lists.php.net
Subject: [PHP] Re: refernces, arrays, and why does it take up so much
memory?
On 9/2/2013 9:30 PM
On 9/22/2013 3:52 AM, Ashley Sheridan wrote:
iccsi wrote:
--
BMW
Audi
I use above code to have my select drop down on the form and would like
to
use jQuery to fill option value on change event.
I would like know is it possible to do, if yes, any hint or example
code at
server site is
On 9/22/2013 12:04 PM, Tedd Sperling wrote:
On Sep 21, 2013, at 9:06 PM, iccsi wrote:
--
BMW
Audi
I use above code to have my select drop down on the form and would like to use
jQuery to fill option value on change event.
I would like know is it possible to do, if yes, any hint or example c
On 9/28/2013 10:33 PM, Ethan Rosenberg wrote:
Dear List -
I have a working program. I made one change in a switch statement, and
it does not work. I'm probably missing something fundamental.
Here are some code SNIPPETS... [please note that all my debug
statements are at the left margin]
Set
Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do
you know how any of this is supposed to be written? You can not put
Constants in quotes - they become just plain strings then, not Constants
with the predefined values you (and the functions) are expecting. For
example
On 9/29/2013 1:29 AM, Ethan Rosenberg wrote:
On 09/28/2013 11:59 PM, Jim Giner wrote:
Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do
you know how any of this is supposed to be written? You can not put
Constants in quotes - they become just plain strings
On 9/29/2013 1:38 AM, Jim Giner wrote:
session_start();
session_name("STORE");
set_time_limit(2400);
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
error_reporting(-2);
ini_set(
I always hate dealing with date/time stuff in php - never get it even
close until an hour or two goes by
anyway
I have this:
// get two timestamp values
$exp_time = $_COOKIE[$applid."expire"];
$curr_time = time();
// get the difference
$diff = $exp_time - $curr_time;
// produce a display t
On 10/6/2013 6:36 PM, Farzan Dalaee wrote:
You should use gmdate() if you want to how many hours left to expire
$time_left = gmdate("H:i:s",$diff);
Best Regards
Farzan Dalaee
On Oct 7, 2013, at 1:49, Jim Giner wrote:
I always hate dealing with date/time stuff in php - never g
On 10/6/2013 6:49 PM, Farzan Dalaee wrote:
Try this please
gmdate("H:i:s", $diff%86400)
Best Regards
Farzan Dalaee
On Oct 7, 2013, at 2:12, Jim Giner wrote:
On 10/6/2013 6:36 PM, Farzan Dalaee wrote:
You should use gmdate() if you want to how many hours left to expire
Look at my code. The inputs are all timestamps so date should work, no?
My question why am i getting an hour value in this case?
jg
On Oct 6, 2013, at 7:14 PM, Aziz Saleh wrote:
> Jim,
>
> The date method takes in a timestamp (not seconds away).
>
> You have the seconds, y
ime-difference-in-minutes-in-php>Jonathan
sent out contains functions that does the division for you with
results. Another link you can check out:
http://stackoverflow.com/a/9143387/1935500
On Sun, Oct 6, 2013 at 7:29 PM, Jim Giner wrote:
Look at my code. The inputs are all timestamps so date
On 10/6/2013 7:55 PM, Ashley Sheridan wrote:
On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote:
Jim,
The date method takes in a timestamp (not seconds away).
You have the seconds, you will need to manually convert those seconds to
what you desire (minutes = seconds / 60), (hours = minutes
On 10/6/2013 11:21 PM, Romain CIACCAFAVA wrote:
An easier way to do that would be using the diff() method of a DateTime object
on another.
Regards
Romain Ciaccafava
Romain - you were so right. A little less calculating to be done and I
got the result I wished. For anyone interested here's t
Can someone give me an understanding of how the .ini settings are
located and combined? I am under the impression that there is a full
settings .ini file somewhere up high in my host's server tree and that
any settings I create in .ini files in each of my domain folders are
appended/updated ag
On 10/8/2013 11:13 AM, Simon Schick wrote:
Hi, Jim
I suggest to read this page of the tutorial. It seems, that it solves the
questions, you posted here:
http://www.php.net/manual/en/configuration.file.per-user.php
Please be aware, that the ini-file is not re-read on every request, but
after a
re: changing ini settings.
If my running script modifies an ini setting I currently believe that
that changed setting will apply to that specific process and any others
that run after that from that same folder (since i have an ini file in
each folder currently). Correct?
And if I do make a
On 10/9/2013 3:14 AM, Simon Schick wrote:
On Tue, Oct 8, 2013 at 9:50 PM, Jim Giner wrote:
On 10/8/2013 2:42 PM, Simon Schick wrote:
On Tue, Oct 8, 2013 at 5:25 PM, Jim Giner *
*wrote:
re: changing ini settings.
If my running script modifies an ini setting I currently believe that
that
);
The modifiers after the second / are
i = case-insensitive
s = include new lines in your '.' character match.
New lines are excluded by default.
Can't remember right now, nor do I have the time to test, you might need to
invert the greediness of the match using a 'U' after the second / also.
So...
$content = preg_replace("//isU", "", $content);
YMMV
Let us know how this works out for you.
Jim Lucas
PS: you might want to swap the order of these two statements.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bout_us', 'contact_us',
'testimonials');
foreach($categorys as $category){
$replace = str_replace("_", " ", $category);
echo "$replace";
Try this instead
echo '',$replace,'';
Jim Lucas
}
Validator Error:
an attri
ed to revise your sysadmin skills!
>
Um, I use OpenBSD and that command gives me an error or two...
$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php
$ grep -l mail $(find ./ -name "*.php&quo
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote:
> On 01/15/2011 11:13 PM, Daniel Brown wrote:
>> On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan wrote:
>>> On 01/15/2011 10:22 PM, Jim Lucas wrote:
>>>>
>>>> Um, I use OpenBSD and that command gives
..@address.com,My Name
list($addr, $name) = explode(',', $addr, 2)
$mail->AddAddress($addr, $name);
}
if(!$mail->Send())
{
echo "Message could not be sent. ";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
if ( ! headers_sent() )
header(&
27;t test it on *nix platform yet. Could someone please
> confirm this?
>
> Thanks,
> Tommy
>
>
Seems to work fine for me.
$ cat float.php
$ php -f float.php
Example 1
float(2.2250738585072E-307)
float(2.2250738585072E-307)
Example 2
float(2.2250738585072E-308)
float(2.2
On 1/18/2011 1:44 AM, Moses wrote:
> Hi Everyone,
>
> I am creating a file in PHP script which takes a value from a form and
> writes it
> to a file. However, i don't have the mode permission for the file instead it
> is owned
> by www-data.What can i do to ensure that the file is owned by me.
>
Then have your web
server use that PHP instance for your web site to process all PHP requests.
This is how we have our servers at the office setup. Works great.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y a PHP script would restart itself like this?
>
> FWIW, I'm running PHP5 with Apache 2 on a Linux server.
>
Clarification please.
Is this cli or browser based?
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I
>
>
> I could not find a way to fix this and I would be happy for some help. Thank
> you
> in advance!
>
> Merlin
>
Do you have control over the building of the initial "phrase" => "link" assoc?
If so, reverse the order of these two items.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
plain text"
2 - http://www.php.net/manual/en/function.header.php#92620
If in cli... well, you wouldn't be having this problem... :)
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you are looking
for.
This gives you the idea...
SELECT COUNT(*)
FROMusers_table
WHERE logged_in = 't'
AND last_activity > FROM_UNIXTIME( UNIX_TIMESTAMP() - 1800 )
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es after they
> logged in. This is easily handled in a query on the users table, but it
> causes performance issues.
>
> David
>
cron it.
Setup a cron script that runs every 5 minutes.
A seconds work every 5 minutes isn't too much is it?
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e, what is a dynamic extension?
Again, http://www.google.com
Enter "what is a dynamic extension" ...
Here is a good result from the list returned
http://www.atnf.csiro.au/computing/software/karma/programmer-manual/node17.html
Thanks.
Ethan
I hope this gets you headed down th
would be to
actually specify a replacement sendmail executable when setting up the sendmail
option in the php.ini. You could specify a php script that can run as though it
was sendmail, accept the same arguments, etc... but do all the phpmailer stuff
inside.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
set it up and send
emails.
phpmailer examples
The first result is this
http://phpmailer.worxware.com/index.php?pg=examples
It has a variety of examples that should cover almost any scenario you can
possibly think of.
Just one thing, do not try and be a cut/paste god here. Actually take time
Name:
When submitted with data to this:
Will result in this:
Array
(
[page_id] => 22
[action] => AddUser
)
Array
(
[action] => DelUser
[FullName] => Jim Lucas
)
Array
(
[page_id] => 22
[action] => DelUser
[FullNam
FROM`CandidateQuestions`
WHERE `Category` IN (1,2,3,4)
ORDER BY RAND()
LIMIT 4
This will probably do the distinct after the ORDER BY RAND(), but again,
completely untested. YMMV
Give them a whirl and let us know how it works out.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
&&!in_array(basename($d),$excludes))
> {
> echo ''.$d.' border="5">';
> include($d."/desc.txt");
> echo '';
> };
> };
> echo '';
> ?>
>
> Now I am stymied on changing this to add at th
http://www.eset.com
>
If you would allow me to show you a little easier way of doing this.
if ( !isset($_POST['submit']) ) {
echo '';
if ($Recordset1) {
echo <<
State County
HEADER;
while ( $row = mysql_fetch_array($Recordset1) ) {
echo <<
{$row['state_id']}
{$row['name']}
ROW;
}//end while
echo '';
} else {
echo 'Error performing query: '.mysql_error().'';
}
echo '';
}
Now, the main thing I want you to see is the line for the country checkbox'es
The county[] turns the submitted values into an array. So, in the processing
script, you would do this.
$name )
echo "{$id} {$name}\n";
...
?>
Hope this clears things up for you a little.
Enjoy.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
app quiz and I need to test the users answers.
Ron
The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info
Give this a try
--
Jim Lucas
http://www.cmsws.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l pass the value as a reference, so, change around your
function like this.
$karamohOutput['test'] = "";
# notice this .>|
function test_print(&$item, $key)
{
$item = "$key holds $item\n";
}
array_walk_recursive($karamohArray, 'test_print');
print_r($karamohArray);
Give this a try and let us know.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld recommend doing it in
mysql?
SELECT * FROM ORDER BY ;
Check out the syntax for it here.
http://dev.mysql.com/doc/refman/5.0/en/select.html
and
http://dev.mysql.com/doc/refman/5.0/en/order-by-optimization.html
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is fine and dandy until you want to do a restore of your data.
With a restore, you will probably want to retain your auto-increment IDs since
they are probably used else where in your DB.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 3/2/2011 9:48 AM, Ashley Sheridan wrote:
> "Jim Lucas" wrote:
>
>> On 3/2/2011 4:25 AM, Alex wrote:
>>> You shouldn't have a default value in an auto increment field. You
>> can
>>> set AUTO_INCREMENT to 0 and start with 1, but as auto in
On 3/4/2011 5:18 PM, Daniel Hong wrote:
> Correction:
>
> I stated the incorrect version of PHP that does not seem to have this issue.
> The version of PHP that works correctly is 5.3.2, not 5.3.3.
Can you give us an example of what you are doing?
Jim Lucas
>
> Thanks,
&g
that is in the PHP manual
http://us.php.net/manual/en/function.xml-parser-create.php#38739
The only modification that you will probably have to make is to set the
following in your php.ini file.
allow_url_include = On
and/or
allow_url_fopen = On
This would allow fopen to open the external URL and
On 3/9/2011 6:28 AM, Gotzon Astondoa wrote:
> Hi all:
>
> On my website I have an Ajax form. From this form user can upload files.
My guess would be that you have an HTML form. Not AJAX
> Server side is a PHP script.
> This form works properly on my development server.
Is this on localhost or
o have the form only allow you
to have one of the radio input fields selected at any given time. How you
showed it, it would not see the uniqueness of the radio button names, and
therefor allow more than one of the radio input fields to be selected at a time.
I would try something like this
On 3/14/2011 1:31 PM, Paul M Foster wrote:
> Here's what I need to do: I have an indexed array, from which I need to
> delete elements in the middle. Once completed, the indexes should be
> numerically in sequence, as they were when I first encountered the
> array. That is:
>
> Before:
> $arr = ar
On 3/14/2011 2:02 PM, Jim Lucas wrote:
> On 3/14/2011 1:31 PM, Paul M Foster wrote:
>> Here's what I need to do: I have an indexed array, from which I need to
>> delete elements in the middle. Once completed, the indexes should be
>> numerically in sequence, as they wer
gets this
ext/standard/.libs/dns.o: In function `php_parserr':
/usr/local/php-5.3.5/ext/standard/dns.c:418: undefined reference to
`__dn_expand'
and more lines like the last one.
How can I fix this? I am using Ubuntu 10.10.
JIm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Kinda new to this, but I've been puttering/writing for about 3 weeks now and
have some good working screens up. Ran into something new while I was
debuggina script today.
Tried to echo the $i value within a for loop as part of the list of items I
was building
Something like
for ($i=0;$i<$rows
ok - here's the code in question.
$q = 'select * from director_records ';
$qrslt = mysql_query($q);
$rows = mysql_num_rows($qrslt);
for ($i=0; $i<$rows; $i++)
{
$j = $i+1;
$row = mysql_fetch_array($qrslt);
echo $j.'-'.$row['userid'];
if ($row['user_priv']<> "")
echo ' ('
news:521bdb9d-adbf-45d7-b759-acd315b19...@gmail.com...
>
> On Mar 22, 2011, at 8:42 PM, Jim Giner wrote:
>
>> ok - here's the code in question.
>> $q = 'select * from director_records ';
>> $qrslt = mysql_query($q);
>> $rows = mysql_num_rows($qrslt)
n message
news:20110323034621.go1...@quillandmouse.com...
> On Tue, Mar 22, 2011 at 10:50:54PM -0400, Jim Giner wrote:
>
>> Yes - it is J and I. I tried using $i+1 in the echo originally but it
>> wouldn't run. That's why I created $j.
>
> Yes, the substitution creates a s
y'.
"Geoff Lane" wrote in message
news:1278073104.20110323074...@gjctech.co.uk...
> Hi Jim,
>
> On Wednesday, March 23, 2011, 1:42:18 AM, you wrote:
>
>> ok - here's the code in question.
>> $q = 'select * from director_records ';
>> $qrslt =
not the concern in this posting
"Richard Quadling" wrote in message
news:aanlktindqu7bzeamtcwh6y9f3m9yjxqpt-ime9ysh...@mail.gmail.com...
On 23 March 2011 07:46, Geoff Lane wrote:
> Hi Jim,
>
> On Wednesday, March 23, 2011, 1:42:18 AM, you wrote:
>
>> ok - here
it was as complete as need be to demonstrate my dilemma, as Richard has
discovered above
"Frank Arensmeier" wrote in message
news:7cfb015a-c530-4712-9ebc-fbdf5b0ed...@gmail.com...
23 mar 2011 kl. 02.42 skrev Jim Giner:
> ok - here's the code in question.
> $q = 'sele
Very Interesting - '\n' doesn't work, but "\n" does work.
"Steve Staples" wrote in message
news:1300883645.5100.973.camel@webdev01...
> On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote:
>> I am outputting to a on an html page. A doesn't work,
As Richard proved my problem was caused by my use of the archaic cr/lf
character pair. Once I found the correct syntax for using \n my output of
the loop counter worked.
thanks for all the suggestions. My first experience on a PHP newsgroup and
it was a postiive one. I've spent the last 12+
t9.com/
>
> On Wednesday, 23 March 2011 at 12:39, Jim Giner wrote:
>> Very Interesting - '\n' doesn't work, but "\n" does work.
>> "Steve Staples" wrote in message
>> news:1300883645.5100.973.camel@webdev01...
>> > On Wed, 201
Anyone know of a working Javascript newsgroup? I googled and tried adding
several to my OE newsgroups but couldn't find the servers.
comp.lang.javascript
pl.lang.
mozilla..
All of these (can't remember their names now) came up with the same error
message.
As part of learning php, I su
Thanks - now I see. the message means that it can't find a php function
called getText. Doh!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
function. Try something like:
...
echo 'heaading contains: getText("h2")';
...
I tried it - no better.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
And the way to do this is?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
your boss is asking you to write something in PHP, but it sounds to me like
you are not very knowledgable in it, or even in creating a text file. Why
is he doing this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
having a problem posting this message - forgive any duplication please.
Hi,
I'm trying to use sql to extract the last name from a person's name field in
my table. Here's my Select:
$q = "SELECT race_winner,count(race_date) as wins,
substr(race_winner,FIELD(' ',race_winner)) as last_name
etc.,,,
good point. So wrapped up in making my php script work that I didn't think
about that.
"Ashley Sheridan" wrote in message
news:1301936583.2288.3.camel@localhost...
> On Mon, 2011-04-04 at 11:50 -0400, Jim Giner wrote:
>
>> having a problem posting this message - for
Actually - I can't seem to find a mysql newsgroup anywhere. The ones that
come up in google search are all dead and buried.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks - will do!
> I found a mailing list that might work for you:
>
> To subscribe to the list, send an empty message to
>
>
> Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
no - that address came back undeliverable.
>
> To subscribe to the list, send an empty message to
>
>
> Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
To those who have been so helpful:
I did manage to subscribe to a mysql mailing list. thanks for the pointers.
As for my orig problem - for those who are intereseted:
The FIELD function apparently doesn't work in 5.0.2, even tho it is in the
online ref manual. I was given a suggestion of using
t;
No, but it can be done in one line:
0 )
echo array_rand(file($filename), 1);
?>
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think you want to use the FOR loop to process each record in your table.
You query (?) the table and then process each row in the result using the
FOR and all your calculations on each one. Look up FOR.
"Silvio Siefke" wrote in message
news:4d9c6165.5040...@silvio-siefke.de...
> Hello,
>
>
>
iley,
Largo Florida
kniht
+-+
| BOX |
+-+
think
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Jim Lucas
www.cmsws
Can one create a set of $_POST vars within a script or is that not do-able?
My display portion of my script utilizes the POST array to supply values to
my input screen - this works well for the first display of an empty screen,
and any following re-displays if there's an error in the user's inpu
When you say "assign that array to $_POST" do you mean
$_POST = $qrslt;
Not sure about this "assigning an array" thing.
- Original Message -
From: "Stuart Dallas"
Newsgroups: php.general
To: "Jim Giner"
Cc: "PHP General"
Sent: W
No need to email me AND send to the list. Is that the standard practice on
this forum? Not encountered it before.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rote in message
news:4962044e8a244fc28719d97746759...@3ft9.com...
> On Wednesday, 13 April 2011 at 19:12, Jim Giner wrote:
> When you say "assign that array to $_POST" do you mean
>>
>> $_POST = $qrslt;
>>
>> Not sure about this "assigning an array&q
Guys - the problem has been solved.
Give it a rest.
(sent only to the list)
(remainder deleted for the benefit of all :) )
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
wrote in message
news:005501cbfdeb$457839c0$d068ad40$@com...
> Javascript:alert("Hello World");
> The browsers have had many updates since last I seen this work.
>
?? You're saying that "alert" doesn't work on your browse? Gee - it works
on mine.
--
PHP General Mailing List (http://www.p
Sounds like you need to have the user make a decision before you go to this
php script that is processing the case statement. Since the script's
process is predetermined by this time (when you want the user's input) you
should be able to have the user make his input before the script begins.
(
I've got a d/e screen that collects a path and a file name. My script then
attempts to verify that the file exists before moving on to do things with
it.
I've displayed the combined fields and they are showing correctly - ie,
"c:\temp\emax.pdf" as well as "c:/temp/emax.pdf" . But when I use th
Hmmm... did not realize that. From all the code I examined I thought it
was looking at the client.
So how does one do a file upload from the client to the host? Preferably
with ftp rather than http.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
because I've seen many comments in my research that ftp is better for larger
files. I'm trying to upload photos so I know that they can be big.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, I'll take your word for it. As well as that of all the examples on
Google that come up when looking for "php ftp uploads" which are NOT doing
ftp uploads at all. Seems that many people are calling the 'move' of their
file from one host folder to another an 'upload'. Thanks!
--
PHP
On 4/24/2011 8:44 AM, Ron Piggott wrote:
>
> I am trying to figure out a syntax that will replace each instance of % with a
> different letter chosen randomly from the string $puzzle_filler.
> $puzzle_filler
> is populated with the letters of the alphabet, roughly in the same ratio as
> they
> a
I have managed to build include files and store them above my public folder
and the called pages manage to find them from the public folder and properly
include them. My problem is with the html src= attribute. I have uploaded
photos to be included in my web pages and I didn't want them in th
I think I see what you mean but I guess if that's the way it's meant to be
there must not be a great risk to my uploaded files.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I"m trying to make my webpages display random photos on a border. Got it
all working now but have a question about the IE cache. Seems that once the
page has been displayed, no amount of "refresh" will make the page "rebuild"
and thus show 'different' pics the second time around.
Can php do s
thanks for the input but your first link is invalid and the second I don't
understand why you sent me.
Perhaps you could explain?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok - I'm lost. What do I do with this knowledge?
- Original Message -
From: "Sean Greenslade"
>>
> Sure. In order to "tell" the browser to not cache a page, you need to set
> the header "Cache-Control: no-cache". This can be done by the PHP command
>
> header("Cache-Control: no-cache")
So - it's not an html attribute - it's a PHP command that precedes ALL my
html headers?
"Ross Hansen" wroteYou need to still put in the
standard PHP tags as you would normally and it is just another line of code.
e.g
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Must be doing something wrong. Besides not helping my pages to re-build, it
actually ruins the presentation of a couple of my pages, even tho they are
all using the exact same includes with only some dummy content in one div
different than all the other pages.
I added this line to my existing
Yes - that seems to be the trick! Thank you very much for your tip AND
your patience. :)
You've made an old programmer's day!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how many entries are you talking about, ie., how many conditions? Obviously
if you have more than 4-5 it's going to be easier to code up as a case
statement (?) rather than an if/else.
Never in all my days have I ever heard of using an array for such a
determination though.
(remainder deleted
Arrays - using a silly construct that probably still takes as much time to
evaluate machine-wise as anything else. And as far as readability goes, it
is even sillier. IMO.
(remainder deleted for readers' sakes :) )
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
made a powerful use of the array
constuct.
"Geoff Lane" wrote in message
news:1286892056.20110429010...@gjctech.co.uk...
> On Thursday, April 28, 2011, Jim Giner wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 4/29/2011 12:06 AM, Geoff Lane wrote:
> On Friday, April 29, 2011, ad...@buskirkgraphics.com wrote:
>
>> Personally I would use the javascript page navigation is senseless if they
>> miss click.
>
>> Javascript: Small and simple javascript.
>
>> onclick="return confirm('Are you sure you want
I have a large script that does a certain function for me. I have a second
script that gets called and does its thing and when I'm done with it I'd
like to pass control to the first script. I don't need this 'included' in
my second script - I just want to pass control to it and let it take ove
No - I don't want to include either one in the other one. They are separate
things that interesect once. I really am just trying to do this separately
as I said.
script1
work
work
work
(done)
script2
do something
user response
do something (write data)
execute script 1
(done.
Script 2 doesn'
1401 - 1500 of 2798 matches
Mail list logo