On Nov 27, 2003, at 9:12 PM, [EMAIL PROTECTED] wrote:
The line of PHP code that gives this info goes like this--at least the
way
I unsuccessfully put it:
putenv('GDFONTPATH=Macintosh HD/Fonts
$fontname = 'arial.ttf'
Steve,
I've never used fonts with GD before, but on the surface, this looks to
b
php-general Digest 28 Nov 2003 05:46:25 - Issue 2441
Topics (messages 171223 through 171243):
2 (simple?) php related questions
171223 by: Ryan A
171225 by: Graham Solomon
Re: Does anyone have Upload meter php codes?
171224 by: Ryan A
Re: House for rent - Good price
Hi,
Friday, November 28, 2003, 12:12:57 PM, you wrote:
son> Working on a Macintosh G3 PowerBook running OS 10.2 and PHP 4.3.0 with GD2
son> ...
son> I'm having trouble telling GD2 where the font I'm using in a PHP exercise
son> (Chapter 19 of the 2nd edition of the Welling/Thomson book), arial.tt
Working on a Macintosh G3 PowerBook running OS 10.2 and PHP 4.3.0 with GD2
...
I'm having trouble telling GD2 where the font I'm using in a PHP exercise
(Chapter 19 of the 2nd edition of the Welling/Thomson book), arial.ttf,
resides. The font is obviously in a folder on my hard drive, the path of
Duh, why didn't I think of urlencode() ?! I kept looking for
something with hex in it, or some string conversion. It never dawned on
me...I'm dealing with html stuff and conversion...and url never even
came to mind. Must be the turkey (more like, lack thereof...) Hay,
thanks everyone. H
On Thu, 2003-11-27 at 20:51, Ashley M. Kirchner wrote:
>
> How can I convert a string like this: "test & test" into
> "test%20%26%20test" so I can then pass it to a script? Essentially
> convert the spaces and & symbol to their ASCII HEX equivalent.
urlencode()
Cheers,
Rob.
--
.
Ashley M. Kirchner wrote:
How can I convert a string like this: "test & test" into
"test%20%26%20test" so I can then pass it to a script? Essentially
convert the spaces and & symbol to their ASCII HEX equivalent.
http://us3.php.net/manual/en/function.urlencode.php
--
By-Tor.com
It's all a
How can I convert a string like this: "test & test" into
"test%20%26%20test" so I can then pass it to a script? Essentially
convert the spaces and & symbol to their ASCII HEX equivalent.
--
H| I haven't lost my mind; it's backed up on tape somewhere.
+--
One common way to work around many search engines ignoring pages with
query strings is to use scripts with odd URIs
(http://server.com/foo.php/foo/bar for instance) and get them with
$_SERVER['PATH_INFO']. How compatible is doing that? Will servers
besides Apache support it?
--
PHP General Mai
OK. That worked, thanks.
Is it me, or is that rather odd behavior? Shouldn't array elements
set within a loop be available to me outside the loop if the loop
exits normally? A loop is not a function (well it is, sort of.)
Should I declare the variable as global?
global $content_array;
$
Thank you, I'll try that.
Curtis
On Wednesday 26 November 2003 21:53, the council of elders heard Marek
Kilimajer mumble incoherently:
> Curtis Maurand wrote:
> > Sorry, its a typo. it should be:
> >
> > $city = "Ipswitch";
> > $city_found = 0;
> > $contentfile = fopen("content.txt", "r");
>
On Friday, November 28, 2003, at 12:17 AM, pete M wrote:
What Preg_replace code would I need to highlight all the code within
the "" tags in red.. (case insensitive)
What I want is a view_source.php page to highlight the javascript for
a tutorial I'm writing. Can view t
Hi
I came across some strange session behaviour today using latest version of php
under apache 1.3.29 on redhat 9.
I am using a customer handler for the sessions, a simple mysql table. I am
finding that the session data intermitently switches to wddx serialisation
rather than the deault method
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sorry but thats not what i'm after. I want to know the available memory
needed to load the image. The default php memory limit is 8M and if the
image is large php is not able to load it because the 8M limit is
reached and therefore causes php to error o
Cookies, or browsersession. I found the latter to be very
easy to work with.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
-
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
Im using Outlook Express reading theese messages and I
think the newsreader works just fine.
But what do I do when theese people post with wrong dates.
Is there any way in Outlook Express I can remove theese posts,
or do I have to see them topping the list every time I check the
lists?
Ive tried
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
Ryan A wrote:
Hi,
I have 2 main php questions and a few sub questions :-)
1.
I have Dreamweaver/EditPlus and Zend developer (some full versions some
trial) (am open to trying out other tools)
Is there anyway to do a find/replace on a particular variable in a whole
directory? (or all files that re
> http://pear.php.net/package/HTML_Progress
Very nice,
But seems to have a problem with Netscape Communicator 4.75
Works perfectly with IE and Opera it seems
Cheers,
-Ryan A
http://Bestwebhosters.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
Hi,
I have 2 main php questions and a few sub questions :-)
1.
I have Dreamweaver/EditPlus and Zend developer (some full versions some
trial) (am open to trying out other tools)
Is there anyway to do a find/replace on a particular variable in a whole
directory? (or all files that refer/use that
On Thu, 27 Nov 2003, Eugene Lee wrote:
> Instead of using regexps on the URL, it might be easier (and safer) to
> loop through $_GET, build a new $geturl array, add/delete/change any
> variables in $geturl, then build a new $geturlstr string that can then
> be appended to your hyperlinks.
What abo
On Wed, 2003-11-26 at 20:17, Raditha Dissanayake wrote:
> >Right, I agree this is a very bassakwards way of going about it.. In this
> >instance, performance is not really an issue as much as politics.. but
> >this comment is useful as we may be able to persuade them into providing
> >information a
*** Sorry if this is a duplicate for some on another list**
Hi Guys,
I need help with this code I am about to paste. It works on a testing
server running PHP 4.2.2 but not 4.3.2
Here is the error:
Warning: array_merge_recursive(): recursion detected in
/services2/webpages/r/i/rinkrake.com/p
Hallo,
Hope somebody can help me.
I'm working on Linux, Apache.
On my start-site the user can log in via inserting Username and Password
into normal formfields, which are compared with a DB.
After this login, he can change to his own user-directory which is .htpasswd
and .htaccess protected. Th
Perfect - thanks Bogdan
Bogdan Stancescu wrote:
***
This Email Has Been Virus Swept
***
Neil Freeman wrote:
Hi there,
Does anyone have any suggestions as to how I can calculate whether one
timestamp is with
Neil Freeman wrote:
Hi there,
Does anyone have any suggestions as to how I can calculate whether one
timestamp is within one second of another timestamp.
e.g.
Timestamp 110:59:59
Timestamp 211:00:00
Essentially I need to create a function which'll take two parameters and
return whether
Hi there,
Does anyone have any suggestions as to how I can calculate whether one
timestamp is within one second of another timestamp.
e.g.
Timestamp 110:59:59
Timestamp 211:00:00
Essentially I need to create a function which'll take two parameters and
return whether the two parameters
David T-G wrote:
> Bogdan --
>
> ...and then Bogdan Stancescu said...
> %
> % ...as in...
> %
> % % // Could've been done with ASCII sets, but this way
> % // you can easily tweak the eligible characters.
> % $eligible='abcdefghijklmnopqrstuvwxyz0123456789';
> % $pwdLen=8;
> % $passwo
Well, you have three solutions. One, you finish it the way you started,
in which case you'll need to use htmlspecialchars() on $out in the form
(otherwise you'll almost certainly escape from the form tag sooner or
later). Two, you store the data temporarily in a database or something
(faster fo
Most humble apologies. Trying to create an excel file
of the current php page which can be downloaded. What
I've been doing is creating an output buffer and then
using ob_get_clean to retrieve the page contents.
for example, $out=ob_get_clean();
Now everything works up to there, but when I try
Thanx all
problem is solved now.
Thank you very much for ur help
Nitin
- Original Message -
From: "Sophie Mattoug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 7:04 PM
Subject: Re: [PHP] how to retrieve data from a web page
> See these pages www.php.net
You didn't provide much help by not answering the very question in the
title. _HOW_ would you want to send it? Via a POST variable? Internally,
via a plain text file? Internally, via memory sharing? Via e-mail? Also,
it would be interesting to know what exactly you're after, that could
help peo
Curt Zirzow wrote:
Thank you very much for cleaning my money. Make sure it goes through the
drier before I get it back. I don't want my pockets to get web.
I do neither though. But you know. Some people slip and fall in the mud
and their money gets dirty. What can you do?
Why are you all replying
Hi:
Does anyone have info on sending the contents of an
entire php webpage to another php page on the same
server? A little code would be helpful.
Thanks
__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
--
PHP General Mailing List
Thank you! :)
Doing a "make clean" solved the problem and now
everything works. Re using Apache 2.x, yes I was
just using this because it was what came with
RH Linux 8.0 and 9.0. It is not a commercial
server. However I will look into using 1.3.29.
This was my first attempt at building Apache,
PH
At 14:30 27-11-03, you wrote:
hi all,
I've a situation, where i want to supply some data to my script, which is
dynamic and is available on a web page. How can i fetch that particular
data from a page, if there's a way...
check the net for PHP and RSS-feeds. RSS is some sort of unified file
for
See these pages www.php.net/fopen and www.php.net/file
good luck!
Nitin wrote:
hi all,
I've a situation, where i want to supply some data to my script, which is dynamic and is available on a web page. How can i fetch that particular data from a page, if there's a way...
Thanx in advance.
Nitin
hi all,
I've a situation, where i want to supply some data to my script, which is dynamic and
is available on a web page. How can i fetch that particular data from a page, if
there's a way...
Thanx in advance.
Nitin
Shaun wrote:
Hi,
I need to generate a lowercase alphanumeric passwrord thats 8 characters
long, has anyone got a function that can do this?
No, but I can write a quick one for you. Can't guarantee the uniqueness
of the password being generated.
function passgen()
{
srand((float) microtime()
What Preg_replace code would I need to highlight all the code within the
"
On Thu, 27 Nov 2003, David T-G wrote:
> Many people might expect a mailing list to behave as a newsgroup,
> but it isn't and so it won't.
Having read this thread, must say I wonder where is this
world is going when people who consider themselves
coders are "confused about
Bogdan --
...and then Bogdan Stancescu said...
%
% ...as in...
%
%
Looks good to me. You're too kind; I was going to leave the exercise to
the student to complete :-)
%
% Bogdan
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) [EMAIL PROTEC
Malcolm, et al --
...and then Malcolm said...
%
...
%
% Opera 7.23 on windows and reading this as a newsgroup, the reply goes to
% the group, as I would expect.
Aha! I think I see the cause of some of the confusion.
Many people might expect a mailing list to behave as a newsgroup, but it
isn
...as in...
Bogdan
David T-G wrote:
Shaun --
[No need to post twice...]
...and then Shaun said...
%
% Hi,
Hi!
%
% I need to generate a lowercase alphanumeric passwrord thats 8 characters
% long, has anyone got a function that can do this?
This isn't really a regular expression question, s
Shaun --
[No need to post twice...]
...and then Shaun said...
%
% Hi,
Hi!
%
% I need to generate a lowercase alphanumeric passwrord thats 8 characters
% long, has anyone got a function that can do this?
This isn't really a regular expression question, since you'd use an
expression to check
Astron --
...and then Astron of BrOnX said...
%
% Hi everyone, i am looking for upload meter progress bar codes. I have looked
There's a problem with the progress bar that is a part of Netscape,
Mozilla, IE, Konqueror, ... ?
HTH & HAND
:-D
--
David T-G * There is too muc
Wouter, et al --
...and then Wouter van Vliet said...
%
...
% Though way off topic, ...
That's for sure :-)
%
% Linux usually keeps a history of commands run by itself. With the command
% "history" you can view your last actions. Probably a 'man history' will tell
% you in what file it is sto
Stuart wrote:
http://php.net/strip_slashes
http://php.net/stripslashes (oops, sorry)
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A. Mikkelsen wrote:
Problen with format..
But when I ECHO 'new_loc_path' in a function I get
S:\\Script\\License\\
But I want go get
S:\Script\License\
can anyone help ???
magic_quotes_gpc is on, addslashes() is run on each get, post and cookie
variable.
A. Mikkelsen wrote:
But when I ECHO 'new_loc_path' in a function I get
S:\\Script\\License\\
But I want go get
S:\Script\License\
http://php.net/strip_slashes
You might also want to look into the magic_quotes_gpc option in php.ini.
--
Stuart
--
PHP General Mailing List (http://www.php
Problen with format..
***
Hi,
I need to generate a lowercase alphanumeric passwrord thats 8 characters
long, has anyone got a function that can do this?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I need to generate a lowercase alphanumeric passwrord thats 8 characters
long, has anyone got a function that can do this?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Jorge Infante Osorio." wrote:
> I determinate the value of a variable in the botton of one page, and I want to use
> it in the middle of the page, inside
> a while structure, but I cant´n, inside the while structure I calculate the value of
> this variable several times until I keep with the
[EMAIL PROTECTED] wrote:
> Hello all,
>
> I want to make a history file while
> runing a script in a shell.
>
> Does anyone know how to store all
> the history and the result to a file I want?
>
> what is the command for it?
>
> thank you in advance
>
> Joshua
Though way off topic, ...
Linux
Astron of BrOnX wrote:
Hi everyone, i am looking for upload meter progress bar codes. I have looked
up arround and the most of them needs for patching PHP to get upload
variables. And also they are for Linux. I have need a solution for windows.
It can be a extra DLL file for PHP but i dont know how
THANKS TO ALL!! I SOLVED IT
- Original Message -
From: "Graham Solomon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 11:28 AM
Subject: Re: [PHP] Problems with a simple page
> Jay Blanchard wrote:
> > [snip]
> > Hi php-fans... here's a simple question for
This should do it, also check the links on the left.
http://php.net/manual/nl/pcre.pattern.syntax.php
Citeren "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
> Hi,
>
> I see from the postings that I should learn Regular Expressions quite fast.
>
> Is there somewhere a decent online tutorial you could
Hi,
I see from the postings that I should learn Regular Expressions quite fast.
Is there somewhere a decent online tutorial you could recommend?
Thanks
Nico
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
> Hello
>
> Just out of curiosity why do you need such a function? I'm no
> perl programmer and have very little knowledge of the
> language ... yet ; ) but the way you describe it it seems to
> me that you have a fundamentle design flaw in your script if
> you need to ch
On Thu, Nov 27, 2003 at 01:20:57PM +0400, Sheni R. Meledath wrote:
:
: Could anybody help me to create a regular expression to remove a pattern
: from a string.
:
: $querystring =
http://10.100.1.7/cdms/prfl.phtml?action=search&custtype=1&gender=&x=22&y=10&page=2
:
: I would like to remove "&p
Hi,
Could anybody help me to create a regular expression to remove a pattern
from a string.
$querystring =
http://10.100.1.7/cdms/prfl.phtml?action=search&custtype=1&gender=&x=22&y=10&page=2
I would like to remove "&page=2" from this query string. The page number
changes. That is the reason w
Hi everyone, i am looking for upload meter progress bar codes. I have looked
up arround and the most of them needs for patching PHP to get upload
variables. And also they are for Linux. I have need a solution for windows.
It can be a extra DLL file for PHP but i dont know how i can find?
If anyone
Hello
Just out of curiosity why do you need such a function? I'm no perl
programmer and have very little knowledge of the language ... yet ; )
but the way you describe it it seems to me that you have a fundamentle
design flaw in your script if you need to change types on the fly that are
in no
>
> Thank you very much for cleaning my money. Make sure it goes through the
> drier before I get it back. I don't want my pockets to get web.
> I do neither though. But you know. Some people slip and fall in the mud
> and their money gets dirty. What can you do?
Why are you all replying to this?
On 26 November 2003 15:23, David T-G wrote:
> Jay, et al --
>
> ...and then Jay Blanchard said...
> %
> % Curious, how is it that you define multi-dimensional?
>
> I'm no expert, but I'd say that a multi is addressed as
>
> array[x,y,z]
>
> while a nested is
>
> array[x][y][z]
In a nutsh
* Thus wrote pete M ([EMAIL PROTECTED]):
> thsi si a nighmare area. and loast days on same problem
Its a nightmare area cause so many things can go wrong with your
script.
>
> This works for me.. hope it does for you
>
> $file = $_GET['file'];
> $path = '/www/cgi-bin/docu/personal/'.$file;
On Thu, 2003-11-27 at 00:29, [EMAIL PROTECTED] wrote:
>
>
> Important notice
>
>
> We have just charged your credit card for money laundry service in amount of $134.65
> (because you are either child pornography webmaster or deal with dirty money, which
> require us to laundry them and then s
Just another reason why I think i'll just send the Un-Subscribe Email
_
Nigel Jones
[EMAIL PROTECTED]
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, November 27, 2003 6:30 PM
>> To: Php-general
>> Subject: [PHP] Important n
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 27, 2003 12:30 AM
> To: Php-general
> Subject: [PHP] Important notice
> Importance: High
>
>
>
>
> Important notice
>
>
> We have just charged your credit card for money laundry
> ser
Important notice
We have just charged your credit card for money laundry service in amount of $134.65
(because you are either child pornography webmaster or deal with dirty money, which
require us to laundry them and then send to your checking account).
If you feel this transaction was made b
* and then Rasmus Lerdorf declared
> Why not just fread($pagehandle,32768) ?
Sure. I just got confused as to why '8912' was on the example and
thought it significant. I see it's not now, thanks ;-)
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]):
> On 26 November 2003 12:43, Jay Blanchard contributed these pearls of wisdom:
>
> > [snip]
> > Well, so is there any online resource whereby I can read up on
> > "FLAG" ???Or any idea how should I go about creating the
> > memory lo
76 matches
Mail list logo