Hello all,
My apologies if this is has been answered before or if this is considered
beginner material...but I am trying to make something of a linked list using
PHP. However, with the absence of pointers, I'm wondering if references
will do the trick. For example:
You could also try using a regular expression to get out whatever you need
(if it's a string). Something like the following:
preg_match_all("/[abc|def|ghi]/",$type, $matches);
- Steve
""DRN"" <[EMAIL PROTECTED]> wrote in message
9dkhdr$nog$[EMAIL PROTECTED]">news:9dkhdr$nog$[EMAIL PROTECTED]..
I want to do the following:
1/ open a file via a web page
A/ Parse out the function names in a class
B/ Parse out some strings between two 'template block' like markers
C/ return the names/strings as pull down menus
2/ run a web application to modify the calling sequence o
His series of articles ("top php programming mistakes") is great, and
I've heard good things about his "PHP Cookbook" but Hughes is way off
here. There is some additional overhead with OO code but there is *very*
little difference in speed (less than 5% in synthetic benchmarks, and
much less in m
Todd Cary wrote:
> In my Index.html, what do I write so that the Surfer goes to my
> Start.Php?
It should work to have this after your opening HTML tag in index.html:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
On Sat, 12 May 2001, Mitch Vincent wrote:
We too have been developing using an OO approach for awhile - definitely
in PHP4. One of the other guys here was more OO than I was in PHP3, but
we've standardized more on our coding style in PHP4.
I would not doubt that there's some overhead with an
http://www.php.net/manual/en/function.parse-url.php
On Sat, 12 May 2001, John Vanderbeck wrote:
> Hey all,
>
> I am quite horrible when it comes to regexps, but I have a string that
> contains a complete url, like:
> http://www.domain.com/this/is/it.html
>
> And I need to strip everything but
In my Index.html, what do I write so that the Surfer goes to my
Start.Php?
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list ad
Here's an appropriate example, one of a few ways you may do it :
$state = 'Wa';
$state = trim(strtoupper($state));
$states = array('WA' => 'Washington', 'OR' => 'Oregon', 'ID' => 'Idaho');
if (in_array($state, array_keys($states))) {
echo "you chose {$states[$state]}, a state in
class_exists()
--zak
- Original Message -
From: "rodrigo" <[EMAIL PROTECTED]>
To: "php php" <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 7:56 PM
Subject: [PHP] Making sure a class is declared only once
> Someone on the list mentioned a way to check if a classed is already
> declar
Someone on the list mentioned a way to check if a classed is already
declared so it will only declare it once. I can't find it in the
archives so if someone knows how to accomplish this I would appreciate
it if you send me the code.
Thanks in advance.
--
Ivan
I have installed CPDF lib instead. Installation was a breeze. I didn't want
to break my RAQ4 with too many config options when it's running live sites.
PDFLib and CPDF carry almost the same type of licenses.
- Original Message -
From: "Steve Werby" <[EMAIL PROTECTED]>
To: "Herman Tolentin
I am new to PHP having converted from ASP (don't beat me up, it just took me
a while to see the light)
MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP? It
gives you the ability to determain the root of the web site and use it as a
reference.
MY PROBLEM: I have been able t
Thanks for the help, but the example given does nothing at all.
It has me stumped.
I got my first example working up to the point where you enter the password
but it is not storing the passwords.
Bummer.
"barce" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
"Overusing OO features: PHP is not an object oriented language, while it
does provide object oriented features, you should always be conscious of the
fact that using PHP's object oriented features will significantly slow down
your code."
- a quote taken from Sterling Hughes' "top 21 PHP programmi
How about a case-swtich?
http://www.php.net/manual/en/control-structures.switch.php
Ethan Schroeder
- Original Message -
From: "DRN" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 4:40 PM
Subject: [PHP] check if a variable is in a number of states.
> Hi, I woul
Hi, I would like to check whether a variable, $type, is equal to a
number of different possible states. I know I could use
if ( $type == "abc" || $type == "bcd") { $a = b }
but this would get a bit clumsy if I had to check whether it is say
one of 20 different things.
What I was wondering is, is
Hi guys!! mine is PHPEd.. =)
Jithy
-Original Message-
From: Ryan W. Zajicek [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 13, 2001 3:58 AM
To: Altunergil, Oktay; [EMAIL PROTECTED]; PHP
Subject: RE: [PHP] PHP Editor
My personal favorite is Ultra Edit (www.ultraedit.com).
Thank You
Ry
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("John Vanderbeck") wrote:
> I am quite horrible when it comes to regexps, but I have a string that
> contains a complete url, like:
> http://www.domain.com/this/is/it.html
>
> And I need to strip everything but the domain so that I am left with
Hey all,
I am quite horrible when it comes to regexps, but I have a string that
contains a complete url, like:
http://www.domain.com/this/is/it.html
And I need to strip everything but the domain so that I am left with:
www.domain.com
Can anyone help me out?
- John Vanderbeck
- Admin, GameDesig
So sprach Siim Einfeldt aka Itpunk am Sat, May 12, 2001 at 07:19:59PM +0200:
>
> Hi,
>
> When uploading an .mp3 file, is it possible to check its bit rate with
> php?
>
> If you know anything about it, please send a mail to my private email as
> well.
Hm, you might try executing mp3info (if it
You may also find this interesting :
http://php.net/manual/en/ref.mnogo.php
>From php changelog 4.0.5 :
Added mnoGoSearch extension - http://search.mnogo.ru. (Sergey K)
regards,
philip
On Sat, 12 May 2001, Ethan Schroeder wrote:
> Wow, thanks for the heads up =)
>
> Ethan Schroeder
Wow, thanks for the heads up =)
Ethan Schroeder
- Original Message -
From: "Ryan W. Zajicek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 12:50 PM
Subject: RE: [PHP] Site search engine suggestion.
> Just a side not here... :)
>
> udmSearch is now mnoGoSearch
The other poster was correct in their reply, but a more fitting reply is
that $PHP_SELF is NOT a "constant". A constant would be something like...
define(PHP_SELF,"cow");
All PHP code would then show PHP_SELF as "cow".
cw wrote:
> I'm trying to reference $PHP_SELF and $REMOTE_USER inside a c
Thanks for your reply.
Unfortunately, the problem is not in getting the code to execute - I know it
is for two reasons:
1) the setcookie(...) is being triggered because I have cookie warnings
turned on in the browser, and it warns me that a new cookie is being
received and it shows me the e
php-general Digest 12 May 2001 19:55:41 - Issue 682
Topics (messages 52550 through 52587):
Re: Simulate the Enter key in Unix with PHP
52550 by: barce
uploading problems
52551 by: Theo Richel
52562 by: SED
mysql - SUBSTRING
52552 by: andreas \(.work\)
My personal favorite is Ultra Edit (www.ultraedit.com).
Thank You
Ryan
mailto:[EMAIL PROTECTED]
-Original Message-
From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 1:42 PM
To: '[EMAIL PROTECTED]'; PHP
Subject: RE: [PHP] PHP Editor
There's no extended rep
Just a side not here... :)
udmSearch is now mnoGoSearch (http://search.mnogo.ru/)
Thank You
Ryan
mailto:[EMAIL PROTECTED]
-Original Message-
From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 2:25 PM
To: elias
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Site se
global $PHP_SELF;
global $REMOTE_USER;
- Original Message -
From: "cw" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 11:28 AM
Subject: [PHP] referencing a constant inside an object
> I'm trying to reference $PHP_SELF and $REMOTE_USER inside a cl
There's no extended replace in textpad.. More specifically you can't do
extended replace if the files are not all Open.
On the other hand there's no , parantheses, bracket maching in HomeSite.
I still use HomeSite though :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROT
On 12 May 2001 00:04:26 -0700 impersonator of [EMAIL PROTECTED]
("elias") planted &I saw in php.general:
>Hello guys,>I need that badly!
Hello.
If you wouldn't mind disclosing your site address, and the server will
allow it, I may try my php-indexer-by-links. And we will see if it'll
work. No
I use textpad. http://www.textpad.com. You can arrange your own coloring config
and there are some very cool elements about it there are even modules to
load into it for added functionality
once you use it you will never go back..mmuuwwahahahaha
- Original Message -
From: "Lauri
I'm trying to reference $PHP_SELF and $REMOTE_USER inside a class:
var $page;
var $user;
$this->page=$PHP_SELF;
$this->user=$REMOTE_USER;
I'm using php4. What am I missing here?
TIA,
clif
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Hi All,
I am having problems with file permissions. I am trying to use fopen() to
write to a text file and get the error - 'permission denied'. I then used
chmod("file.txt", 0755); and got the message that I was not the file owner,
can someone help me out?
PHP 3.0.9
Solaris 2.7/Apache 1.3.3
TI
Hi,
When uploading an .mp3 file, is it possible to check its bit rate with
php?
If you know anything about it, please send a mail to my private email as
well.
Thanks
Siim EInfeldt
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I use udmsearch and love it. If you want php pages searchable it does
actual http requests, so it doesn't give source code. If you don't want php
searchable, you can configure it to ignore any file extensions you want. It
comes with a php interface built in, also.
Ethan Schroeder
- Origina
Sorry, should be
./httpd --help
Miles
At 01:52 PM 5/12/01 -0300, Miles Thompson wrote:
>
>or
>./hhtpd --help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-m
On Sat, 12 May 2001, Jochen Kaechelin wrote:
> Hello list!
>
> When you create a pdf-document with Adobe Acrobat
> you can protect it with a password!
> Is there a way to protect it with php's pdf-funtions, too!
>
> I found nothing in the docs!
>
No - there is no way to do this. Those pass
Did you stop and restart Apache?
Are the page types properly added to httpd.conf? (See the instructions,
near the end.)
Did you move and rename the .ini file, as in the instructions?
If all those are OK, create this simple file in your web root, callinf it
phpinfo.php:
and call it from your
FredrikAT wrote:
> Can anyone recommend a php(/mysql) book?
I like Paul DuBois's book "MySQL". There are a few sections on PHP and how
to use it with MySQL. Aside from that, I think the online resources are more
than sufficient to learn PHP -- you don't need to get a book.
Young
--
PHP Gener
There's a link on the ht:dig site for PHP scripting, but it will pretty
well work right out of the box.
Miles
At 02:31 PM 5/12/01 +0200, B. van Ouwerkerk wrote:
>>Any suggestion for a better site search program?
>
>I know quite a few people who really love htdig. Don't know if it's better.
>
>N
In your apache conf, make sure you have something similar to:
AddType application/x-httpd-php .php .phtml .inc
If you don't, add it and restart apache.
- Original Message -
From: "Raven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 12:04 PM
Subject: [PHP] Newb
Hi FredrikAT,
FredrikAT> Can anyone recommend a php(/mysql) book?
Well, I don't know what language you do expect. I have read 3 Books in German,
the best of them was "Internet intern: PHP 4 + MySQL" by Rolf D. Stoll & Gudrun
Anna Leier. It's from Data Becker, and It is a really good book for beg
Can anyone recommend a php(/mysql) book?
--
-
Fredrik A. Takle
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.
Laurie M. Landry
Design & Development
www.lmlweb.com
[EMAIL PROTECTED]
T: (604) 872-6915
F: (425) 732-1547
> -Original Mes
Hello to all.
This is probably the most basic question of th PHP general list. I just
installed PHP 4.0.5 on Apache 1.2.19.
Could someone please explain a very basic test.
I would like to write a "Hello World" page as a test.
I have tried the following: And named the page: index.php and ind
On Sat, May 12, 2001 at 05:36:30AM -0700, Robert Mena wrote:
> Hi Thies,
>
> Yes, httpd is linked against pthread.
> I've compiled 4.0.4pl1 and so far it is working ok.
> This problem (segmentation fault) seems to be
> happening quite often (after reading some posts).
a backtrace would be u
You are not the only one, this is strange indeed, I would not believe it is
a hacked tho.
Maybe a technicien mixed up the dns db, or something like that !
Go to: http://uk2.php.net/ wich is fine,
py
- Original Message -
From: sunny hundal <[EMAIL PROTECTED]>
To: Altunergil, Oktay <[EMAIL
Hello list!
When you create a pdf-document with Adobe Acrobat
you can protect it with a password!
Is there a way to protect it with php's pdf-funtions, too!
I found nothing in the docs!
--
phpArbeitsgruppe in Gruendung - Jochen Kaechelin
Stuttgarter Str.3, D-73033 Goeppingen
Tel. 07161-92 95 9
i'm running a select query on a table, using php of course, and i
have a form right underneath it which has similar names to the
information in selected in the query above.
yet despite using mysql_free_results before my form starts, it still
keeps the last result of the query 1 in memory :(
are
ok, i just clicked on the uk.php.net/mirrors.php and i got nothing.
so i went to uk.php.net and i get some wierd "online.co.uk" corporate
site which has no relation to php at all.
am i the only one who gets this feeling someone's replaced the
uk.php.net files??
/sunny
--- "Altunergil, Oktay"
Hi Theo,
I'm not sure it will help, but can it be because of script execution time?
Increase the time I try again. If it works, please let me know.
Greetz,
SED
-Original Message-
From: Theo Richel [mailto:[EMAIL PROTECTED]]
Sent: 12. maí 2001 08:17
To: [EMAIL PROTECTED]
Subject: [PHP] u
Hi Thies,
Yes, httpd is linked against pthread.
I've compiled 4.0.4pl1 and so far it is working ok.
This problem (segmentation fault) seems to be
happening quite often (after reading some posts).
ldd /usr/sbin/httpd
libm.so.6 => /lib/libm.so.6 (0x4001a000)
libcrypt.so.1 => /lib/
>Any suggestion for a better site search program?
I know quite a few people who really love htdig. Don't know if it's better.
Not sure how good it is handling .php files.
You could give it a try.
THink I remember a search PHP script at php.net.. or was it freshmeat.. not
sure about name of l
On 11-May-01 Markus Held wrote:
> Can do what i want. I need gif and jpeg
>
> habe installed jpeg-6b , gd-1.8.4gif.tar.gz
>
No, GIF support was removed in v1.6 or so
http://www.boutell.com/gd/
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darke
Hi,
here my problem with COM in PHP.
";
$jServer = new COM("jexeserver") or DIE ("Connect zum J Server ist nicht
möglich");
$jServer->Show(1);
$jServer->Log(1);
$jServer->Do("0!:0 <(1!:40''),'system\extras\config\profile.ijs'");
$jServer->Do("load'd:\\j_tm1dll\\j\\tm1api.ijs'");
$jServer->Do(
Dear Sir
I have received your email at the innovative-pk.com I want to know that to which user
this email is destined
cc at [EMAIL PROTECTED]
Thanks & Regars
Asim Ansari
On Saturday, May 12, 2001 at 12:37:26 AM, Young Chi-Yeung Fan wrote:
> Yamin Prabudy wrote:
>
> > Hi there
> > I like to
On Saturday 12 May 2001 04:20, Young Chi-Yeung Fan wrote:
> If you have , then when you submit your form,
> $HTTP_POST_VARS["data"] or $HTTP_GET_VARS["data"] will be:
>
> The word \"here\" is in quotes.
>
> So you can put the value straight into MySQL. The slashes will not show
> up in MySQL. The
On Saturday 12 May 2001 00:51, Brandon Orther wrote:
> Hello,
>
> I found asp2php to be a great tool. Does anyone know of a way to make
> it convert a whole directory or more than one file at a time?
I don't know asp2php, but a simple
cd src
for i in `find -name '*.php'` ; do
asp2php $i ../de
In article <000c01c0dabb$422d2bd0$0101@devel01>,
[EMAIL PROTECTED] ("andreas \(@work\)") wrote:
> but i cant work it out how to use this function in the WHERE clause
>
> ... WHERE SUBSTRING(field,pos,len) LIKE "ABC"
> ... WHERE SUBSTRING(field,pos,len) = 'ABC'
> ... WHERE SUBSTRING(fie
hi,
if i use SUBSTRING(field,pos,len) in a SELECT statement it works fine
but i cant work it out how to use this function in the WHERE clause
... WHERE SUBSTRING(field,pos,len) LIKE "ABC"
... WHERE SUBSTRING(field,pos,len) = 'ABC'
... WHERE SUBSTRING(field,pos,len) LIKE 'ABC'
none of them
I try to upload a .sql file with PHPMyAdmin. Below 1 mb: no problem, above
1mb: impossible. We have increased the max_upload_file_size in PHP.ini but
it still doesnt work. What other parameters in the php.ini influence this?
Thanks very much
Theo Richel
ERRATA to the PREVIOUS E-MAIL:
the following line:
> pass:
should read:
pass:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
php-general Digest 12 May 2001 07:54:28 - Issue 681
Topics (messages 52513 through 52549):
Encode/Decode Problem
52513 by: Augusto Cesar Castoldi
52518 by: Sean Cazzell
OT SQL SERVER
52514 by: Brandon Orther
Only have one session per user?
52515 by: Christi
hello,
YoBro wrote:
>
> Have you got an example of how to use the -b switch.
> I am not up with lingo when it comes to unix.
>
\n";
}
else
{
?>
user:
pass:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
Hello Scott,
I took a look at your code, and have a solution for you.
Here's the code:
while ($row = mysql_fetch_array($result) )
{
if ($row["memberid"] == $login_id)
{
// your code here :-)
}
}
>
>$row = mysql_fetch_array($result); // Get one r
I use mnoGoSearch http://search.mnogo.ru/ it works great for me and I've
been using it for about a year.
Thank You
Ryan
mailto:[EMAIL PROTECTED]
-Original Message-
From: elias [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Site sea
68 matches
Mail list logo