Chris wrote:
In more than one place in the PHP documentation it refers to the order
in which the new Date/Time functionality determines the appropriate
time zone.
That order is:
1) the value set by date_default_timezone_set(), if any
2) the TZ environmental variable
3) the date.timezone
1. I'm not the original poster (I wasn't asking a question)
2. don't post me or anyone else 'offlist' unless asked
3. WTF are you talking about?
4. if you say 'First' then that assumes there is a 'Second'
coming. (that's sounds kinda funny given it was just Easter)
suresh kumar wrote:
First,
Jay Blanchard wrote:
[snip]
Pardon my asking on the eve of your launch, but is a table the most
sensible markup for this data? It looks to me like a one-dimensional
list that just happens to be presented two to a row.
If so, I'd use an unordered list, float each item left, and limit the
Lester Caine wrote:
Chris wrote:
In more than one place in the PHP documentation it refers to the
order in which the new Date/Time functionality determines the
appropriate time zone.
That order is:
1) the value set by date_default_timezone_set(), if any
2) the TZ environmental variable
Just wanted to refresh the memory of the veterans here and also let the new
people here know
that there is a monthly code contest going on since April 2004 with pretty
cool prizes from
relevant sponsors (Zend, NuSphere, TemplateMonster, php|architect, PHP
magazine and others).
The contest is held
Hi,
I have created a CMS where all sites on our server are administrated from
one central site, and HTML content is stored in the CMS database.
I want users to all control their sites database functions from the CMS
site, but I want to keep the database and database admin scripts in the
I'm not sure I understand what you are trying to do.
What is the connection between frames and security?
In general, assuming that all users have access to
The same scripts, you need to include in all of your
Scripts some kind of security logic that tells the
Script which user can do what.
[snip]
time limits always dictate the 'get it working' solution, that said
Paul's suggestion is rather better than using a table for a couple of
reasons (imho):
1. it saves you having to pre-order/split/etc the original data so that
you can then loop them/it in order to dump out a table.
2. it
Hi,
personally i use Zend studio for its variables on-live debugging
possibility.
However, i'm sad that for debugging you need to install the Zend debugging
server features.
Alain
On 4/15/06, pfancy [EMAIL PROTECTED] wrote:
Thanks for all the php editor idea. I have been going through them.
Hi,
Thanks for your reply, sorry I should have been a little clearer in my
explanation. Here goes...
I have a dedicated UNIX server with many websites on it. On this server I
have also created a Content Management System which has a database which I
use to store HTML content for all the other
Jay said:
With a simple loop I can create the data in columns in a table. It is a
table of products, each product's features, etc. I am not too worried
about the client changing the layout at a later date as that would
likely be driven by me...maybe. :) The code which makes the multiple
tedd wrote:
Jay said:
...
Yep, nothing wrong with using tables to show column data -- that's what
tables are for.
that's my point - columns have nothing to do with the data structure, it's
a presentation issue - technically it's a list of products. ergo: UL iso TABLE.
personally I think
Anyone use php to tail a log file for patterns and perhaps updating a
iframe or something similar? If so do you have a link to some resources
on it?
--
Jason Gerfen
You will never be ready for me.
~ Me
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
but tedd there is no need to go defending Jay. I was merely chatting
with him on a
theoretical level, not telling nwhat he should/must be doing
(because a, he's been
doing this stuff longer than I have been alive ;-) and b, I know that he knows
the difference between doing it 'right' and doing
I think that you are looking at this from the wrong angle.
What you should do, is password protect all CMS directories
And then, anyone that needs access has to punch in a valid
Username and password.
Have a look at : http://sourceforge.net/projects/modauthmysql/
Sincerely
berber
Visit
I see your point, the only problem is that the user will have already logged
once into the CMS, logging in again would be a little frustrating and not
very user friendly...
Weber Sites LTD [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I think that you are looking at this from the
So, swap your CMS logins to use the same access code for the user, then
use sessions to swap the mysql stuff in where needed.
Or make it use a mysql call from the CMS login to access their mysql
information from another table and do it that way.
1 login, 1 password, very user friendly.
And only
Hi to all!
I was developing one site with fake records in DB. Now, I put it live whit
real records. The site is running ok, but it's painfully slow. Even for
grabbing an order from DB and showing it on screen, from 1-2 sec (while
developing) went to almost 10-15 sec?!? No, of records for orders
[snip]
I was developing one site with fake records in DB. Now, I put it live
whit
real records. The site is running ok, but it's painfully slow. Even for
grabbing an order from DB and showing it on screen, from 1-2 sec (while
developing) went to almost 10-15 sec?!? No, of records for orders is a
Hi,
Thanks for your reply, just had a thought: How secure would it be if I made
sure that the URL of the browser was www.mycms.com and only allow access to
pages in the /cms folder if true?
Is this safe or an easy hack?
Wolf [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
So,
On 4/18/06, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
I was developing one site with fake records in DB. Now, I put it live
whit
real records. The site is running ok, but it's painfully slow. Even for
grabbing an order from DB and showing it on screen, from 1-2 sec (while
developing)
Use the EXPLAIN sql command to check what your queries are really doing,
you'll have to read the manual for the database you're using to figure
out the information returned by this command.
[EMAIL PROTECTED] wrote:
Hi to all!
I was developing one site with fake records in DB. Now, I put it
Personally I would use it as part of the session and verify it that way...
ie: check to see if the $PHP_SELF is www.mycms.com, if not refresh the
page to that URL automatically and then make them do the login. Only
after logging in does the session key get the mysite=true key or
whatever you
Thanks Wolf,
Will there be a problem keeping 2 sessions from 2 websites running in one
browser?
I will need one to validate the CMS login and one running in the other
website to ensure that $_SESSION['my_site'] is set?
BTW I'm sure you know, but image phising can be resolved with
..
Jochem:
Oh, I wasn't defending Jay -- I didn't even know anything was in
dispute. I'm clueless as usual -- just putting in my $0.02 as I can.
I'm luckyh if I have .01 to throw around ;-)
Hell, I have enough problems trying to remember to remove your email
address when I reply to
On Monday 17 April 2006 14:04, Jochem Maas wrote:
I thought the 'rule' around here was do a 'reply to all' - someone
put me right if I've been an idiot all this time!
I use Kmail, and it has a feature to just reply to the mailing list, so I
generally use that. Reply to all is definitely
2 websites, or 2 web servers? Depends on the setup. Since you are
leaving and going then it normally is a problem, in my experience,
with them. What I do in cases of that is to pass a session value along
via posting the data. Not always pretty, but it works. I guess the
real determining
Yes, I have indexes but can't say they are done perfectly though.
:)
-afan
[snip]
I was developing one site with fake records in DB. Now, I put it live
whit
real records. The site is running ok, but it's painfully slow. Even for
grabbing an order from DB and showing it on screen, from 1-2
On Mon, April 17, 2006 4:17 pm, [EMAIL PROTECTED] wrote:
Yes, I have indexes but can't say they are done perfectly though.
:)
Did you test on your test server with the same number of records as
real and the same kind of load?...
If not, you really need to think about doing that before you
On Mon, April 17, 2006 11:45 am, Jason Gerfen wrote:
Anyone use php to tail a log file for patterns and perhaps updating a
iframe or something similar? If so do you have a link to some
resources
on it?
No, but I don't see how you could make this much more complicated than:
html
headmeta
On Mon, April 17, 2006 5:45 am, Shaun wrote:
I have created a CMS where all sites on our server are administrated
from
one central site, and HTML content is stored in the CMS database.
I want users to all control their sites database functions from the
CMS
site, but I want to keep the
On Mon, April 17, 2006 1:15 am, Lester Caine wrote:
Of cause this still does nothing for the vast majority of hosting,
where
it's the timezone/daylight saving of the client that you need, not the
server :(
The timezone/ds of the client is way beyond the scope of PHP...
I *would* like to be
Odds are really good that you are trying to add (+) something that
ain't a number...
Just print_r() each variable within that function and see what you did.
On Sun, April 16, 2006 5:35 am, kmh496 wrote:
can somebody explain why
$this-param = $this-SYSTEM-db-answer +
You can, but it has nothing to do with PHP, and you shouldn't anyway.
If you *CARE* about the ID numbers, then you're doing something wrong
in the first place.
On Sun, April 16, 2006 1:46 am, alex wrote:
hi everyone
i have delete a few entries in my database as they were entered for
testing
On Sat, April 15, 2006 2:48 pm, Alex Duggan wrote:
I am trying to connect to a webservice with a wsdl. After creating a
new SoapClient, I tried calling one of the methods. It returned this
exception.
Uncaught SoapFault exception: [SOAP-ENV:Server] SoapMapper:Converting
data for SoapMapper
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Mon, April 17, 2006 5:45 am, Shaun wrote:
I have created a CMS where all sites on our server are administrated
from
one central site, and HTML content is stored in the CMS database.
I want users to all control their
Jochem:
Hell, I have enough problems trying to remember to remove your
email address when I reply to all. :-)
I thought the 'rule' around here was do a 'reply to all' - someone
put me right if I've been an idiot all this time!
Nooo, I wouldn't use the term... idiot. :-)
What I typically do
On Fri, April 14, 2006 1:24 pm, jonathan wrote:
is there a function to take a second count and return it as a
formatted difference?
like a date_diff('H hours i',6133)
that uses date()'s formatting.
I think he means something not unlike:
function human_time($seconds){
$result = and .
Richard Lynch wrote:
On Mon, April 17, 2006 11:45 am, Jason Gerfen wrote:
Anyone use php to tail a log file for patterns and perhaps updating a
iframe or something similar? If so do you have a link to some
resources
on it?
No, but I don't see how you could make this much more complicated
Hey:
Didn't anyone like my --
Whenever I need a 1 or 0, I use ($i 1).
-- comment?
I though that was pretty clever, but no one even said How's your Mum?.
tedd
--
http://sperling.com
--
PHP General Mailing List
If you write a new extension and have:
~/php-src
/ext
/MYEXT
/tests
/MYEXT00.phpt
then when you run make test in ~/php-src, it should just run the new
test, right???
run-test.php ext/MYEXT/tests/MYEXT00.phpt works fine...
On Thu, April 13, 2006 9:10 pm, Mark Sargent wrote:
I'm looking at OSCommerce, and have been asked if running 2 instances
on
the same server would be doable. I only foresee perhaps issues with
sessions. Has anyone got any thoughts on this? I'd be very
appreciative
of any help with this. I
The security issue is important because I don't want anyone to be able to
use the websites database admin scripts without logging into the CMS first.
Otherwise anyone who happened to type in www.oneofmywebsites.com/cms would
be able to make unwanted changes to that particular sites database.
On Mon, April 17, 2006 6:19 pm, Jochem Maas wrote:
But they had guys at an old job that did this, after I turned OFF
display_output on their production server... [shudder]
I guess Richard's had another long day ... display_output? maybe
display_errors? or was the stuff those guys produced so
Call me crazy, but I think that:
$time = 0x; //largest INT possible
echo date('m/d/Y h:i:s a', $time);
would be very revealing.
On Thu, April 13, 2006 10:26 pm, Suhas wrote:
This will definitely solve one way but still other is there,
How to get that -ve number which starts at
On Thu, April 13, 2006 1:44 am, Noah wrote:
I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a
FreeBSD 4.11
machine. I am trying to make sure that my PHP is properly installed
and
configured.
I am seeing the following PHP Notice about 10 entries a day in my
/var/log/messages
Richard Lynch wrote:
On Mon, April 17, 2006 6:19 pm, Jochem Maas wrote:
But they had guys at an old job that did this, after I turned OFF
display_output on their production server... [shudder]
I guess Richard's had another long day ... display_output? maybe
display_errors? or was the stuff
tedd wrote:
Jochem:
...
Thanks.
tedd
PS: You're getting two copies of this Jochem because I can't figure out
which not to send. :-)
I get double copies of most replies to stuff I've written on this list,
it doesn't bother me at all - the only annoyance is the ID10Ts that have been
How's your Mum?
tedd wrote:
Hey:
Didn't anyone like my --
Whenever I need a 1 or 0, I use ($i 1).
-- comment?
I though that was pretty clever, but no one even said How's your Mum?.
well it's a basic bitwise operation, anyone who has been doing for a while
wouldn't think much of it and
On Mon, April 17, 2006 7:14 pm, Jochem Maas wrote:
tedd wrote:
Hey:
Didn't anyone like my --
Whenever I need a 1 or 0, I use ($i 1).
-- comment?
I though that was pretty clever, but no one even said How's your
Mum?.
I don't like it for 2-column display or alternating row color,
Yes, it was problem with indexing and with help of explain select I got
really decent speed.
tanks to all for big help!
-afan
[snip]
I was developing one site with fake records in DB. Now, I put it live
whit
real records. The site is running ok, but it's painfully slow. Even for
grabbing
At 6:17 PM -0500 4/17/06, Richard Lynch wrote:
On Fri, April 14, 2006 1:24 pm, jonathan wrote:
is there a function to take a second count and return it as a
formatted difference?
That, however, is probably not precisely what he wants, as it's WAY
off in the months/years thing... :-)
At 6:43 PM -0500 4/17/06, Richard Lynch wrote:
Call me crazy, but I think that:
$time = 0x; //largest INT possible
echo date('m/d/Y h:i:s a', $time);
would be very revealing.
H.
Is: 12/31/1969 06:59:59 pm
Yes, it is -- I remember what I was doing then. It was six months
after I
I'm trying to create a date with the DATE_W3C or DATE_ATOM format (they are the same format
according to the examples), but the output of date doesn't match the example in the documentation.
The http://us3.php.net/manual/en/ref.datetime.php page says the formats are as
follows:
DATE_ATOM
Hi
I'm having trouble getting PDO to work on Windows 2000 Server with PHP
5.1.2.
I've enabled the extensions in php.ini, which was all I thought I had
to do. Is there anything else? I thought PDO would show up in phpinfo(),
but it doesn't.
In my code, when I call:
new PDO(...);
I get an
55 matches
Mail list logo