I'm trying to find files in my array
for example
="lg_imode.gif"
and
="/db/imodeklein/edgar-IMODE-1-.gif"
I want to differentiate between the files with slash at the front and ones
without so that
I can add a server path !
but as usual I' m having problems with the correct regex
At the moment I'
Anthony Rodriguez a écrit :
> I've a VARCHAR(4) field that I want to change to a VARCHAR(6) field.
>
> What would happen to the existing data in MySQL db?
>
nothing :)
read mysql manual
>
> Thanks!
>
> Tony
> ([EMAIL PROTECTED])
>
> --
> PHP General Mailing List (http://www.php.net/)
> To uns
On Monday 29 April 2002 15:22, John Fishworld wrote:
> I'm trying to find files in my array
> for example
> ="lg_imode.gif"
> and
> ="/db/imodeklein/edgar-IMODE-1-.gif"
>
> I want to differentiate between the files with slash at the front and ones
> without so that
> I can add a server path !
> bu
[EMAIL PROTECTED] (John Fishworld) wrote:
> I'm trying to find files in my array
> for example
> ="lg_imode.gif"
> and
> ="/db/imodeklein/edgar-IMODE-1-.gif"
>
> I want to differentiate between the files with slash at the front and ones
> without so that
> I can add a server path !
> but
Greetings all,
Special greetings to all my new PHP list pals, you know who you are.
Sorry to be so mysterious in the subject line but i dont know how to explain
this in one line.
ever visit a site and you get this text (Or something like this...heheh)
"This morning shockingly Bill Gates claims
Hey all,
This email is not for any questions/suggestions etc but a thank you note.
Some time back i posted an email asking if anyone had any recomendation for
a BBS system and I got a lot of replies.
I thank each and every one of you who wrote in,
after checking out the links or software names yo
seems like you echo an 1 before print $time is called. Look through your
code, there
must be something printed or echod. Perhaps it's simple some html
(?>1 schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> Anyone know any reason that the date function would return 2
No the problem is I'm reading a file into an array and then need
to change any of the links in the file from relative links to absolute links
!
So that my lg_mode.gif gets the full server path in front of it
http://www.ltest.com/lg_mode.gif
and exactly the same with the other one but of course I
if you need access to your session among different servers,
it's the best way to store session data inside a database,
so every server can access it easily. The file container
is accessible only for local users on the server, at least
when you set up normal server configuration and not
some nasty
On Monday 29 April 2002 17:44, r wrote:
> Greetings all,
> Special greetings to all my new PHP list pals, you know who you are.
>
> Sorry to be so mysterious in the subject line but i dont know how to
> explain this in one line.
>
> ever visit a site and you get this text (Or something like this..
If you want to do it on a # of char's (the easiest), check out substr() in
the manual.
Otherwise, to break on a full word, this will do the job:
Do your query as per usual, the below assumes your text thing is $fulltext.
I put strip_tags() in there, because if you have a tag it will:
a) scre
On Monday 29 April 2002 17:10, John Fishworld wrote:
> No the problem is I'm reading a file into an array and then need
> to change any of the links in the file from relative links to absolute
> links !
> So that my lg_mode.gif gets the full server path in front of it
> http://www.ltest.com/lg_mod
Hi everyone,
I use the apache FOP tool to transform & render an XML-XSL pair to a PDF.
The following code shows my trial to perform the transformation and
rendering
within a php-script.
renderXmlXsl('data.xml', 'style.xsl');
3.if (!$result) {
4.die("Cannot process PDF-tarnsformatio
Hello,
I have a pb with mail() function.
my script run ok on a linux but not on a nt:
");
mail("fred <[EMAIL PROTECTED]>", "the subject", "message");
?>
On my windows nt server I can only run:
I have an error as soon as i use eaml like: mail <[EMAIL PROTECTED]>
It is allways the same smtp serv
Sorry don't think I've explained this very clearly ! :-))
Start again
People can enter a url with code in, this gets copied to a different server
and read as an array !
At this point, the original server path needs to be added to the links in
the copied file.
The basics of this do actually
Yes too true..
Quite well put..
That's why. I haven't read the rest of the posts on this topic yet as there
are heaps..
but when I started working on my project with my graphics man we discussed
the issue of using JS menus very thoroughly as yes Netscape and IE both have
very different implem
Hello,
Are you sure the method renderXmlXsl() returns the rendered document
?, from the output you get, it sounds like it is not returning anything,
y'd better document your self on the java class to see if there is another
method to use to get the output pdf file back from it.
Regards,
_
For historic reasons, I have a file that contains a number of records in
which the fields are seperated by the NULL character, i.e,
field1\0field2\0field3\0field4
I need to parse out the fields from this string.
The string is read into the program using
$buffer = fgets(...).
This wo
Thanks to all for your kind attention.
What I need is exactly what Miguel Cruz wrote.
What I wanted to do was a multidelete, eg:
I show the content of a table in a php page and near every row I put a
checkbox binding its checked value with ID column.
When I submit a form I send the form vars to th
This is done on PHP 3.0.16
Hi folks,
I have a problem with these HTTP_ vars.
I have a mainpage, call it main. There is an include which carries several
settings
and other includes like my abstract db-layer class.
I include this in my class-function, which works fine for the most
variables but $S
PHP cannot open that file. If youre on a *nix type system, adjust the
permissions of the file so that the user that PHP runs as has access to
the file. Also, the beginning / is probably causing trouble, because
its looking from the root of your server for a file named public_html.
---John Holm
Hi Hassen,
> Are you sure the method renderXmlXsl() returns the rendered document
> ?,
Yes, the method 'renderXmlXsl' performs the necessary transformation
and rendering, after which it returns the pdf. It is in the custom class :
de.smc.util.PDFTransformer and it has been tested outside php -
Either use LEFT() in your query, or substr() on the text after it's
pulled out to limit it's length.
There was a huge discussion on this on the Devshed.com forums on how to
do this to break on a word, before or after X characters, etc... It's on
the PHP forum, maybe you can find it if you search.
=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
==
hi, im having a few problems installing GD, ill start from the top:
I need Jpeg support in my PHP installation, and unfortunatly, GD (the
verison i have) does not sup
Hey..
yeah I might..
I don't know if I am right or just blabbering crap
but try to add these param's to your regex statement..
preg_split("/\0/i", $buffer);
note the i.. It should let it read past newlines.. although you're prob is
with null (\0) chars..
as I said.. Don't know if I am on
Hallo Henning,
thanks for your suggestion. The result...
>print_r($result);
resulted in:
Objectjava Object
(
[0] => 2
)
var_dump($result);
had given me:
object(java)(1) {
[0]=>
int(2)
}
Can you make something out of this.
-Ursprungliche Nachricht-
Von: Henning [mailto:[EM
Hi there,
I would like to create an XML parser using Php. Any good references for doing this??
Philip
> Hey..
>
> yeah I might..
>
>
> I don't know if I am right or just blabbering crap
>
> but try to add these param's to your regex statement..
>
>
> preg_split("/\0/i", $buffer);
>
>
> note the i.. It should let it read past newlines.. although you're prob is
> with null (\0) chars..
>
>
> as I s
Hi there,
I would like to create an XML parser using Php. Any good references for
doing this??
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello!
I am looking for some sample code that will parse a file in Unix mbox format.
I want to write an app that will examine mail messages for email-registration
info. Parsing the mail with the registration is what I will do, but I"m
hoping someone has already done some relatively simple code t
Hello,
try sourceforge.net or freshmeat.net.
There are very usefull programs.
Try search: mail mime
Regards
Michal Dvoracek [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: Padraig Kitterick [mailto:[EMAIL PROTECTED]]
> Sent: 26 April 2002 20:16
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sessions with register_globals = off
>
>
> Am in need of help or I will loose my sanity!!! Im runnin Php
> 4.1.2 with
> Apache 1.3.22 on Win32 w
> -Original Message-
> From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2002 01:15
>
> "Vins" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > if(!ereg("^#(.)*$", $buffer[$i]))
> > {
> > echo "ok";
> > }
> >
> > what does this mean
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
> Sent: 29 April 2002 05:34
>
> On Sun, 28 Apr 2002, Richard Emery wrote:
> > The answer is:
> > $file_pointer = fopen('/public_html/emails.txt', "a") or exit;
> >
> > The " || " is a binary operation. You want "or",
anyone have a recommendation for a good free/cheap load testing utility for php/mysql
sites?
thanx
adrian
On Mon, Apr 29, 2002 at 02:42:01PM +0200, Michal Dvoracek wrote:
>
> try sourceforge.net or freshmeat.net.
>
> There are very usefull programs.
>
> Try search: mail mime
Great suggestion, thanks!
--
In light of the terrorist attack on the U.S.:
They that give up essential liberty to
On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote:
> > -Original Message-
> > From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
> > Sent: 27 April 2002 01:15
> >
> > "Vins" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > > if(!er
On Monday 29 April 2002 18:26, Dave MacRae wrote:
> For historic reasons, I have a file that contains a number of records in
> which the fields are seperated by the NULL character, i.e,
>
> field1\0field2\0field3\0field4
>
> I need to parse out the fields from this string.
>
> The string is read i
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> Sent: 29 April 2002 14:12
> To: [EMAIL PROTECTED]
>
> On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote:
>
> Well the ereg is looking for strings beginning with # but
> then the whole if
> expression
At 29.04.2002 20:02, you wrote:
>=
>PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
>=
>hi, im having a few problems installing GD, ill start from the top:
>I need Jpeg support in my PHP installation, and unfortunatly, GD
On Monday 29 April 2002 20:02, Peter Revill wrote:
> hi, im having a few problems installing GD, ill start from the top:
>
> I need Jpeg support in my PHP installation, and unfortunatly, GD (the
> verison i have) does not support them, so i figure, ill install it,
> installing the libary jpeg-6b
Jason Wong wrote:
>On Monday 29 April 2002 20:02, Peter Revill wrote:
>
>
>
>>hi, im having a few problems installing GD, ill start from the top:
>>
>>I need Jpeg support in my PHP installation, and unfortunatly, GD (the
>>verison i have) does not support them, so i figure, ill install it,
>>in
On Monday 29 April 2002 21:40, Peter Revill wrote:
> Im not even sure myself, linux on 2.2.14 on what should be a redhat box
> i know theres a command something like dsmod to get the info, hmm..
Never mind, as long as you're reasonably sure it's a RH system you're running
on .
> >Have you chec
Jason Wong wrote:
>On Monday 29 April 2002 21:40, Peter Revill wrote:
>
>
>
>>Im not even sure myself, linux on 2.2.14 on what should be a redhat box
>>i know theres a command something like dsmod to get the info, hmm..
>>
>>
>
>Never mind, as long as you're reasonably sure it's a RH system
> On Monday 29 April 2002 18:26, Dave MacRae wrote:
> > For historic reasons, I have a file that contains a number of records in
> > which the fields are seperated by the NULL character, i.e,
> >
> > field1\0field2\0field3\0field4
> >
> > I need to parse out the fields from this string.
> >
> > T
At 29.04.2002 15:24, you wrote:
>At 29.04.2002 20:02, you wrote:
>>=
>>PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
>>=
>
>>hi, im having a few problems installing GD, ill start from the top:
>>I need Jpeg support in m
It's already been done many times.
Go to Google and search for it. Also, try sourceforge and hotscripts
save yourself the aggravation...
- Original Message -
From: Philip Yeo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 7:14 AM
Subject: [PHP] Php and XML
H
Hi List,
I am new to php programming and wanted to know if it is possible to return
multiple value from a function like cgi programs.
How can I get the following result using php.
($var1, $var2) = myfunction($a,$b);
function myfunction($c,$d)
{
// code
// code
return ($e,$f);
}
--
PH
no, it's not possible to do it that way. If you need to return multiple
values from a function, your best bet is to return an array or some kind of
record structure.
By design, in almost all languages, functions only return a single value.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
- Original Message -
From: sanjay <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 9:11 AM
Subject: [PHP] return multiple value from function
Hi List,
I am new to php programming and wanted to know if it is possible to return
multiple value from a function lik
Bedilu Habte wrote:
>>print_r($result);
>>
> resulted in:
>
> Objectjava Object
> (
> [0] => 2
> )
>
> var_dump($result);
> had given me:
>
> object(java)(1) {
> [0]=>
> int(2)
> }
it means that you have an object with a property field of type integer
and a value of 2.
possibly n
Hi list,
I want to buil an multidimensional array with the results of Mysql, but I
don't know how to do it.
What I need is:
"SELECT name,adress from tbl_."
array name will receive the names
array adress will receive the adresses
and array clientes will contain both, so when i try to access i
On Monday 29 April 2002 22:11, sanjay wrote:
> Hi List,
>
> I am new to php programming and wanted to know if it is possible to return
> multiple value from a function like cgi programs.
> How can I get the following result using php.
>
> ($var1, $var2) = myfunction($a,$b);
>
>
> function myfuncti
Best you can do is return an array and call it like this:
function myfunction($a,$b)
{
$r[0] = $a + 1;
$r[1] = $b + 1;
return $r;
}
list($c,$d) = myfunction(10,20);
Adapt to your needs.
---John Holmes...
- Original Message -
From: "sanjay" <[EMAIL PROTECTED]>
To: <[EMAIL P
$name = Array();
$address = Array();
$clients = Array('nome' => 0, 'address' => 0);
$i = 0;
while (list($client_name, $cliente_add) = mysql_fetch_array($res)) {
$name[$i] = $client_name;
$address[$i] = $client_address
$clients['nome'][$i] = $client_name;
$clients['address'][$i] =
On Monday 29 April 2002 21:55, Peter Revill wrote:
> Its a colbat cube running some sort of modified linux, i think based on
> Redhat
> i doint know what kind of colbat cube
I presume you mean Colbalt ;-) in which case you cannot use the RH rpms.
> >If there aren't any special reasons, I would
I am not an expert at PHP and have been learning it through questions,
books, online help, etc I guess like most people. :) Anyway, I see a
lot of scripts that use $this->something and was wondering if this was just
another variable or if the "->" has any special meaning. One script from
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,
I am sorry I ask this for a second time.
Come on guys ! I am sure somebody can help, please
I set my own error handler. It is in a file "general_includes.php"
(please find it below) and all pages do a "require"
Hi, Steve.
$this refers to a specific instance of a class. The -> accesses a property
or method associated with this class.
So, in your class, say it's class car, and in your constructor you want to
initialize the color to red, you'd do
$this->color = $red;
Outside of the class, with your $
It's used in object oriented programming (OOP) with classes. $this refers to
the current object.
So $this->setup() in PHPLib is referring to the setup() function within the
object.
You can get a better explanation and examples by reading the manual page on
OOP.
http://www.php.net/manual/en/lang
Hi All,
Thanks alot for all your help with the _SERVER['PHP_SELF'] earlier, I have
another question related to that:
What is the correct syntax for the above if I want to use it in a print
statement like so (I included the whole piece of code so you guys could at
least see what I'm trying to do)
Thanks to Natalie, Jason and John. Plus anybody who responds after this
email. I will have to do some reading up on this now to see if and where i
can use this.
Thanks Again
Steve
At 09:50 AM 4/29/2002, 1LT John W. Holmes wrote:
>It's used in object oriented programming (OOP) with classes. $
On Monday 29 April 2002 23:05, Kirk Babb wrote:
> Hi All,
>
> Thanks alot for all your help with the _SERVER['PHP_SELF'] earlier, I have
> another question related to that:
>
> What is the correct syntax for the above if I want to use it in a print
> statement like so (I included the whole piece o
Hi there,
I have got various text files which I need to convert on the fly to HTML
with PHP.
How do I convert this:
--- TEXT ---
CHART RETURN
Chart Date: blah
No. Artist - 'Track (Remix)' (Label)
1. blah - 'blah (blah mix)' (blah)
--- END TEXT---
to this:
--- HTML ---
CHART RETURN
Chart D
the manual is your friend.
http://www.php.net/manual/en/function.nl2br.php
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Randum Ian [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 10:20 AM
To: PHP
Subject: [PHP] Text
Hello all
I have written a very simple PHP script to copy the data from one MySQL
database table on SERVERA to another MySQL database table on SERVERB.
Using PHP, I simply connect to each server and copy the data across. That
works well.
However, natively, MySQL works with clear text. i.e. th
> > //print "" .
This is the problem with not breaking out of a string to display a variable.
Ideally, you would do it this way:
print "";
But some people just have a problem with doing it that way, so you can use
braces.
print "";
If you don't use the braces, how is PHP supposed to know what
Does anybody know of a good/short tutorial about passing variables from
JavaScript to/from PHP? For example, how to do the following:
data = "hello world";
";
?>
The above might at least give me a clue. Just a note. I really know
nothing to speak of about JavaScript.
Thanks in Adva
My suggestion, if you just want to move data between the 2 servers, is to
mysqldump to a file, scp the file to the destination server and then mysql <
filename to get it into the second server. You can't do it under
programmatic control but it will work and your data will remain secure in
transp
since php runs on the server, not on the client, you have to pass the value
of data back to the server. Normally, this is done via a GET or a POST
from a form or by building a URL and using javascript to load it. (i.e.
document.location = 'http://myserver.com/mypage.php?data=Hello%20World';)
Th
Ok. My last post didn't go throught the list software because of the
tags. I am replacing the "<" and ">"'s with *'s now so that hopefully it
will go through so that people can see it.
--Original message
Does anybody know of a good/short tutorial about passing variables from
JavaScri
Try something like this and see if it works???
The computer has picked $another number between 1 and 10.
Guess the number and you win!
Enter your guess:
";
if (isset($guess))
{
srand((double)microtime()*100);
$number =
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all
I want to get started with xml/xslt, I've read a few things about
sablotron but am unsure what support my host is running.
If any of you know anything about this subject would you be kind enough
to look at the phpinfo() I've set up here:
http:
All you can do is use PHP to print out Javascript code.
var something;
something = '=$data?>';
etc...It's no different than using PHP to print out HTML code.
Now, if you want to get that Javascript variable "something" sent back to
PHP, you have to assign it to a form element or tack it on
Only one letter difference between PGP and PHP yet makes no sense... ;)
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8zWnJHpvrrTa6L5oRAv5DAJ9Fp8vq7+PPqIiM1Mnqf5sGZlhD5wCfWqan
> TWH60NiXJh5ESsHP0QNLsUY=
> =dJq7
>
This is what I do in one of my programs. I set hidden values in my HTML and
then JS can access them, change them, and then when the form is submitted
(JS can do that too if you want it to be automatic) the PHP reads in the
hidden values.
-Natalie
-Original Message-
From: 1LT John W. Hol
Thank you Carl, for your suggestion.
You are correct. In this case, it would be possible to use mysqldump to
create a file, then SSH to transfer it and then pipe it into the database.
However, I am interested in learning how to connect directly to the MySQL
port, as in a second step of the pro
Just fix your parse errors. Who cares what error handler it goes to.
Are you going to release code with parse errors in it and do you really want
to get an email each time someone gets one?
---John Holmes...
- Original Message -
From: "Pedro Garre" <[EMAIL PROTECTED]>
To: "php-general"
You may also look at SSH port forwarding, this allows you to create an
encrypted tunnel between the two machines, then you connect to the local
port, the data gets encrypted sent across the wire and decrypted at the
destination.
Look at -L in your ssh man or search google for ssh tunneling
stunn
OOPS!
You are right on..
I noticed my error after I sent it. The name='guess' was on the input.??
Daaa! it's Monday .. OK!!
This should work:
===
The computer has picked $another number between 1 and 10.
Guess the number and you win!
Enter your gu
Hi,
First some info about my working environment:
OS - Win2000
PHP - 4.1.1
Java - 1.3.1
(Apache - 1.3.22)
> are you sure you did everything right with the java/php combination? did
> you test that with other, easier things?
I've modified the php.ini (and http.conf) to be able to call java from p
In html/css you can set a font size in pixels -- in my experience this
means a letter takes the same number of pixels, regardless of
resolution. With php, can I use string length and font pixel size to
determine the length of a given string on a screen? Does anyone know an
algorithm for this that
I have a basic sort:
$orderd_list = array ("$onec_rounded_total", "$aps_rounded_total",
"$bo_rounded_total", "$cap3_rounded_total", "$cap3_rounded_total",
"$cap_rounded_total", "$cfl_rounded_total", "$ecg_rounded_total",
"$ldd_rounded_total", "$png_rounded_total", "$spr_rounded_total",
"$ist917_
Hello list,
My PHP acts unexpected when requiring files with a leading dot. I'm on
FreeBSD 4.3
In a directory I have the following two files:
.mydotfile.php:
myfile.php:
When I run myfile.php there is no output!
If I rename .mydotfile to something without a leading dot and change the
n
On Tuesday 30 April 2002 00:17, District Webmaster wrote:
> In html/css you can set a font size in pixels -- in my experience this
> means a letter takes the same number of pixels, regardless of
> resolution.
That may (or may not) be true, but that's referring to the height of the font.
> With
Works fine on WinXP, PHP 4.1.1, IIS 5.1
---John Holmes...
- Original Message -
From: "Frank" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 12:19 PM
Subject: [PHP] PHP "ignoring" dotfiles
>
> Hello list,
>
> My PHP acts unexpected when requiring files with
On Tuesday 30 April 2002 01:19, Jim Long wrote:
> I have a basic sort:
>
> $orderd_list = array ("$onec_rounded_total", "$aps_rounded_total",
> "$bo_rounded_total", "$cap3_rounded_total", "$cap3_rounded_total",
> "$cap_rounded_total", "$cfl_rounded_total", "$ecg_rounded_total",
> "$ldd_rounded_to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Frank declared
> .mydotfile.php:
> echo "I am here!";
> ?>
>
> myfile.php:
> require '.mydotfile.php';
> ?>
>
>
> When I run myfile.php there is no output!
Just a hunch: do you get the same permissions output for the dotfiles as
Nick Wilson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi all
> I want to get started with xml/xslt, I've read a few things about
> sablotron but am unsure what support my host is running.
>
> If any of you know anything about this subject would you be kind enough
> to look at
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Henning declared
> it seems you have this:
>
> http://www.php.net/manual/en/ref.xml.php
Yes, I've read that thanks.
> xslt seems not to be supported by your provider, dunno how you can still
> use it, but i heard of some php classe
On Mon, 29 Apr 2002, District Webmaster wrote:
> In html/css you can set a font size in pixels -- in my experience this
> means a letter takes the same number of pixels, regardless of
> resolution. With php, can I use string length and font pixel size to
> determine the length of a given string on
Just my $0.02, but it's generally a bad idea to use fixed pixel size fonts.
Some people need to be able to enlarge and decrease the font size within the
browser, and this will not allow them to do it.
Maybe if you explain what you're trying to accomplish, somone here can help
you out a little mor
Font-size is the height of text, the width is changing w/ every font (e.g. i
and m).
If you use exactly one font, you may use an array of widths(which you
measured before), but that's not really exact.
Perhaps, a way would be to use temporarly gd (ttfbox and/or imagefontwidth),
but I don't know ho
On Mon, 29 Apr 2002 [EMAIL PROTECTED] wrote:
> I include this in my class-function, which works fine for the most
> variables but $SERVER_ADDR It seems that I cannot get these variable in
> the function of my class so I have to pass them as argument to the
> function. I have made an init() functio
On Mon, 29 Apr 2002, Adrian Murphy wrote:
> anyone have a recommendation for a good free/cheap load testing utility
> for php/mysql sites?
Apache comes with 'ab'.
http://httpd.apache.org/docs/programs/ab.html
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
>Just a hunch: do you get the same permissions output for the dotfiles as
>the normal ones?
Thanks for the idea. I am not sure what you mean by "permissions output"
but it is same owner and an "ls -la" gives
-rwxr-xr-x 1 frank wheel 27 Apr 29 23:05 .mydotfile.php
-rwxr-xr-x 1 frank whe
On Mon, 29 Apr 2002, Ford, Mike [LSS] wrote:
>> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
>>
>> This side effect is not mentioned at
>> http://www.php.net/manual/en/language.operators.logical.php where it
>> imples that the only difference is precedence. I'd say this is a bug
>>
Is this behaviour normal. I can't destroy SID.
Take a look at the following code.
session_start();
session_unset();
session_destroy();
echo SID;// SID still exists ?!
some code
session_start();
echo SID; // this SID is equivalent to the one above
$sess_id = session_id(); // n
At 30.04.2002 00:01, you wrote:
>>Just a hunch: do you get the same permissions output for the dotfiles as
>>the normal ones?
>
>Thanks for the idea. I am not sure what you mean by "permissions output"
>but it is same owner and an "ls -la" gives
>
>-rwxr-xr-x 1 frank wheel 27 Apr 29 23:05
At 29.04.2002 10:17, you wrote:
>
>In html/css you can set a font size in pixels -- in my experience this
>means a letter takes the same number of pixels, regardless of
>resolution. With php, can I use string length and font pixel size to
>determine the length of a given string on a screen? Does
1 - 100 of 215 matches
Mail list logo