test
try
private function()
{
}
-Original Message-
From: electroteque [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 12 January 2003 6:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php5 cvs
hmm has the public and private function accessor changed ? i have been
building my classes with test() and
this was a functional email
- Original Message -
From: "Karl James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 12:24 AM
Subject: [PHP] test
> test
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sunday 12 January 2003 12:56, Ben Cheng wrote:
> When I run mkdir("path to new dir", 0777); I get a directory that has
> owner and group set to "nobody" and drwxr-xr-x permission. How do I
> get the permission to be set to drwxrwxrwx?
umask()
--
Jason Wong -> Gremlins Associates -> www.greml
On Sunday 12 January 2003 12:55, Rick Emery wrote:
> in your HTML file:
>
>
>
> in PHP script:
> copy($HTTP_POST_FILES['picfile']['tmp_name'], "../images/newfilename.gif");
Better still check out the example in the manual.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source So
On Sunday 12 January 2003 10:10, Stephen wrote:
> There's already a folder named packs but my problem was not having the /
> before it. One more question. How can I dynamically get the path to the
> current folder? Like your at http://www.bob.com/joe/index.php and you want
> to get the http://www.b
Heya all,
I'm trying to highlight search keywords in a string, everything work expect
when this keyword is inside a tag like this :
keyword (php) :
php
will be highlighted to :
php">php
php.gif"
border=0 alt="php.net">
I have tryed to separate text from html, then highlight it then join
ht
Fatal error caught: Call to private method class_test::echo_test() from
context '' in /www/servers/electroteque/web/galleries/classtest.php on line
18
class Class_Test {
function Class_Test() {
}
private function echo_test() {
echo "test";
}
Gerald Timothy Quimpo wrote:
On Sunday 12 January 2003 07:08 am, Mat Harris wrote:
Patti\ Smith/Horses\ \[1975\]/01-Gloria.mp3
but fopen will still refuse saying file not found. I have tried escaped
and unescaped amnd yes, I am very sure the file is there.
How can I get fopen to accept a path
Not sure what you mean by 'changed', but the way to denote private
functions is by adding 'private' to the method declaration, and not by
prefixing them with _.
You can do it using:
class bar {
private function foo()
{
...
}
...
};
Zeev
At 09:43
I only want to keep html code of a page.
I want to remove php tags.
Some tell that strip_tags is not adapted.
sample of what i want to do:
na
->
na
php tags can be :
or
or /i
Merci.
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
its cool , i cant remember where i saw the reference , but it was claiming
to prefix the functions with underscores to denote private functions in php
4 for the rollover of php5, it was a pretty legit resource i cant remember
where though have too many bookmarks, oh well at least i know now , i th
This is what I tried:
if (is_uploaded_file($HTTP_POST_FILES['image1']['image1']) {
move_uploaded_file($HTTP_POST_FILES['image1']['image1'],
"$DOCUMENT_ROOT/images/$file");
}
and also this:
if (is_uploaded_file($_FILES['image1']['image1']) {
move_uploaded_file($_FILES['image1']['
php-general Digest 12 Jan 2003 12:39:48 - Issue 1818
Topics (messages 131287 through 131328):
Simple Form Processing
131287 by: Kyle Babich
131299 by: Justin French
131328 by: Kyle Babich
Some help on PHP & HTML please
131288 by: Denis L. Menezes
1312
>- Original Message -
>From: "David D" <[EMAIL PROTECTED]>
>Sent: Monday, January 06, 2003 7:47 AM
>Subject: [PHP] strip php tags from code ?
> I only want to keep html code of a page.
> I want to remove php tags.
It sound like you want the parser output of the page. You can use PHPs
ou
So you want to remove only the unparsed/raw php script blocks.
Why... are you displaying PHP without parsing??
If this is the case you can write a couple of very simple preg_replace
with a call
back and all is done.
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
You will need to break apart the entire document then process each area
inside of the
tags and to be very careful for nested tags.
The simplest way around I have found to do with is to add to tags that
have been processed
with attributes that are ignored by the browser renderer eg... PHP
as you ca
Did you read that link at all?
adapting the manual's code to suit your form names and directory
preferences:
if (is_uploaded_file($_FILES['image1']['tmp_name'])) {
copy($_FILES['image1']['tmp_name'],
"$DOCUMENT_ROOT/images/$_FILES['image1']['name']");
} else {
echo "Couldn't do it
is there a php editor which supports the tree-view for the code itself. I
believe tools like visual basic uses this option. You can easily collapse
pieces of code, for example a function or a class. Is there any place where
i can download a tool like this?
And if there's not, what is your favourit
On Sunday 12 January 2003 20:39, Kyle Babich wrote:
> This is what I tried:
>
> if (is_uploaded_file($HTTP_POST_FILES['image1']['image1']) {
> move_uploaded_file($HTTP_POST_FILES['image1']['image1'],
> "$DOCUMENT_ROOT/images/$file"); }
>
> and also this:
>
> if (is_uploaded_file($_FILES['imag
On Sunday 12 January 2003 21:51, Hannes Smit wrote:
> is there a php editor which supports the tree-view for the code itself. I
> believe tools like visual basic uses this option. You can easily collapse
> pieces of code, for example a function or a class. Is there any place where
> i can download
I think Scite (http://www.scintilla.org/SciTE.html) can do it.
rush
--
http://www.templatetamer.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have been trying to solve the problem of using session variables, but I
have not had any luck. What I want to do is simple, I want to set my userid
and password in a login screen and use it later (in another php form) to log
into the database.
In my login PHP file I have the following:
if
How can i get the file information of a uploaded jpeg-file.
i need the heigt and width in pixel and the resolution.
Thanks Harry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I you are into bit crunching, check out
http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/JPEG.txt
if not, somehow view the jpeg in ie, right click on the picture, and select
properties, look under dimensions.
Warren Vail
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAI
Hi,
Monday, January 13, 2003, 1:04:49 AM, you wrote:
WG> Hi,
WG> I have been trying to solve the problem of using session variables, but I
WG> have not had any luck. What I want to do is simple, I want to set my userid
WG> and password in a login screen and use it later (in another php form) to
Hi,
Monday, January 13, 2003, 2:10:57 AM, you wrote:
hmgd> How can i get the file information of a uploaded jpeg-file.
hmgd> i need the heigt and width in pixel and the resolution.
hmgd> Thanks Harry
Use getimagesize()
$info = getimagesize('image.jpg');
echo 'Width = '.$info[0].' Hieght = '.$inf
Phorum 3.4 has been released. This is a biggest update in over a year. For
those not familiar with Phorum, it was the first PHP/MySQL based message
board ever made. It focuses on simplicity for those that want to add a
message board to their existing site without having to comprimise their
sites
I want to count characters without space "character".
$char="hello world"
so the result should be 10.
Can anybody help me?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 12 Jan 2003 [EMAIL PROTECTED] wrote:
> I want to count characters without space "character".
> $char="hello world"
> so the result should be 10.
> Can anybody help me?
$char="hello world";
$temp=str_replace(" ", "", $char);
echo strlen($temp);
should give you 10.
RDB
>
>
>
--
Try the following code, please note you may want to trim() the string as
well if it is coming from a user.
Jason
On Sun, 2003-01-12 at 10:32, [EMAIL PROTECTED] wrote:
> I want to count characters without space "character".
> $char="hello world"
> so the result should be 10.
> Can anybody help
Hi all,
I'm looking for a *free*, pre-built CMS with PHP/MySQL.
I've looked at ezpublish but I'm having trouble installing.
Criteria:
* Must have SE friendly urls (example.com/4/34/)
* Must allow different 'sections' for articles
* Must be easy to fix templates for the html/css
Anyone
Tom,
I do have a session_start() in both files, but it does not seem to help.
- Larry
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 12, 2003 11:36 AM
To: Willie G
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] SESSION variable to pass login ID
Hi,
Mond
This statement doesnt look right to me.
if(isset($_POST['userid']) && isset($_POST['pword'])){
$_SESSION['user'] = $_POST['userid'];
$_SESSION['password'] = $_POST['pword'];
}
the if should be:
if ((statement)&&(statement))
{
}
so:
if ((isset($_POST['userid'])) && (isset($_POST['pword'])))
{
Hi,
I just found my mistake. I added some debug logic, and found that the
$_POST logic was in the calling form, not the called form. As soon as I
moved the "if(isset($_POST['userid']) && isset($_POST['pword'])){" to the
second form, everything started to work. Thanks to everyone who responded.
Well, start debugging your code then. Do a print_r() of $_POST and
$_SESSION at different points in your files. Maybe you're losing your
session on a certain page or it's getting reset.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www
test
IncrediMail - Email has finally evolved - Click Here
test
IncrediMail - Email has finally evolved - Click Here
I'm looking for a *free*, pre-built CMS with PHP/MySQL.
I've looked at ezpublish but I'm having trouble installing.
Criteria:
* Must have SE friendly urls (example.com/4/34/)
* Must allow different 'sections' for articles
* Must be easy to fix templates for the html/css
I happen to kno
test
IncrediMail - Email has finally evolved - Click Here
TEST
IncrediMail - Email has finally evolved - Click Here
To mail listing;
sorry about that, i didnt think about all the variables involved
thanks for your warning and understanding.
wont happen again!!!
thanks
Karl
IncrediMail - Email has finally evolved - Click Here
eZPublish is probably your best bet.
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 12, 2003 3:31 PM
To: php-general
Subject: [PHP] Pre-built CMS - Anyone recommend one?
Hi all,
I'm looking for a *free*, pre-built CMS with PHP/MySQL.
I've looked
I got the error-message:
Warning: fopen("", "r") - Inappropriate ioctl for device
what means ioctl?
Harry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"ioctl" is an IO controls structure.
Just look at the fopen("","r"). Do you notice anything missing?
- Original Message -
From: <[EMAIL PROTECTED]>
To: <>
Sent: Sunday, January 12, 2003 3:59 PM
Subject: [PHP] What means "ioctl"
I got the error-message:
Warning: fopen("", "r") - Inappr
What am i doing wrong with the script below? What i am trying to do is check
whether the "newtest" field has a 0 or a 1 value then redirect the user to
a different page based on the answer.
I am then trying to add 2 to the value in the "points" field of my database
and then to set the "newtest"
Hi Steven,
On Sunday 12 January 2003 23:58, Steven M wrote:
> include 'db.php';
>
> $result = mysql_query("SELECT newtest FROM users WHERE 14 = '$0'");
> list($number) = mysql_fetch_row($result);
Here you are closing your conenction to the MySQL-Server:
> mysql_close();
> if($number==0)
But her
I am a fan of eclipse (www.eclipse.org) I use the java editor for editing
php files (its close enough for my needs); for those who want php specific
functionality then this plugin looks quite nice:
http://phpeclipse.sourceforge.net/ . The CVS functionality included in
eclipse is what makes the pac
You have not specified a file name to open with fopen().
//will not work
$fp = fopen("", "r");
//will work
$fp = fopen("file.txt", "r");
"Harald Mohring" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I got the error-message:
> Warning: fopen("", "r") - Inapp
Ok, I got it to make a directory as a absolute path but I'm getting a
"Permission Denied" error again. I'm running IIS so I can't CHMOD and all
the permission options are checked in the options box.
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Hi Johannes
Thanks for the help. I have taken out the mysql_close() and it looks like
it is submitting ok (ie no error messages) but it is not updating the
database when i check it. Any ideas?
Thanks.
Steven
"Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMA
Did you use the umask(0) prior to the mkdir() in your script??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 13 January 2003 9:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP
Hmm from your code below:
FROM users WHERE 14 = '$0'"
What is "14" it isn't a field I would hope!!
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Steven M [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 13 January 2003 9:28 AM
I'm no OOP programmer but maybe extend your class to
include methods for each situation.
something like this:
function countSingle($cid)
function countMulti($cidArray)
function countAll()
HTH,
olinux
--- Victor <[EMAIL PROTECTED]> wrote:
> Hello. I have this question. When I program, I try
I have find this code very helpfull :
- Original Message -
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "'Hatem Ben'" <[EMAIL PROTECTED]>; "'PHP List'"
<[EMAIL PROTECTED]>
Sent: Sunday, January 12, 2003 2:28 PM
Subject: RE: [PHP] highlight keywords issue
> You will need to b
I thought i read somewhere that you could refer to the field by number. Was
i wrong? It doesn't seem to make a difference anyway. It still doesn't
work. Here's the code with words instead of numbers. I'd be grateful if
you could let me know if there are any obvious errors.
Best wishes.
Steven
isn't it possible to get image informations from the local harddrive?
$fotoinfo=getimagesize("C:\\Eigene Dateien\\Temp\\Foto.jpg");
if i use that code, the errormessage is always "getimagesize: unable to open
file for reading"
got anybody a solution?
--
PHP General Mailing List (http://www.p
Hello,
Im building a object oriented webapplication with PHP. I know PHP doesnt
fully support OOP.
I made a class called Database. This class contains several variables. One
of these vars is the username and the password for the database. When i
create a Database object I want to register it in th
I have find this very helpfull :
preg_match_all("|<[^>]+>(.*)]+>|", $haystack, $out, PREG_SET_ORDER);
It's almost done, only if i can restrict the regexp to and tags
only ... :(
I need to look for "Mastering Regular Expressions" book tomorrow :D it's
really boring without good docs
- Orig
You can't use numbers as vars:
$1 etc are illegal syntax for PHP
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Steven M [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 13 January 2003 10:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re
"ioctl performs a variety of control functions on devices and STREAMS."
It stands for I/O Control.
--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.
"Harald Mohring" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> I got
It is viewable from the script only not the outside world eg the visitor
to the website
unless you output it.
Also you are better offer having your vars set by methods from a
constructor then you can
do what you just showed below.
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAI
Why \\ between directories? Isnt it just a single?
"Harald Mohring" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> isn't it possible to get image informations from the local harddrive?
>
> $fotoinfo=getimagesize("C:\\Eigene Dateien\\Temp\\Foto.jpg");
>
> if i u
No the documentaton you are talking about, was that prior to ZE2 people were
using underscores to denote private functions/variables. With ZE2, they
wouldn't have to.
-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 12 January 2003 11:23 PM
To: [EMAIL PROTECTED]
Oops...many thanks for that. Sorry, i am extremely new to this.
Best wishes.
Steven M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
olinux wrote:
I'm no OOP programmer but maybe extend your class to
include methods for each situation.
something like this:
function countSingle($cid)
function countMulti($cidArray)
function countAll()
HTH,
olinux
Hmm, yes, that's an interesting idea. Except perhaps include the first
arg
php-general Digest 13 Jan 2003 01:21:46 - Issue 1819
Topics (messages 131329 through 131381):
Re: strip php tags from code ?
131329 by: Matt
131330 by: Timothy Hitchens \(HiTCHO\)
Re: highlight keywords issue
131331 by: Timothy Hitchens \(HiTCHO\)
131370 by:
Hello everybody!
Can anybody advice me the best free web-hosting with PHP?
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
It seems true that php's imap_utf7_en/decode does not compatible with
microsoft outlook express.
We create imap folder(include chinese chars) using IMP, all it ok in IMP
problem, but when use OE
to connect to imap server, the folder can't be shown correctly. And vice
versa.
So my problem
Hi all,
I have the problem with this peace of code.
This code has to include file containing some Javascript functions.
http://mysite/";);
$javascript=PATH."inc/javascript_functions.js";
include ($javascript);
?>
When I run this I got message:
"Warning: php_network_getaddresses: getaddrinfo faile
Include will evaluate the file as PHP code, that most likely is not what
you want it to do. Take a look at file_get_contents(), manual page
available at http://www.php.net/manual/en/function.file-get-contents.
Jason
phpSun, 2003-01-12 at 19:36, Stanislav Skrypnik wrote:
> Hi all,
> I have the pr
Yes, I just added it but same error:
Warning: mkdir(c:\inetpub\wwwroot\phpiw\packs\bob) [function.mkdir]:
Permission denied in c:\inetpub\wwwroot\phpiw\classes\class.cp.php on line
28
Here's the part where I try and make the folder:
function do_dir($package) {
umask(0);
if(mkdir($this-
I'm assuming you are using IIS.
If your harddrive is formatted using NTFS, you are going to have to add a
new entry to the ACL list for the directory to let the IUSR_
account access the directory.
There are plenty of readmes/articles on managing NTFS permissions. I don't
have time to go into the
right ok , but obviously it wouldnt have an effect anyway prior to php5 thanks
anyway.
>= Original Message From "Sean Malloy" <[EMAIL PROTECTED]> =
>No the documentaton you are talking about, was that prior to ZE2 people were
>using underscores to denote private functions/variables. With Z
Who owns the htdocs root (I know it is Windows) when you right click you
should should see sharing/security.
Do you if not what OS Ver are you using?
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECT
I'm looking for everyone's favorite email syntax validation routine. Code
that takes an email address and does regex on it to determine if it's
formatted correctly.
I know there are some on phpclasses.org that actually check the mx record
and server of the domain, but I'm just looking for a good,
Hello,
On 01/13/2003 03:21 AM, Peter Janett wrote:
I'm looking for everyone's favorite email syntax validation routine. Code
that takes an email address and does regex on it to determine if it's
formatted correctly.
I know there are some on phpclasses.org that actually check the mx record
and s
I use, and love the simplicity of, validEmailFormat()... it's a
near-as-possible port of someone's Perl script which has become close to the
definitive script/function for Perl developers.
http://www.killersoft.com/downloads/pafiledb.php?action=category&id=1
Cheers,
Justin
on 13/01/03 4:21 PM
Just checked the URL -- there are now 2 versions... I'm using 1.0
Justin
on 13/01/03 4:38 PM, Justin French ([EMAIL PROTECTED]) wrote:
> I use, and love the simplicity of, validEmailFormat()... it's a
> near-as-possible port of someone's Perl script which has become close to the
> definitive sc
On Monday 13 January 2003 05:07, Chris Mason wrote:
> eZPublish is probably your best bet.
Have a look at Typo3. More difficult than average to install and use but
extremely powerful and flexible.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
--
G'day:
I am using a 'wrapper' class to create all the boilerplate HTML on a website,
plus do stuff like authentication and print menus etc according to properties
set dynamically within the class.
The actual content of each page is generated by seperate 'content' classes.
These classes ar
How I can resolve this ?
This is my configuration of php (phpinfo)
Somebody can help me ? This is very important
GD
GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support
I would suggest that in your script it is using a font for a GD
operation
and you need to make sure that PHP know's how to find that font.
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Breno Cardoso Perucchi [mailto:[EMAIL PROTE
One of the parameters you specified for (and I'm guessing here)
imagettftext was a path to a font file. PHP needs to know the full path
to this file. I'm betting it doesn't exist, as it didn't on mine until
I copied it there. I realized from others that you can use windows font
files if you
Hi,
I've started developing a shopping cart and was just testing and found
that I get strange results when Zone Alarm's Cookie Control is set to
anything other than "Off".
If anything, I would expect the shopping cart to forget its contents
between pages but instead I am getting weird results.
85 matches
Mail list logo