'require' ALWAYS includes the file; 'include' is what you want here.
not since v4.0.2(?) came out ...
I heard from Zeev that require() and include() behave now just about the
same.
Read our posting regarding this topic of 1-2 month ago..
Cheers,
Maxim Maletsky
The tradeoff is that include
include() behaves
(in all versions of PHP) as well.
November 14-th ...
Cheers,
Maxim Maletsky
-Original Message-
From: Maxim Maletsky
Sent: Thursday, January 11, 2001 2:26 PM
To: 'Steve Edberg'; Jon Rosenberg; PHP List .
Subject: RE: [PHP] case ?
'require' ALWAYS includes the file
As I said to my HTML Editors:
Whenever you meet in your code: ? / ? DO NOT TOUCH IT...
It works - Programmers and Web Designers have nothing now to do together.
That is what I love the most of PHP -- you can separate PHP Core and HTML
extremely easily.
Cheers,
Maxim Maletsky.
-Original
Think of a library:
you make yourself a bunch of files to use somewhere later, and when you need
any of them - include it.
Functions, classes whatever but not IFs and calculation staff: these
would always have to be read...
Cheers!
-Original Message-
From: Dan Phoenix
Instead I am curious how other developers on this list are returning the
MD5, password() or whatever in permanently encrypted passwords...
What are procedures and what is the way the return process work?
Any tricks/tips to share with all of us?
Cheers,
Maxim Maletsky
-Original Message
Yeah, in fact that's my point. If you cannot decrypt a password, there's no
way to return it , right?
So how come these "big guys" DO return it to you?
And what is the most secure way for it. Some of these companies deal with
finances, the security is a REAL issue over there...
Maxi
that's very true, you put in the risk the others accounts
Maxim Maletsky
-Original Message-
From: Josh G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 11:32 AM
To: PHP User Group
Subject: Re: [PHP] password() ::: and it's return...
Well it's up to you wether
o pass-protect the directory with articles (it HAS to be a different
directory from the story.php)
the article will then be still shown under the password or when only
included by PHP...
there's a whole bunch of ways to do what you're asking ...
Cheers,
Maxim Maletsky ..
-Original Message-
From: Miles T
what a personality ...
when "or when you think" no one helps you :-
R-E-A-D--A-R-C-H-I-V-E-S
then even your 8 y/o sister, once browsed these will learn 'bout PHP more
then you ...
Maxim Maletsky
-Original Message-
From: Serge Montmarquette [mailto:[EMAIL PROTECTED]]
Sent:
-1956
Cheers,
Maxim Maletsky
-Original Message-
From: Niel Zeeman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 2:46 PM
To: php gen list
Subject: [PHP] HELP! Date formatting
Hi
Ive gotto format a date such as 30/12/1956 to format 30-Dec-1956,
I can not use mktime cause
uff... that was long but very useful, thanks Terry - a good contribution for
our developers team in here whom I just forwarded your email and for
PHP-General archives.
Cheers,
Maxim Maletsky
-Original Message-
From: Terrence Chay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17
www.heraut.demon.nl is a good tool for database design/presentation,
then DBTools http://dbtools.vila.bol.com.br/ is also awsome for managing the
databases...
non of these is written in PHP, they are for your local machine, but I
personally like it this way better...
Cheers,
Maxim Maletsky
here:
http://marc.theaimsgroup.com/?l=php-generalr=1w=2
have fun!
Maxim Maletsky
-Original Message-
From: Taras Vasylkevych [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 7:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mail list archive
Hi,
is it possible to review
a customer like Microsoft, Morgan-Stanley, Amazon.com.. yes, but a new
start-up that thinks: "when we'll grow we'll buy something cooler" will
crack your soft down (or will ignore your license) ... I've seen it
happening so many times...
Cheers,
Maxim Maletsky
-Original Message
) are just more likely not good enough to write
a good license, the one which will totally satisfy a customer and will
encourage him to purchase it.
my point is: licenses aren't codes - if you are a programmer you'll have
some hard time writing it well.
Cheers,
Maxim Maletsky.
-Original Message
maybe : $pattern = "/\[b\]([.\n]*)\[\/b\]/Ui";.
have you tried it succesfully?
P.S: I am not sure that \n in preg is a newline, you could also try this:
$pattern = "/\[b\]([.".chr(10).chr(13)."]*)\[\/b\]/Ui";.
one of these ...
Cheers,
Maxim Maletsky
-
still hack with it while it is being operated...
oopps, again wrote too long ...
anyway, is there any script like that (fast and dirty is ok) to run on
MySQL, PHP4.0.2 ?
P.S: I have a quite good idea on how to write it, but NO TIME.
Thanks
Maxim Maletsky - [EMAIL PROTECTED] mailto
with them all with .htaccess
or
use .htaccess to not to show them anymore...
Cheers,
Maxim Maletsky
-Original Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 5:48 PM
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] how do i hide my .inc files
ending up
rewriting it all.
I need it VERY urgently. my boss is hacking my *ss...
Please help me with this one...
Thanks in advance,
Maxim Maletsky - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109
http:/
a tool that can do that.
Cheers!
Maxim Maletsky
-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 5:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] convert ASP to be PHP
Hi people,
I have one ASP site that need to be converted to be PHP3
;? nor even that makes sense enough... that
would be "PHPHPP" ... hmm...
...and so on;...and so on;..and so on
BUT Now I will have something to print out and to bring in my bag with me
all the time awaiting for these naive interrogations.
:-))
You are my saver, Rasmus!
is "$HTTP__Host" just a typo?
it should be $HTTP_HOST.
Cheers,
Maxim Maletsky
-Original Message-
From: Jamie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 11:41 AM
To: PHP
Subject: [PHP] Function with True / False return
can anyone tell me whats wrong with thi
L "\n\n";
if ($INPUT{'unsubchk'}) {
print MAIL
"===\n";
print MAIL "You have received this email because you subscribed to the
$INPUT{'listname'} Mailing Service. To unsubscribe simply visit the link
below.\n";
RT_ID() will be here equal to the auto_incremented id of the first
$SQL statement.
Hope this helps,
Maxim Maletsky
-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 7:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] last_insert_id function
I got
.
Cheers,
Maxim Maletsky
-Original Message-
From: Mark Lipscombe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 5:28 AM
To: Maxim Maletsky
Cc: 'Jacky@lilst'; [EMAIL PROTECTED]
Subject: RE: [PHP] last_insert_id function
Someone jump in here and correct me if I'm wrong
Yes, except that in the second case you first will have to do the insertion
of $sql and then assign $lastId to mysql_insert_id();
Cheers,
Maxim Maletsky
-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 7:36 AM
To: Maxim Maletsky; [EMAIL
a thing to understand (just in case you didn't)
that mysql_insert_id() must be called after mysql_query($sql) was made...
otherwise how do we know the last id... ?
Cheers,
Maxim Maletsky
-Original Message-
From: Maxim Maletsky
Sent: Wednesday, January 24, 2001 6:38 PM
To: 'Jacky
I am not really sure about this one, but the first thing I would do is that
I would try it.
It could be though ...
Cheers,
Maxim Maletsky
-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 7:53 AM
To: Maxim Maletsky; 'Mark Lipscombe'
Cc
if nothing else works for you - try this...
(depends on how secure stable you want your application to be, of
course...)
Cheers,
Maxim Maletsky
-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 1:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Urgent
Yes, Check the PHP.ini file, it can be easily configured there,
Cheers,
Maxim Maletsky
-Original Message-
From: Samuel Tran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:29 AM
To: php-general
Subject: [PHP] PHP + send mail using remote smtp server ?
Hello everybody
only letters and space ?
if (eregi("^[A-Z ]+$", $firstname))
this will return true only if a case-insensitive string will contain only
letters and spaces... (and the string must not be NULL)
if (eregi("^([A-Z]+( )*[A-Z]+)$", trim($firstname)))\
this will return "M
Have you touched any .htaccess file?
Then maybe that's the problem ...
I've no idea what you misconfigured at all, but I know that a
misconfiguration of .htaccess gives you the exactly same error (500) and the
error log line is often looking very similar,
Cheers,
Maxim Maletsky
-Original
Archives at http://marc.theaimsgroup.com/?l=php-generalr=1w=2
Cheers,
Maxim Maletsky
-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 6:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Importing MS Access into MySQL?
Hey all,
I heard somewhere (I think
';
?
/snip
hey, this yes WILL HELP YOU ALL:
http://developer.irt.org/script/script.htm
Lots of good Javascript tips!
Cheers,
Maxim Maletsky
-Original Message-
From: david klein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 4:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Resize the
= substring($date,4,6); // you mean that the month follows the
year? (not clear in your example)
$day = substring($date,6,8);
return "Today's date is $day $month $year"; or use mktime() etc ...
}
}
Cheers,
Maxim Maletsky
-Original Message-
From: Fredrik Arild Tak
Yup,
you can even run .maxim or .john if you add them into apache's httpd.conf,
or without adding anything you can just include() any possible kind of file
into .php file and it will be processed just as a .php file.
Cheers,
Maxim Maletsky
-Original Message-
From: John LYC [mailto
Yeah, apparently the server was a bit down these hours ... no one received
anything ...
Cheers,
Maxim Maletsky
-Original Message-
From: Joe Sheble aka Wizaerd [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 10:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] testing
I haven't
my firewall reports this at last once a moth ...
Cheers,
Maxim Maletsky
-Original Message-
From: Chuck Mayo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 8:50 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] VIRUS ON LIST?
I don't want to be an alarmist
$res = mysql_query($badsqlstatement) or die(errtrapper().' at line
(B'.__LINE__.'/B)');
Cheers,
Maxim Maletsky
-Original Message-
From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 6:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] when using die(), how can
There's NO METHOD~~!!!
any one can just hit print-screen and dump whatever your monitor was showing
into PhotoShop (which will print it on request)
:-))
Cheers,
Maxim Maletsky
-Original Message-
From: Usman Ghani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:38 PM
Maxim Maletsky - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109
http://www.j-door.com http://www.j-door.com/
http://www.japaninc.net http://www.japaninc.net/
http://www.lincmedia.co.jp http
No it is not, but you can use it for as long as you wish in unregistered
mode.
Cheers,
Maxim Maletsky
-Original Message-
From: Christian Sakshaug [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 8:47 PM
To: Maxim Maletsky
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Editor
...
Hope this is something that helps.
Cheers,
Maxim Maletsky
-Original Message-
From: Yui Hiroaki [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:12 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] question ! show binary
HI!
I am using PHP in mySQL. I cr
Will work well, I think ... plus this is on submission which makes a little
discount on load times. And it is quite expandable function.
Cheers,
Maxim Maletsky
-Original Message-
From: Chris Aitken [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:04 PM
To: [EMAIL
{
$Gotcha = 1;
Break;
}
if(!$Gotcha)
header("Location: error.php?reason=prudes_wont_like_it");
else
header("Location: insert_stuff.php?comment=$block_of_text");
/snip
Cheers,
Maxim Maletsky
-Original Message-
From: Chris
"$loop[naughty_words]")) {
return true;
}
}
}
if(!nasty_words($text))
header("Location: error.php?reason=prudes_wont_like_it");
else
header("Location: insert_stuff.php?comment=$text");
Cheers,
Maxim Maletsky
-Original Message-
From: Maxim M
er to find for a
manager on AltaVista.
This is how we have to teach them.
Cheers,
Maxim Maletsky
--
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]
mysql_insert_id() is a PHP function for it.
however I recommend you using a build-in SQL function LAST_INSERT_ID().
i.e: INSERT INTO table SET name='$name', surname='$surname';
UPDATE table SET name='$name', surname='$surname' WHERE id=LAST_INSERT_ID()
Cheers,
Maxim Maletsky
-Original
It all looks alright to me, however in from field of my email client I still
see ' [EMAIL PROTECTED]' mailto:[EMAIL PROTECTED]' instead of
'J-Door Newsletter' ,
What am doing wrong?
Cheers,
Maxim Maletsky - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Webmaster, J-Door.com / J@pan Inc.
LINC M
ha ha ha .
Maxim Maletsky
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 3:13 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] test - can someone please reply?
On Thu, 8 Mar 2001 16:32, [EMAIL PROTECTED] wrote
and the usability has improved immensely... very cool.
Great job guys!
And, if anyone on the list finds any bugs there - please contribute!
Maxim Maletsky - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109
http
a SECURE one :-)
Cheers,
Maxim Maletsky
-Original Message-
From: elias [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 4:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Post but not Post
Hello.
we all know that we can send variables to another PHP file via form tag
and with post
t me how do I SELECT ALL of the accounts having simply NULL
on 'addresses.*' when there's no such row, instead of 'loosing' the whole
'account' row?
I sure know how to do it using two queries, still, I wonder if one single
query can do this job.
Where do I miss the logic?
Thanks in advanc
?
No
I think a way could be by trying the ODBC functions of PHP.
See www.php.net/odbc
If you give us more details we might be more of a help.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
If any of you
Exactly what I always though in here, Rasmus:-)
Maxim Maletsky
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 8:12 PM
To: Brian Drexler
Cc: Erik Price; Frank Joerdens; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] April
myself your /etc/passwd and you're freaked :-)
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
maxim phpbeginner.com
Craig Donnelly writes:
Is there a way to setup either the apache/php directives to produce a custom
404 if an include
.
Not sure if this could be wise to do, just throwing out an idea.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
maxim phpbeginner.com
Arpad Tamas writes:
Hi Everyone!
I have an idea, but I don't know how to realise it, if it can
])) {
}
this will mean:
if there's such variable defined and the lenght of what it contains is
bigger than 0 the statement will result TRUE.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
maxim phpbeginner.com
Scott Fletcher
for that very array.
As I said in the very first line - all up to your logic and the organization
rules within the code.
Hope it is of any help to you.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
Scott
them
through the 'date()' function.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
ROBERT MCPEAK writes:
What is the php syntax for adding or subtracting dates?
For example, I'd like to do something like
if it will help.
Thanks in Advnace
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http
for the data
comparisons and output formatting.
Take some time reading the manuals and you will discover a whole new
world on the RDBMS use.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From
That's the way!
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 8:26 PM
To: 'Scott Fletcher
.
Though, it's been always kind of tough to accomplish, and even start.
Reason: everyone is trying to purge the project in its own way... not
too easy to agree.
But, I'd love to follow this idea.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED
in
your form you're already being collecting, even so he pressed no submit
buttons yet.
I made an intranet editor that had this failure-free feature similar to
MS Word.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
yourself.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.phpbeginner.com
[EMAIL PROTECTED]
-Original Message-
From: G-no / |{iller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 4:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTML
You can also use this mySQL syntax:
INSERT INTO table SET
field1='$value1',
field2='$value2',
...etc
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: chris allen [mailto:[EMAIL
Have you considered simply using require_once?
Also, you can find out if a class was defined by calling
'class_exists()'. In this way you might save something.
The best way thought is what Miguel was saying: load the files
conditionally with a logic.
Sincerely,
Maxim Maletsky
Founder, Chief
recently turned to 10m) instead of the
simple timestamp(14).
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just insert the date: like NOW(), or whatever formatted string into the
field
PS: YAY! In Attack!
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Erik Price [mailto:[EMAIL
In two words - here's your bible, Erik:
http://www.mysql.org/documentation/mysql/bychapter/manual_Reference.html
#Date_and_time_functions
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.phpbeginner.com
[EMAIL PROTECTED]
-Original Message
Use header to start file download:
http://www.php.net/manual/en/function.header.php
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Joe Keilholz [mailto:[EMAIL PROTECTED]]
Sent
is just and extension it is possible to
access it without touching any files at all. Just use it the way you
would use PHPLIB: put pear folder somewhere and start including its
files and call its classes and methods.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP
Try this:
function whatFile($f) {
$LOCALS['fname'] = $f;
}
$then in the file of yor interest do this:
whatFile(__FILE__);
and wherever next you will want to have that value the file name will be
within $fname;
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com
user is not scared of read the complex programming terminology in
the advaced section.
Kewl, no?
we're getting closer now.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
Jason Wong writes:
On Thursday 04 April 2002
within tables.
P.S: this was an answer to a message that originally shouldn't been posted
on this list.
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
Jason Caldwell writes:
I have several checkboxes on my webpage
Go wild Arpi!
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
-Original Message-
From: Arpad Tamas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:34 AM
To: Miguel Cruz
Cc: Maxim Maletsky
Need more to say, guys?
Read below...
-Original Message-
From: Mikhail Avrekh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:43 PM
To: Maxim Maletsky
Cc: 'Philip Hallstrom'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: included file name -- DOCS ?
Thanks guys
Socket() function does not exist in PHP at all. Use fsockopen() instead.
http://www.php.net/fsockopen
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Odd Arne Beck [mailto
element of your
multidimentional array
// combine your rest of the code and work it out the way
you need it.
}
}
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message
$qq = V:\\memo\\F0001\\abcdef.com;
print $qqbr\n;
$qx = ereg_replace(V:\\,'',$qq);
print $qx;
out:
V:\memo\F0001\abcdef.com
Warning: Trailing backslash in /home/rodolfo/public_html/test.php on
line
5
I think it should be:
$qx = ereg_replace(V:,'',$qq);
Sincerely,
Maxim
and your
function will work
Return True;// is enough
}
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Simonk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04
add to your mySQL query:
order by id desc limit 1
This will order your data by your primary id (change 'id' to whatever you
auto-increment) in the descending order and will limit the results to 1
record.
Cheers,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP
we still use include();
setup.php has something like:
if(file_exists($page) and ...more...controls..)
include_once $page;
then the $page.php is where you have a part of your site.
You can pass $page as the GET variable: setup.php?page=page.php
and so on
Maxim Maletsky
ways.
In the poster's case, to have a p out of brbr he should still use
nl2br() and then add this to it:
$text = preg_replace(/\w*br\w*br\w*/i, \n\np, $text);
Cheers,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
Jamie
RegEx. But, I was wondering, is a known
bug or it's because of my machine? Other than that nothing has
changed...
Enlighten me on this, please. Did I miss a bug report?
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
PHP
version and use same data as before.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Andrew Brampton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 2:21 AM
OK, James, even worth.
But again (I like insisting on such things),
Why do I have it now and didn't have it before? Why did it change
anyway? I haven't seen it on any other my server and I use it quite a
lot.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP
on 06/04/02 10:13 AM, Maxim Maletsky ([EMAIL PROTECTED])
wrote:
I've never seen that nl2rb would return me BR / instead of the
traditional BR. But it did.
Is that normal or it that a bug?
Here's some test code:
?
$text =
Hello
There we go.
Thanks Rodolfo.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 2:23 AM
To: Maxim
Thanks Torben,
I have rushed into this discussion because I didn't know anything about
this change. Later on I've discovered the rest.
Thank you all.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original
try:
if(is_dir($dir)) {
echo 'directory was found';
}
Yoroshiku,
Maxim Maletsky
PHPBeginner.com
Hiroshi Ayukawa writes:
Does anyone know how to check a directory exiasts?
Thanks in advance,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
. That would be WAY
easier.
Cheers,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 11:44 PM
To: PHP-general
Subject: [PHP
I don't think this is his case. Say, some site on geocities wants to get
on and manipulate his BB while showing it's own Geocities URL. What
would it have to do with apache?
It is rather like using frames. (or JavaScript of some kind)
Maxim Maletsky
-Original Message-
From
);
Thanks,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
www.PHPBeginner.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for this, just a few variables preset
before calling mySQL.
Do pobachennya,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Vladislav Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002
.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Vladislav Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 4:09 AM
To: Maxim Maletsky
Cc: [EMAIL PROTECTED]
Subject
way though.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
[EMAIL PROTECTED]
PHPBeginner.com (Where PHP Begins)
www.phpbeginner.com
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 5:16 PM
To: Alberto Wagner; Php General Mailling
really
want them, create a copy as hidden and that is it.
Cheers,
Maxim Maletsky
www.PHPBeginner.com
Boaz Yahav writes:
Hi
I'm having a problem that is taking me out of my mind.
I have a DISABLED field in my HTML (SELECT tag) and for some reason,
it's value is not passed back
anyway.
Cheers,
Maxim Maletsky
www.PHPBeginner.com
James E. Hicks III writes:
I think you've got the best set up already. I have a PDF library that I do a
similar thing with. To update the site I just dump the new PDF's into their
directory and the users reload the page to see
1 - 100 of 604 matches
Mail list logo