Sathiyabama,
Is always a good idea to read the manual, search google and the list
archives before posting to this list, the below links should help you get
started.
http://www.php.net/manual/en/function.mail.php
and:
http://www.php.net/manual/en/function.rmdir.php
Regards,
Joseph
> -Ori
I know nothing about using php and COM under windows but a good place to
start would be:
http://www.php.net/manual/en/ref.com.php
regards,
Joseph
> -Original Message-
> From: Diego Fulgueira [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 22 July 2003 1:10 PM
> To: John Herren; [EMAIL PROTEC
gards,
Joseph Blythe
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
Sent: Friday, 4 July 2003 4:18 PM
To: Ow Mun Heng
Cc: Mark Charette; [EMAIL PROTECTED]; Shena Delian O'Brien
Subject: RE: [PHP] Re: Red Hat 9, Apache 2, and PHP
Apache2 has a number of differen
above areas and live in
Adelaide South Australia, please send resumes, relevant experience and
contact details to:
mailto:[EMAIL PROTECTED]
Please do not reply on this list!
Regards,
Joseph Blythe
Production Manager
Optcom
49a Orsmond Street
Hindmarsh SA 5007
P: (08) 8346 3311
F: (08) 8346
thats right just untar somewhere, when you do the make install it should
create the directory /usr/local/freetype2 for you, it is a bit of a strange
one they also made it to use jam which is another make file system, I don't
know whats wrong with the old ./configure, make, make install at least it
Hmm, don't know much about raq3 but if it has GNU Make (ver 3.78.1 or newer)
it should compile with any Unix C compiler.
make setup CFG="--prefix=/usr/local/freetype2"
make
make install
Hope this helps, from memory it is a little fiddly sometimes hard to get GD
to see the freetype2 libs/includes
Two things come to mind when compiling under redhat 6.x
1) Delete all headers and libs relating to gd in /usr/lib and /usr/include
these are old and will cause conflicts.
2) Use --with-..-dir=..
Here is my successful configure command assuming you have successfully
installed freetype2 and gd wi
people don't click on it and point it at its self, it just
comes up blank anyway as it does not use the dreamwaever template.
Regards,
Joseph
-Original Message-
From: Joseph Blythe [mailto:[EMAIL PROTECTED]]
Sent: Friday, 23 November 2001 2:47 PM
To: [EMAIL PROTECTED]
Cc: [
list :) I
don't need the php in the printable version so if I can either eval it or
strip it out that would be nice.
Regards,
Joseph
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Friday, 23 November 2001 2:28 PM
To: Joseph Blythe; [EMAIL PROTECTED]
Subject: R
Hello,
Is there a way to strip only php code out of an html file? I know about
strip_tags but its going to be alot of work to make the allowable list, as
all I want to strip out is:
I tried like so:
eregi_replace ("", "", $string);
but it didn't find it suppose because of the escape characte
John,
Look in the original distribution files for php.ini-dist (or
php.ini-optimized) and copy it to c:\windows\php.ini
As far as I know php can run without a php.ini I beleive it has builtin
defaults.
Regards,
Joseph
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Se
G'day all,
I am putting together a small piece on php and was wondering if anyone knew
how to dynamically generate the php usage stats from:
http://www.netcraft.com/Survey/
Sort of want something like:
http://www.php.net/usage.php
Have looked at the source looks like this is manually updated?
Thanks,
I got to recompile php to do this (me too lazy), can't I do this with the
network/filesystem functions? will keep this in mind though.
Regards,
Joseph
-Original Message-
From: Jason G. [mailto:[EMAIL PROTECTED]]
Sent: Monday, 5 November 2001 4:14 PM
To: Joseph Blythe
Su
Hey all,
What is the best wat to post some variables to a cgi file and capture the
output so I may strip out all the html tags, I want to replace a forms
action with a php script which will mimic a forms post method, allowing me
to better format the response, as at the moment the cgi is written i
Um! could they be commented out still?
# AddType application/x-httpd-php .php4 .php3 .phtml .php
# AddType application/x-httpd-php-source .phps
Make sure you remove the hash signs whatever they called :)
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-p
Not sure if you have seen this, it has been around for a while:
http://www.phpbuilder.com/columns/tim2526.php3
Regards,
Joseph
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 27 October 2001 3:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Searchengine friendly
Sorry if this a little of topic but this sort of reminds me what happend to
me on Monday:
I arrived at work in a really good mood (for a Monday) to find everyone
screaming at each other, then at me :) what was being said is that the new
webserver I have been configuring with the latest versions o
Personally I would look at a templating system, there are lots of them
around. I have only used FastTemplates and Smarty I would reccommend the
later.
http://www.phpinsider.com/php/code/Smarty/
or have a look at for a few more:
http://phpclasses.upperdesign.com/browse.html/class/1
Hope this he
ok thanks, think I fall in that category too, but doing my best to change it
:)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, 26 October 2001 4:05 PM
To: Joseph Blythe
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] security
Has been around for quite a while
just stummbled across this great study by Shaun Clowes on php security, this
is just the kind of information I have been looking for, thought others
could also benefit from it.
http://www.securereality.com.au/studyinscarlet.txt
found during google search: PHP Security
cheers,
joseph
--
PHP
active states komodo (www.activestate.com) or ZendIDE 2 (www.zend.com) I
have used both and are really good as you can debug both local and remote
scripts both are commercial though, komodo is free for non-commercial use. I
believe you can beta test them both (ZendIDE2 requires you to be ZPal) :)
Hey All,
Was just trying the following and disable_functions is not working? Although
safe mode and open_basedir are! What is really strange that when phpinfo is
called the disable_functions value is phpinfo, can't seem to disable echo
either, I don't want to put these in php.ini as I still want
Thanks! What would people reccommend?
1) just using safe mode
2) using open_basedir and disable_functions
3) all of the above?
4) Just shutoff the server :)
If (2) or (3) what functions are most at risk? I understand that safe_mode
limits quite a few already.
Regards,
Joseph
-Original
Hello all,
I am just configuring up a new web server, and I want to be able to run php
only in the web servers main document root and in specified virtual hosts, I
have a fair understanding on how to go about this, but would really like
some feedback before I get to far into it. Basically the onl
ive done this b4 but havn't got the scripts here they at home (can't
remember the exact command line, but from memory was a little fiddly), if
you have any problems send a email to [EMAIL PROTECTED] over the weekend
and i will gladly try and dig up an example for you.
regards
joseph
-Origin
Hello all,
I just come across this rather strange error while trying to configure up
4.0.6 under redhat 6.0, it is strange because i have installed it many times
before with no problems, have deleted source tree and started again too!
here is the error:
ltconfig: you must specify a host type if
PROTECTED]]
Sent: Wednesday, 26 September 2001 2:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Zend Cache & cache_gui
I had that problem. Appeared to be some incompatibility with Zend Optimizer
and Zend Cache. Upgrade to Zend Optimizer 1.1.0 and everything worked.
Regards, John
"Jose
Hello all,
I just installed Zend LaunchPad (PHP 4.0.4pl1) with Zend Cache v1.1.0 all
seems ok when I run phpinfo()
This program makes use of the Zend scripting language engine:
Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies
with Zend Optimizer v1.0.0, Copyright (c) 1998-2000,
>When you find yourself writing HUGE functions, it may be better to split it
>into smaller, more clearly defined functions or classes and do it that
way...
I totally agree i tend to split my class functions into user (public) and
private (helper) functions which does tend to keep all the functio
parse the html (oh my god).
Regards
Joseph
-Original Message-
From: Donny Yap [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 September 2001 4:55 PM
To: Joseph Blythe
Subject: RE: [PHP] Grabbing dynamic pages
Yes,
This shouldn't be too hard to do; work out what type of data it is you
lto:[EMAIL PROTECTED]]
Sent: Friday, 7 September 2001 3:02 PM
To: Joseph Blythe; [EMAIL PROTECTED]
Subject: Re: [PHP] Grabbing dynamic pages
On Fri, 7 Sep 2001 14:44, Joseph Blythe wrote:
> Hey all,
>
> I got a bit of a problem I need to be able to grab info (which has been
> approve
u","r";);
Thanks again,
Joseph
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 September 2001 3:18 PM
To: Joseph Blythe
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Grabbing dynamic pages
This script worked fine for me here:
http://www.asx.com.au
Thanks all (c:
> Why don't they make this available via XML? Parsing HTML is painful.
Was my exact question to them (c:
> That just shows a chart. How are you supposed to parse anything out of
> that?
Hehe I provided the wrong url should something like:
http://www.asx.com.au/scripts/nd_ISAP
TimeFrame=D&asxCode=ASX
I tried a quick test using the filesystem functions with no success, I was
sort of hoping for a 'Yes' / 'No" answer maybe if 'Yes' just a quick
explanation.
Any help would be much much appreciated.
Regards,
Joseph Blythe
Web Developmen
actually says: "pwd - print name of current/working directory" in the man
page (c:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 15 August 2001 4:18 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: `pwd` - what does this mean?
pass working directo
how about typing "man pwd" on a unix box?
-Original Message-
From: Scott Mebberson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 15 August 2001 4:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] `pwd` - what does this mean?
Hi Guys,
I actually know what it means. Well, I think it means the cur
sorry should be http://activestate.com
-Original Message-
From: Joseph Blythe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 25 July 2001 4:25 PM
To: Chip
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] WSIWYG Editor using PHP?
You might want to look at Komodo (http://www.activestate.com) I just
You might want to look at Komodo (http://www.activestate.com) I just
downloaded the windblows version (there is also Linux version 25mb though)
which is a fairly basic text editor with php syntax highlighting (and a few
other neat fetures) with a built in debugger which can apparently debug
script
Hey,
Is anyone on this list using ActiveState's Komodo (http;//activestate.com)
on a windows box to remotely debug php scripts running on a linux server? Is
this possible? I have read the documents and don't get it at all! Although
local debugging under windows works just fine.
If you are using
What OS you running Linux? maybe look at http://php.weblogs.com/editors
-Original Message-
From: chip [mailto:chip]On Behalf Of Chip
Sent: Wednesday, 25 July 2001 12:57 PM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] WSIWYG Editor using PHP?
Joseph Blythe wrote:
> Try PHP Coder Pro! h
Try PHP Coder Pro! http://www.phpide.de
Regards,
Joseph.
-Original Message-
From: Bob Clingan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 25 July 2001 9:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] WSIWYG Editor using PHP?
Does anyone know of any WSIWYG editors that you can plug into a
Hey,
Was just wondering if it was better practice to unregister session variables
before writing new values to them or if it was fine to just overwrite their
values?
Regards,
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Todd Cary wrote:
> I need to create a document that confirms to certain formatting criteria
> and then be able to give the surfer the ability to download the
> completed document preferrable, pdf. In other words, the document is a
> "legal" document and has some dynamic fields. Can this be done
Richard Quadling wrote:
> I assume there is a variable somewhere?
>
> Ideas/suggestions please.
I think its the predefined apache variable $DOCUMENT_ROOT (look under
predefined variables in manual), or try $SCRIPT_FILENAME, you may then
parse the part you need.
I use Linux so I am only guess
Johnson, Kirk wrote:
> I say that a value of "1" means garbage collection is launched on 1 out of
> every 100 page requests, i.e., it truly is a percent.
This has been discussed before try searching the list archives, although
I believe you are correct in your assumption.
Regards,
Joseph
Miles Thompson wrote:
> My apologies to Joseph, and to the group at large.
>
> I didn't read his question carefully, and in retrospect, gave him a
> pretty asinine answer.
>
> Braaay! - Miles Thompson
Thanks all this is a great list, apology accepted :-)
Joseph
--
PHP General Mailing L
Jason Lotito wrote:
> Joseph,
>
> I was actually about to type back in response explaining to everyone
> that you asked WHAT was use to make the .chm files. You must forgive my
> colleagues, they sometimes forget to actually read the email, rather
> than just scan the email for common key word
Matt McClanahan wrote:
> On Wed, May 23, 2001 at 10:37:06AM +0930, Joseph Blythe wrote:
>
>> Hey all,
>>
>> Just was wondering if anyone knew what was used to make the php manuals
>> in the windows help format (.chm), I really like them :-)
>
>
> T
Miles Thompson wrote:
> Why? We have the manuals in two truly portable formats, HTML and PDF,
> not to mention on-line, annotated HTML.
> Miles Thompson
Because I already have enough browser windows open and I find the
windows help format a lot better as it is easily searchable and also has
Hey all,
Just was wondering if anyone knew what was used to make the php manuals
in the windows help format (.chm), I really like them :-)
Regards,
Joseph.
--
BoldFX / Binary Logic
The Logical Choice
750 Port Road Beverley 5009
Ph: (08) 8244 1800 Fax: (08) 8244 1811
mailto: [EMAIL PROTECTED]
Troy Moreland wrote:
> If I can't decrypt it, then I can't pass that password for the
> user. How do I keep passing the password then w/o having to write it to the
> session. Is that the right way to do it??
I don't know if this is the right way but what I would do is have a
login page that
Jeff Oien wrote:
>> Jeff wrote:
>>
>>> I am trying to find the maximum security for storing credit card
>>> numbers.
>>>
>>> >From reading the archives someone mentioned using a PGP based encryption
>>> to encrypt the credit card number and store it into the database, and
>>> have the company t
MaD dUCK wrote:
> also sprach Zak Greant (on Thu, 17 May 2001 09:35:18PM -0600):
>
>> Or just use a simple chain of if statements :)
>
>
> yeah, but that's so O(n) !
> i can do in O(lg n)
> or, given n CREW processors, in O(1) time!
>
> yes, i have just finished my computational theory and c
Jeff wrote:
> I am trying to find the maximum security for storing credit card
> numbers.
>
> >From reading the archives someone mentioned using a PGP based encryption
> to encrypt the credit card number and store it into the database, and
> have the company that is processing the order have the
hello,
How do I find if a number is in a range example:
0200-0299
1000-2263
2264-2499
Lets say I choose 203 how would find which number range it was in?
I was sort of thinking of using arrays of all the number ranges and
using the in_array function to find which range the numbers are in, but
Joseph Blythe wrote:
> For an example of the speed of this in a semi-production enviroment
> checkout:
>
> http://www.secure.binarylogic.com.au/~chained
>
> Let me know your thoughts etc...
>
> Oh and also check out the unknown error on line 12 hmm suspect...
>
For an example of the speed of this in a semi-production enviroment
checkout:
http://www.secure.binarylogic.com.au/~chained
Let me know your thoughts etc...
Oh and also check out the unknown error on line 12 hmm suspect...
Thanks,
Joseph
--
PHP General Mailing List (http://www.php.net/
Hello,
Has anyone used/is using the most excellent chainedSelectors class (by
Leon Atkinson) available as a tutorial from zend.com ?
I just got this working for use with the states of australia and its
postcodes (around 3395 unique pcodes), but have found the result totally
unusable due to th
Joseph Blythe wrote:
> Ok here is what I am trying to acheive, basically turning a php array
> into a javascript array, note this is untested and most likley won't
> work :-)
>
> Where $array_name I need the same name as the functions first and only
> argument $array
CC Zona wrote:
> Can you give an example of code in which you'd be doing this?
Ok here is what I am trying to acheive, basically turning a php array
into a javascript array, note this is untested and most likley won't
work :-)
Where $array_name I need the same name as the functions first and
Hey ppl,
How does one find the name of a variable, not what the variable contains?
This is not the same as variable variables.
I know this seems a bit pointless but I have come across a situation
where I really need to be able to do this.
Hope someone can help,
Thanks,
Joseph
--
PHP
[EMAIL PROTECTED] wrote:
> I was just looking at Hallmark Channels' website, and noticed them to be using PHP,
>wow, PHP has rocketed to something, eh.
Yes, when I first started using php nearly 2 years ago not many people
even knew what it was (most thought it was some form of a drug). Now
d
Hey all,
I have a signup form that a drop down list of country states, what I
want to be able to do is when a user clicks his/her state the page will
refresh and fill the below postcodes in with the approprite codes for
the particular state, once a user has selected a postcode the page will
r
Hello,
I seem to be having some difficulty understanding why the following function skips
every 5th array item,
basically the following function takes two parameters category and an array, when
placed inside a table it will generate
links based on the array items splitting the table into colum
Mukul Sabharwal wrote:
> Hi,
>
> I might have missed a follow up or your original
> message, but have you tried socket_set_blocking()
Mukul,
Yes, socket_set_blocking does not work with the new socket functions,
it is for the network functions, one must use set_nonblock() which to
the best o
Hey all,
Just looked through the changelog for 4.0.5 and was suprised to see that
the socket functions had not been fixed,
(set_nonblock does not seem to work under linux), I have retried my
scripts under the new version but nothing seems to have changed,
For the time being I am going back to
Mark Maggelet wrote:
> On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe
> ([EMAIL PROTECTED]) wrote:
>
>> Chris Fry wrote:
>>
>>> Have a look at php.ini in /usr/local/lib
>>>
>>> It looks like your prepend file is browser.php - just comm
Chris Fry wrote:
> Have a look at php.ini in /usr/local/lib
>
> It looks like your prepend file is browser.php - just comment that line out.
Those lines in the php.ini are blank
; automatically add files before or after any PHP document
auto_prepend_file =
auto_append_file=
Hm
Hey all,
I keep getting this error message on a couple of pages from a site I am
currently working on, the strange thing about this is there are no
included files in 'browser.php' and I am certainly not including
'browser.php' anywhere.
Warning: Failed opening '/home/binary/public_html/brows
Rasmus Lerdorf wrote:
> It is a normal global variable. Like all other global variables you need
> to declare the fact that you want the global variable inside a function.
> Simply put: global $HTTP_POST_VARS; at the top of your function and it
> will work just fine.
>
> Read the section on var
Hey,
Why doesn't HTTP_POST_VARS work inside functions?
---somefile.php - forms action ---
function foo() {
reset($HTTP_POST_VARS);
while( list($key, $val) = each($HTTP_POST_VARS) ) {
if ( $key != "Submit" xor $key != "x" xor $key != "y" ) {
$inpu
Dean Hall wrote
> Instead of 'array_push', do this:
>
> $input[$key] = $val;
>
Hey thanks dean that did the trick, I was trying:
$array[] = $key . "=>" . $val
which of course doesn't work hehe.
Regards
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
Peter Houchin wrote:
> what about if you assign the key to = the id (if in a data base)?
>
> maybe like
>
> while (list ($key, $val) = each ($id)) {
> if ( $key != "Submit" ) {
>
>>array_push($input, $val);
>>}
>>
>> }
>
I am not using a database for this part as I am just collect
Peter Houchin wrote:
> maybe tring this ...
> $input = array();
>
> reset ($HTTP_POST_VARS);
>
> while ( list($key, $val) = each($HTTP_POST_VARS) ) {
>if ( $key != "Submit" ) {
>array_push($input, $val);
>}
>
> }
Hmm, as far as I can see this will just reset the internal pointe
Hey all,
I was just trying to figure out something that should be quite simple
but seems to be eluding me,
consider the following:
$input = array();
while ( list($key, $val) = each($HTTP_POST_VARS) ) {
if ( $key != "Submit" ) {
array_push($input, $val);
}
}
Ok fine, I now have an a
Morten Winkler Jørgensen wrote:
>
>You will have to declare
>
>
> myArray = new Array();
>
> myArray[0] = "a string";
> myArray[1] = 11;
> myArray[2] = new Array();
>
>
>since JavaScript 1.2 has arrays implemented.
>
Thanks for that, but my problem be
G'day,
I was wondering if anyone knows how to get the following to work:
--snip from head--
//-->
function validateForm(theForm) {
if ( theForm.input[name].value == "" ) {
alert("You must type a value for NAME.");
theForm.input[name].focus();
return false;
}
}