On Tuesday 13 December 2005 04:09, Raz wrote:
> Can I have some breast enlarger please?
Larger is not always better ;)
Is there any other men who prefer smaller/normal sized breasts?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> Would also do fairly well, but , since this would apply to all tds
> within the table tag (even the cells of any embedded tables) may require
> some creative spefification of values to work properly
>
> Chris
>
> Stephen Leaf wrote:
> >Not IE friendly but you coul
Not IE friendly but you could always do
table.table1>tr>td { css here; }
IE will simply ignore it.. even if you set other rules that it _does_
understand. :)
On Friday 09 December 2005 21:07, Curt Zirzow wrote:
> On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
> > This question
should come default with PHP5
http://www.php.net/manual/en/ref.xsl.php
On Friday 09 December 2005 07:56, Gerben wrote:
> Is there a way to get some sort of XSLT working on my server?
>
> safe-mode is off
> run under apache (php_sapi_mode=apache)
> dl() is enabled
> I only have FTP access
> server
Dynamically setting a constant would break the very rule of it being a
constant in the first place.
a constant is something that does not change it cannot be dynamic.
On Wednesday 07 December 2005 12:00, Jeffrey Sambells wrote:
> is there a way to dynamically define a class constant during runtim
had about 15 in my inbox this morning :)
On Wednesday 07 December 2005 08:36, Jay Blanchard wrote:
> [EMAIL PROTECTED] ?
>
> I am getting failure notices out the wazoo for some very old messages to
> the general list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
Wow.. Linux must really be real then.. look at all the distributions , kernel
patch sets, Window managers, etc.
# of programs means nothing. it's the quality of the programs.
And yes I am a linux user ;)
On Tuesday 06 December 2005 13:24, Jay Blanchard wrote:
> [snip]
> And for those interested
8, David Grant wrote:
> Stephen Leaf wrote:
> > KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention.
> > And because it's part of KDE all the kioslaves come with. Which means
> > editing sites over ftp, ftps, ssh and many others is possible.
> > Li
KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention.
And because it's part of KDE all the kioslaves come with. Which means editing
sites over ftp, ftps, ssh and many others is possible.
Like the Vim guy said. DEs? who needs them :)
On Tuesday 06 December 2005 08:15, Jeff McKeon
I personally would use javascript to evaluate the form and highlight the
fields onsubmit.
However as a backup I'd do the evaluating in php and add an error label under
the field.
echo "Password";
if ($noPass) echo "You must supply a password";
Something along those lines.
On Saturday 03 Decem
On Sunday 27 November 2005 12:34, cheeto borje wrote:
> Hello,
>
>I wanna ask you about :
>
>1. When you say server, does it mean my CPU?
By CPU I assume you mean your computer and not the Central Processing Unit.
being a CPU is the small chip inside your computer attached into the
motherb
because the time.php is parsed by php before it's sent to the client.
the time.html is not it's assumed to be a static webpage and just sent as-is
to the client.
On Sunday 27 November 2005 12:46, Oil Pine wrote:
> Hi,
>
> I am new to php scripting and would like to ask you a basic question.
>
> C
You can change values of the php.ini file within a .htaccess
http://www.php.net/manual/en/ini.core.php
For example.
php_value upload_max_filesize "50M"
php_value post_max_size "50M"
On Sunday 27 November 2005 05:59, Ajree wrote:
> Errata:
>
> I don't know what I was thinking about when I wrote '
I'd say because it's been depreciated.
LXXVI. Mimetype Functions
Introduction
Warning
This extension has been deprecated as the PECL extension fileinfo provides
the same functionality (and more) in a much cleaner way.
On Wednesday 23 November 2005 12:45 pm, Ben wrote:
> Curt Zirzow wrote:
> >
The reason why I suggested the fileinfo idea was because IE and mozilla report
the mime type differently.
image/x-jpeg vs image/jpeg I believe it is.
using fileinfo just standardizes what you need to check for.
On Tuesday 22 November 2005 09:56 pm, twistednetadmin wrote:
> I don't think that is
I use the fileinfo pecl. http://pecl.php.net/Fileinfo
how to get a mime type:
$info = new finfo( FILEINFO_MIME );
$mime = $info->file($filename);
then my extention grabber:
function getExtention() {
switch ( $this->mimeType ) {
case
I believe it's proper SQL syntax to use a double quote " tho for column names.
I've heard of backtick working.. but in any example I've ever seen both in
classes and on mysql and postgresql sites they always use "" I don't use ``
so I'm not sure how widely they are accepted.
Just ran a test in s
, especially on a shared server, but it's not
> necessarily in the category of "Never do this"
>
> On Fri, November 11, 2005 9:48 am, Stephen Leaf wrote:
> > For security.. *never* store the password in a cookie..
> > if you must... instead do some sort of enc
For security.. *never* store the password in a cookie..
if you must... instead do some sort of encryption on it and some other value
store that and use it for verification.
On Friday 11 November 2005 05:43 am, sunaram patir wrote:
> Hi, i am having problem with internet explorer. i am working on
I wrote a xsl stylesheet to do this.
takes the xml and whips it up, into a standard layout.
Don't believe I mentioned this but I might have at some point.
Register example:
Thank you for Registering!
One idea that you might try. is XSL.
instead of doing %var1% and doing a replace. you can do things like
Doing this also completely separates presentation logic from the code.
you can do other fun things like loops also.
I will warn you by saying that XSL in the beginning is a real headache to
fi
Last I checked XHTML *is* HTML only with my stricter rules applied. most
notably the XML rules.
"XHTML is a stricter and cleaner version of HTML." -- W3C XHTML tutorial.
(http://www.w3schools.com/xhtml/default.asp)
As for using PHP to transform the XSL. I've been doing this with a lot of
succes
if all you want to do is read the entire file try
$contents = file_get_contents($filename);
On Tuesday 25 October 2005 11:54 pm, John Taylor-Johnston wrote:
> It does what I want, but I worry 4096 may not be big enough. Possible?
> Is there a way to detect the filesize and insert a value for 4096?
would have to be.
http://smileaf.org/bob.php
as you can see it's working great.
did make few more changes:
class Test {
public $saying = "";
function __construct() {
.."
>
> Again, blank page. Funny though, even the ... html block
> is not rendered. Again, same beavior on 2 FC4 and 1 Win32 install.
>
> Tnx
>
> Bob
>
> Stephen Leaf wrote:
> > Sorry.. 1 more thing.
> > php5 does not use var.
> > use public $varia
Sorry.. 1 more thing.
php5 does not use var.
use public $variable=value; instead.
public is only within a class however. you cannot use it outside.
On Thursday 20 October 2005 09:35 pm, Bob Hartung wrote:
> Hi all,
>I'm trying to get started in OOP with PHP. I have the following
> short code
Try removing the /* and */
Other than that, check your brackets.
you never closed the get() function's
On Thursday 20 October 2005 09:35 pm, Bob Hartung wrote:
> Hi all,
>I'm trying to get started in OOP with PHP. I have the following
> short code snipped. I'f I comment out the 'class Test'
On Thursday 13 October 2005 01:13 am, Johan Grobler wrote:
> while ($row = mysql_fetch_array($sql_result))
> {
> echo" method=\"post\">
> >".$row['LITERATURE_title']." - ".$row['res_fname']."
> ".$row['res_lname']." ...
>
> Everything works as long as $row['LITERATURE_title'] is one word, see thi
On Thursday 13 October 2005 12:30 am, Chris wrote:
> Snag #1)
> The DOMDocument seems to represent an entire page, all I'd like to do is
> represent a Form tag and it's internal HTML. I can actually get it to
> work that way, but it seems like it's the wrong way to go about things.
being how XML wo
On Wednesday 12 October 2005 12:40 pm, jonathan wrote:
> I am trying to output a file using DOM with php5.
>
> It gives me an error with something like the following:
> farm lettuces with reed avocado, crème
> fraîche, radish and cilantro
Are you doing a:
DOMDocument::loadXML('farm lettuces with
On Tuesday 11 October 2005 01:56 pm, GamblerZG wrote:
> > On the final hand, if you pass the pages off from apache to a php
> > exe or module.. How does Apache know which one to pass it to? Php4 or
> > Php5?
>
> By the processing instruction target. That's what it's there for. I
> guess php 5 and 4
On Wednesday 05 October 2005 09:46 pm, Robbert van Andel wrote:
> Thanks, I'm investigating XSL and it looks pretty good. We use an RPM
> based installation of PHP version 5.0.4. I see on PHP.net's website that
> XSL comes standard with PHP 5 and you need to enable it by adding the
> argument --w
On Wednesday 05 October 2005 06:20 pm, [EMAIL PROTECTED] wrote:
> My company recently installed google's search appliance and I am working
> on some scripts to display the search results on our various websites.
> The problem I'm having is using the XML parsing functions I've used on
> other pages
On Tuesday 04 October 2005 08:15 pm, John Taylor-Johnston wrote:
> Any idea why I'm getting this error, and only on this page? I have the
> same header on every other page?
> http://testesp.flsh.usherb.ca/thingstodo.html
> The page contains a \n before I start my
> session_name( 'CCLTrolley' );
>
On Tuesday 04 October 2005 12:42 am, Erik Barba wrote:
> hi im new in the list i dont know where to write the email so i did it
> here, i am having a problem
> I have a xml file and im parsing with domit 1.0 but im from mexico, and we
> use " é í ó ú á ñ "
> the xml acept it but when the php show
On Thursday 29 September 2005 12:26 pm, Stephen Leaf wrote:
I have figured it out!
My guess couldn't have been more _wrong_.
Here is all you need to recreate the Error.
There is only 1 value that is off.
in the DOMDocument I gave it the wrong encoding type.
uft-8 .. it should read
guess nows a
better time than ever. hopefully I can duplicate this behavior in a smaller
class that I can just post to the list.
>
> "Stephen Leaf" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> > On Thursday 29 September 2005 04:20 am, Andy
On Thursday 29 September 2005 04:20 am, Andy Pieters wrote:
> Hi
>
> > Fatal error: Method Document::__toString() must return a string
> > value in /srv/www/localhost/htdocs/db/index.php on line
> > 140
>
> That's just what it says, check your program flow.
>
> You overrided the tostring function
is. I'd figure this
part out myself but I'm due to get off to work in... -4 mins (or 4 mins
ago :)).
Thanks,
Stephen Leaf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$date = mysql date field 2005-09-23 for example
$difference =ceil((strtotime($date) - time()) / 86400);
strtotime is far nicer than mktime when you already have a date field ready.
On Friday 23 September 2005 03:10 pm, Philip Thompson wrote:
> On Sep 23, 2005, at 11:16 AM, Chris W. Parker wrote:
On Thursday 22 September 2005 12:10 am, David Robley wrote:
Not sure if you can attach files however to make 100% sure I'm attaching a
working copy of your script. I did modify it just a bit. However the code
that you gave us initially worked flawlessly under CLI PHP.
> Graham Anderson wrote:
>
On Wednesday 21 September 2005 09:34 pm, Graham Anderson wrote:
it doesn't look like there is anything wrong with your code. what you might
check however is, is there a space or a newline before thanks Chris :)
>
> I changed the spaces but am still getting the same output errors:
> Warning: Cann
On Wednesday 21 September 2005 07:45 pm, bruce wrote:
> i agree with what you're saying...
>
> my primary concern was to make sure that there wasn't/isn't something going
> on that i haven't seen... up to know, i'm ok with what you're saying.
>
> however, i still don't have a good answer to my ques
On Monday 19 September 2005 06:04 pm, Ken Tozier wrote:
Not a bad Idea.
You might like this function I made then ;)
function createElement($parentNode, $name, $elements=array()) {
$node = $this->Dom->createElement($name);
for ($x=0; $x < count($elements); $x
On Monday 19 September 2005 12:25 pm, Ken Tozier wrote:
> > I would be extremely careful with this.. because sadly PHP's XML
> > generator
> > uses the short form whenever possible.
> > will *NOT* work in most browsers such as FireFox.
> > Will work.
>
> Thanks for the heads up. Looks like if you
On Monday 19 September 2005 09:03 am, Shaun wrote:
> Hi,
>
> I am trying to implement a regular expression so that I have a number
> between 0.00 and 1.00. the following works except I can go up to 1.99
>
> $regexp = "/^[0-1]{1}.[0-9]{2}/";
>
> Can anyone help here please?
>
> Thanks
$regexp = "/^
On Monday 19 September 2005 05:27 am, Jasper Bryant-Greene wrote:
> Ken Tozier wrote:
> > I don't see any obvious DOM method for including scripts or css links
> > like "". Do you have
> > to put them in some other type of node like a processing instruction or
> > a comment?
>
> $dom = new
- Original Message -
From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 16, 2005 11:14 PM
Subject: Re: [PHP] Quick Poll: PHP 4 / 5
leaf wrote:
Actually I choose array_pop for 2 reasons.
I like short code. I don't want to read thous
- Original Message -
From: "Joerg P" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 16, 2005 2:07 PM
Subject: [PHP] xml first special char
hello,
I have some words with german special chars in mysql. When I print those
strings direct as xml to the browser, everything seems fine.
- Original Message -
From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 16, 2005 4:45 PM
Subject: Re: [PHP] Quick Poll: PHP 4 / 5
Stephen Leaf wrote:
So yes a bug. But for those that want to be able to grab only what we
need. in my
k... "I did just click the X.. so
Yah..."
Just my 2 cents. I'm sure you guys will come up with something.. either way
PHP is the only language I'll use for a website. Thank you very much for the
detailed reason behind this.
On Friday 16 September 2005 09:28 am, Rasmu
On Tuesday 13 September 2005 05:52 pm, Ryan A wrote:
> [x] I never work with PHP 4 anymore, all my work is with PHP 5
so far I've not found any hosts that do PHP5, however I do all my own hosting
anyway.
I've switched to use PHP5 because I was interested in doing XSL, and the
concept of doing ob
On Wednesday 14 September 2005 07:36 pm, Jesús Alain Rodríguez Santos wrote:
> I have a table colum in mysql with two fields: day and month. I
> would like to know if it's possible to make a query where I can
> determine if exist days before to a selected day, for example:
> if I have in my table:
On Wednesday 14 September 2005 03:42 pm, bruce wrote:
> hi...
>
> i have the following psuedo code...
>
> i'm showing the pertinent parts, and eliminating the rest...
>
> --
> class sql
> {
>
> function sql(...)
> {
> return false
>
> mysql_
On Monday 12 September 2005 02:08 pm, Florent Monnier wrote:
> Hi,
>
> Is there a way to make dom xml applications compatible PHP4 and PHP5?
>
> Thanks
You can use the PHP_VERSION predefined constant or the function_exists(string)
http://us2.php.net/manual/en/function.function-exists.php
What I
55 matches
Mail list logo