te_host_name you can find out a ip with
gethostbyname(String name_recieved)
I hope it helps
--
Best regards,
Danielmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
er_1 --user=user
--password=hassword name_of_database > file.txt
On the second server you can do it with command
mysql --host=here_write_sql_server_2 --user=user
--password=hassword name_of_database < file.txt
I hope it helps
--
Best regards,
Danielmailto:[E
Hi everyone :)
imagine this if you will..
ugly form with a text input field that is focussed when the form loads,
erm.. nice.
now, I like to put all my form stuff into associative arrays, makes things
a lot nicer when I am doing things later... but this... means someth
I play with this lots, good fun..
Path:
the title of the page will contain the path you typed..
Twigman...
On 2001.08.08 23:13 Evan Nemerson wrote:
> I seem to recall that you can call a PHP script with a slash after it
> then
> variables. For instance http://localhost/script.ph
if (preg_match("/\d/", $data) {
print 'The $data contained a number';
}
On 2001.08.09 07:05 scott [gts] wrote:
> here are two regexps that might do what you want
>
> "\w" matches alphanum (1-9a-zA-z)
>
> IMO, the best way to check for non-alphanum chars is
> to check for "\W" (upper cas
You are looking for HTTP Authentication...
http://www.php.net/manual/en/features.http-auth.php
Twigman...
On 2001.08.09 09:49 Chris Kay wrote:
>
> Hi
>
> My question is that i am about to start a database and i have been asked
> to
> make the login/password like htaccess, now they also want t
try this...
Image width:
Image height:
hope that's what you meant.
Twigman...
On Thu, 9 Aug 2001, Mark Lo wrote:
> Hi,
>
> I would like to know ..is it possible to let my client resize the
> picture from the browser instead of having a defau
On Thu, 9 Aug 2001, Karl Phillipson wrote:
> Is anyone else having fun and games with IE 5.0 and caching?
>
> I have the no-cache code (below) before anything else in my index file.
> Following that an include file is pulled in that has a form with a text
> input field that echos the date and t
. van Ouwerkerk is right with his suggestion about manuals and
archive. I know that this problem was here a lot of times.
But anyway I hope it helps
--
Best regards,
Danielmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
can compare users password in
passwd file with password submited to form.
I hope it helps
--
Best regards,
Danielmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
Anyone know why I get this when I run buildconf for php or phpgtk on
redhat 7.1? I have autoconf 2.13
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_LANG_PUSH
***BUG in Autoconf--please report*** AC_LANG_POP
***BUG in Autoconf--please report*** AC_LANG_PUSH
***BUG in Autoconf
1.4b
On Mon, 13 Aug 2001, Markus Fischer wrote:
> What libtool version are you using ?
>
> libtool --version
>
> - Markus
>
> On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote :
> > Anyone know why I get this when I run buildconf for php or phpgtk on
>
Sounds like you could use javascript rather than php for this one. Or you
could try using an http refresh after a certain number of seconds.
- Dan
On Mon, 13 Aug 2001, Tom Henry wrote:
> Hi
>
> Could someone steer me in the right direction for this one - I can't
> seem to see the forest
Is there any way to use the --with-apxs and make the cgi version in the
make?
- Dan
--
--
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 PROT
for a file i would do something like this:
for the mysql db it would be something like this (this is probably a
little off):
I hope this helps. I'm sure it probably has a syntax error or something
but you get the point. :-) Welcome to the happy world of php!
- Dan
On Tue, 14 Aug 200
because you have a semicolon after while ($count > $i) so that it never
increments $i. :-) oops
On Tue, 14 Aug 2001, PHP List wrote:
> Hi,
> Can anyone tell me why this is a never ending loop?
>
> $i=0;
> $count = 1;
> while ($count > $i);
> {
> echo "$i ";
> $i++;
> }
> Chris
>
--
-
check out the require, include, and require_once functions in the manual
on php.net
- Dan :-)
On Wed, 15 Aug 2001, Martin wrote:
> Ok, this may seem like a dumb newbie question...
>
> Is there an function like ASP's Server Side Include in PHP ? Or what is best
> to use instead, fread ?
>
I did something like that once. Mine sent only about a few hundred at a
time and it was still quite a strain on the system because you have a TON
of sendmail processes started and running at the same time. Just be aware
of the possible system load.
- dan
On Thu, 16 Aug 2001, Jimmy Bäckst
stem I'll be using uses qmail.
>I've heard that qmail does things better than sendmail?
>
> /Jimmy
> - Original Message -
> From: Daniel Adams <[EMAIL PROTECTED]>
> To: Jimmy Bäckström <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Se
Actually I remember that I did have the same problem. I had to use
sleep() also even though I was only sending a few hundred rather than a
few thousand.
- Dan
On Thu, 16 Aug 2001, PHP List wrote:
> Thats interesting.
> I tried to do the same thing with 5000 emails using sendmail, and I
I suppose you could check the $GLOBALS["REQUEST_URI"] variable with a
regular expression or something.
- Dan
On Thu, 16 Aug 2001, Jason Dulberg wrote:
> The menu that's taken from the database is basically a list of links like
> this
>
> $s="select * FROM molds m, prodlookup p WHERE p.ci
Another way you could do it would be to check each item in the
$GLOBALS["argv"] variable (or $argv).
- Dan
--
-- Forwarded message --
Date: Thu, 16 Aug 2001 14:18:09 -0400 (EDT)
From: Daniel Adams <[EMAIL PROTECTED]>
To: Jason Dulberg <[EMAIL PRO
here xx is a number of your runlevel.
or give the start script to /etc/rc.d/rc.local. On the end of this
file.
I hope it helps
--
Best regards,
Danielmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
ype variable.
TB> Thanks in advance
If you want to have more than one value in one variable it must be
array.
That's a explaining of naming convention for eg.select boxes.
I hope it helps
--
Best regards,
Danielmailto:[EMAIL PROTECTED]
--
PHP General Maili
th
base64_encode() and base64_decode function.
And this is secret for most users.
I hope it helps
--
Best regards,
Danielmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Hi,
How do I call on a switch from within an html-embedded
page?
Say I have a large php script that first verifies a
login, then allows templates for INSERTING, UPDATING,
& DELETING various records-- I need to have separate
templates load for each set of steps, but I only have
the vaguest of id
Is this different from the zend optimizer?
- Dan
On Tue, 21 Aug 2001, PHP Accelerator wrote:
> All,
>
> After a frantic week of development and digging into the bowels of the PHP
> scripting engine, I've produced an initial version of a run time
> accelerator. This works for Linux only,
y the site-owner), what risks are there in the
module approach?
Thanks for any information.
Ciao.
--
---+-----
Daniel Baldoni BAppSc, PGradDipCompSci | Technical Director
require 'st
Anyone know what they use on php.net to generate the documentation? Can
you do stuff that big with doxygen?
- Dan
--
--
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 admi
I am working on a form that needs to run INSERTS into
a table, but also has other connections and functions
going on, so $php_self isn't really an option (I'm a
newbie, and switch still scares me)...
Can I effectively use an include/require(insert.php)
on the main of the form, have the form actio
are you on windows or *nix? paste more code
On Fri, 24 Aug 2001, Jeremy Morano wrote:
>
> Sorry to bother you with what probably seems like a useless question but why
> is this not skipping a line?
>
>
> echo " $team \n ";
>
>
>
> Its in a while loop and the output is:
>
> Bears Giants Jets ..
gt; !eregi("\\.jpeg$", $img1_name)) {
JO> error message
JO> }
You can find out type of uploaded file like this:
if ($img1_name_type=='gif') {
image is gif do this
}
else {
image is not gif do that
}
I hope it helps
--
Best regards,
Daniel
If that's the code you're running, it's got several
problems--
1st, the function is mysql_query()
2nd, the query is built like this:
$connection = mysql_connect('host', 'user', 'pass');
$db = mysql_select_db('db', $connection);
$query = "SELECT * FROM tablename WHERE primary_key =
'$primary_key'
try readfile('http://www.somesite.com/');
it creates a mirror; it might bypass the firewall,
depending on how the blocking software is keyed to
activate.
-dj
--- Jeff Lewis <[EMAIL PROTECTED]> wrote:
> I was sitting here at work (working of course!)
> thinking about how some sites are blocked et
Instalei o servidor apache e agora estou configurando o php alguém sabe de algum lugar
que tenha a instalação passo-a-passo?
Obrigado...
Prezados,
Estou recebendo mensagem de erro ODBC32.DLL
O que está errado ?
Obrigado...
do you mean, as in,
if !is_integer($var) {
print("$var is not an integer");
}
--- Philip Olson <[EMAIL PROTECTED]> wrote:
> hi friends,
>
> Can someone post here "the" most efficient method to
> validate a variable
> as numeric? I see a ton of hacks/ways in the manual
> user comments under
> i
if you're just looking for the 1st occurrence of the
string, it's--
$check = "good";
$var = "This is a good...";
if (!strstr($var, $check)) {
print("$check not found");
}
also, i think strstr() is case-insensitive, so it
won't be able to differentiate between 'Good' and
'good', and will NOT ret
($total);
the total is going to be 579. You know?
I guess I'm not following you. Maybe if you give me
the problem in context I can help.
-dj
--- Philip Olson <[EMAIL PROTECTED]> wrote:
>
> Hi Daniel,
>
> No, I mean if it's numeric, not neccesarily an
> int
ith... perhaps it will be of
> some
> help to you (even though it doesnt work)
>
>
> function is_num($number) {
>
> // $x contains number, $y contains any decimal
> value
> list ($x, $y) = split("\.", $number);
>
> // if there's no decimal valu
maybe somebody else will be able to come up with a
much more graceful solution to this, but i think you
need to forget unset()-- all it does is destroy a var
within a script. your db data doesn't become a var
until you fetch it, but unset() isn't a mysql function
and doesn't interact with the db a
Is there like a syntax hilighting plugin for kdevelop or something?
- Dan
--
--
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]
I'm looking for a good script that implements an
annotation function--much like the manual at php.net. Anybody
know where I could find such a beast?
Daniel Goldin
[EMAIL PROTECTED]
323-225-1926
www.blue-lamp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
sbtsmefi
=
I'm looking for a good script that implements an
annotation function--much like the manual at php.net. Anybody
know where I could find such a beast?
Daniel Goldin
[EMAIL PROTECTED]
323-225-1926
www.blue-lamp.com
--
PHP General Mailing List (http://www
somebody else's
system. Should I be?
What are the pros and cons of various systems such as Typo3,
SiteManager, etc. Anybody have any experience using these php-based
systems?
What about Zope? Is it all it's cracked up to be? Does it work
with PHP?
Daniel
____
Daniel Gol
Hy,
i would like to use the alpha channel funtionality in GD2 to put a jpeg
into a PNG (24bit) with alpha channel. As i'm a total newbie with GD,
i'd love to see some examples. Can somebody shed a light on this?
Greetings from Germany,
Daniel
--
PHP General Mailing List (http://w
just post your form to a ph site, and the name describt in your tag
will be the variable.
is
$wtf
on the php page
"Nikola Veber" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi
>
> In order to process a form, do I need a cgi script and if not, how a
what u use for browser, os on the client machine?
maybe some cache problem
maybe timeout
post the url of that page...so that ppl can look @ it, and tell what s going
on.
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
008b01c135da$dc06f270$[EMAIL PROTECTED]">news:008b01c135da$dc06f270$[EMAIL PROTEC
e , "w+");
fwrite ($fp, $decoded_string, $atty_size);
fclose ($fp);
--- snap ---
After saving there is a difference in filesize and the image is
unusable. Original image size is 758.204 bytes and after saving
the attachment to disc its 759.885 bytes. What am i doing wrong
here?
hello
had everything working and fine.
when i went back to the page today, nothing worked.
i can (almost) bet my sack on that i haven't changed any code.
Fatal error: PDFlib error: function 'PDF_set_info' must not be called in
'object' scope
is the error i get.
the code is
$pdf = pdf_new();
ing
> anything.
>
> -Rasmus
>
> On Wed, 5 Sep 2001, Daniel Andersson wrote:
>
> > hello
> >
> > had everything working and fine.
> > when i went back to the page today, nothing worked.
> >
> > i can (almost) bet my sack on that i haven't ch
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%$Avar1%' AND
AdminContact LIKE '%$Avar2%'";
try this. Avar1/2 needs to be replaced by your var that u use in your html
form
"Devon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $Query = "SELECT *
echo $os\n;
"\n" does a "newline" in php, that u only will see in your sourcecode
or
echo "$os\n\n";
will do a brake in the source, and one in online layout
better read php.net first, before posting suh stuff here.
"Johan Vikerskog" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]"
rrors are found.
CI> thanks in advance.
If you have a binary php version you can do it like this:
/path/to/php/binary /path/to/script
Or you can do it thru lynx like this:
/path/to/lynx -dump www.some_server.com/script.php
I hope it helps.
--
Best regards,
Daniel
T_INTERNAL -
The return string is in "internal" format, without any attempt to
canonicalize CRLF.
--- snap ---
Well... obviously this doesn't work. Is there any way i can get this
to work? I need the CRLF's to get to their original CR state. Otherwise
my whole project will fail
Thanks for any
information.
Ciao.
--
-------+-
Daniel Baldoni BAppSc, PGradDipCompSci | Technical Director
require 'std/disclaimer.pl'| LcdS Pty. Ltd.
---+ 856B Canning Hwy
Phone/FAX: +61-8-9364-
... I noticed the same behaviour with v4.0.6 as the hosting company has
seen on their boxes. That is, 4.0.6 doesn't like the curl library installed
on my local machine - but 4.0.4p1 and 4.0.5 work just fine. Curious.
Ciao.
--
-------+
pictures. Nothing more fancy than that.
Alternatively - can anyone direct me to a good resource on coding these
types of scripts myself? Ie scanning folders, displaying content with
pagebreaks.
Regards
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ
i have a mysql database with 100 entrys in 3 tables.
i need to search trought them, but if i search for 'a' in all tables, i get
5000 results...
70 results are the same.
heres my code:
$sql_find="
SELECT
mieter.miet_name, mieter.cat_id, mieter.id,
mieter.miet_beschreibung, cat.cat_name, ev
records the query is displaying? (break the database response into
pages)
Third, any good ideas on how to do this the easiest way is appreciated :)
Thanks!
- Daniel
$db = mysql_connect("localhost", "xxx", "xxx");
mysql_select_db("xxx",$db);
$result = mys
getting the word
'Array' at the start?
$handle=opendir('.');
while (false !== ($file = readdir($handle)))
if ($file != "." && $file != ".." && ereg(".jpg",$file)) {
$retVal[count($retVal)] =
Hmm...
it still doesn´t work.
If i echo $retVal i just get the word 'Array' (the same number of times that
the number of files in the directory).
If i echo $file i get the file listing...however, it doesn´t pass on the
content to the rest of my script.
Maybe someone could help me out with the
-
> From: _lallous [mailto:[EMAIL PROTECTED]]
> Sent: den 18 september 2001 13:46
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Replacing datafile with array
>
>
> works like a charm
>
> just initializet the $retVal function...
>
> $retVal = array();
> rest
Still, if anyone wants to help out, or has a good solution, to make this
databasedriven - please e-mail me.
Regards
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | #
--
PHP General Mailing List (http://www.php.net/)
To unsu
n"];
I get the day and month in numbers. But how do i join $date and $month and
put a / in between them in a new string?
Regards
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | #
--
PHP General Mailing List (htt
Thanks guys!
--
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]
A little contribution from me as well...
I have altered the Todd Kennedy script a bit.
Instead of reading a textfile for the filenames it scans the directory and
displays all pictures (jpegs) that are there.
Go get it at: http://www.mindbash.com/scripts/mygallery.zip
# Daniel Alsén
tle images using a few colors so little image size
I have actually played around with that a bit. I found that jpegs actually
get smaller than the gifs if you want some sort of quality.
- Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
Updated the Todd script again...
Now there are page numbers added with the next and prev links.
http://www.mindbash.com/scripts/mygallery.zip
Hepp!
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | #
--
PHP General Mailing
content);
What i find strange is that the search only works on the actual text in the
html-document. It doesn´t seem to be able to use htmltags as $begin or $end.
And another question: does the "search" of $end begins from $begin? Or does
it scan the whole document for both strings?
Rega
How do i send the user on to another page at the end of the execution of a
script?
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | #
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
";
}
?>
I prefer to store that code in a separate document and include it in the
documents i want it.
Change $COUNT_FILE to whatever suits you. It's just a empty textfile from
the start. Don?t forget to chmod the textfile properly.
Then you just have to echo $count;
#
?
$welcome_html = eregi_replace("\[c]","",$welcome_html);
$welcome_html = eregi_replace("\[ec]","",$welcome_html);
Any help gratefully appreciated.
Daniel Goldin [EMA
DSolved. Problem was a typo in other script called by this one. Many
apologies to the list.
Best,
daniel
-Original Message-
From: Daniel Goldin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 9:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] eregi_replace problem
The following
el
platform.
Thanks for any help.
Ciao.
--
-------+-
Daniel Baldoni BAppSc, PGradDipCompSci | Technical Director
require 'std/disclaimer.pl'| LcdS Pty. Ltd.
Hi, all
anyone know how to get this to work?
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it
had an underlying truth.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
form and that part is working.
In the actual query i REPLACE the value of show_id:
$query = "REPLACE INTO puff";
$query .= "(id, show_id)";
$query .= " values('$fid''$show_id')";
I am sure it´s a simple solution. But p
I got a little disappointed at first when the query started adding
additional values again. But it only did that one time. For some reason it
wanted id to have a row with the value "0". After that it started to replace
the row with id "1". And now it works :)
- Daniel
--
PHP Ge
ut it doesn't work. php.ini is not dynamically
evaluated (I think).
Is there is solution for this security problem ?
Daniel Lacroix
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
quot;9", "09", $month);
}
if ($date < 10) {
$date = str_replace("1", "01", $date);
$date = str_replace("2", "02", $date);
$date = str_replace("3", "03", $date);
$date = str_replace("4", "04", $d
Hello again, Michael!
You ought to read this:
http://de.php.net/manual/en/language.types.string.php#language.types.string.parsing
Daniel
Harlequin wrote:
Could someone please help me with my syntax here...?
$MembersDataQry = "SELECT * FROM MembersData
WHERE UserID='$_SESSION['lognam
Don't argue with machines, just give it what it wants.
Just put the session variable in it's own variable and
pass that to the sql statement.
$logon = $_SESSION['logname'];
$MembersDataQry = "SELECT * FROM MembersData
WHERE UserID='$logon'";
--- Daniel K
[snip]
Does exits any function in PHP to see if one string is compose for
numbers. And I have already searched in google before I asked here
[/snip]
The manual is your friend.
http://www.php.net/strspn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
am new to PHP and I am having a problem removing a password restriction
from a simple Text Updater script (below). I have a bunch of files that need
to be protected and I am planning to use .htaccess, but this script calls
for the password to be input before allowing the update (redundant for my
I am using PHP to dynamically create real audio links.
The question is I was creating one .ram file for each
real media file that I wanted to stream. The .ram
files need to have absolute urls (which I do not
like). I saw a few sites that use one .ram file but
pass it a variable http://url.ram?id=
I need to know what header to send when using readile
with real media and windows media. Is there a list
that has all header when sending rich media and
images.
Thanks
__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
xml->error[] =
$newobject, but none of these works, which leads me to believe that I
can't use the [] thing to make a new tag. But how do I do it then?
Best regards, Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to build an XML-formatted string from an object. I use this
code:
class XML_Object
{
private $childs = array();
public function __get ($prop)
{
if (isset($this->childs[$prop])) {
John Holmes wrote:
- Original Message - From: "Daniel Schierbeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 20, 2004 10:47 AM
Subject: [PHP] Overloaded Class & The __tostring() Method
I am trying to build an XML-formatted string from a
Rick Fletcher wrote:
Daniel Schierbeck wrote:
I am having some problems with the XML features (I use the fancy new
SimpleXML). It works like a dream when I'm retrieving information from
an XML document, but when I want to insert new tags it screws up. I'm
trying to create a function
nce = clone $obj;
Cheers, Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
On Sat, 2004-08-21 at 14:38, Daniel Schierbeck wrote:
Robert Cummings wrote:
In PHP5 to get a copy of, versus a reference to, an object the developer
must call the __clone() method for the target object:
$obj = new Foo();
$copyNotReference = $obj->__clone();
Hello there. I was experimenting a bit with the constructors and
destructors, and found that this code:
class First
{
public function __construct ()
{
echo "Hello, World!\n";
}
erence (it's a conspiracy!). I'm not sure if
it'll help you, but try using the ampersand (&) symbol to force
passing-by-reference.
Cheers,
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use (you probably have
MySQL, though PostgreSQL would be preferable). If you have a large
amount of lines I recommend you use prepared statements. But first of
all, tell us which database you're going to use.
Cheers,
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
e set to NULL as well when using =&.
Cheers,
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow wrote:
* Thus wrote Justin Patrin:
On Sun, 22 Aug 2004 13:04:11 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote:
...
Note: Parent constructors are not called implicitly. In order
to run a parent constructor, a call to parent::__construct() is
required.
I
setcookie("foo", "bar");
setcookie("bar", "foo");
/* it's getting even stupider (can you even say that?!) */
echo "baaah\n";
/* print the buffered output and end the output buffering */
ob_flush();
Php Junkie wrote:
Ave,
I'm facing a little problem.
I have created a File Manager Application for my company which has a place
where authorized users can download the stored files. The files are of
various MIME Types.. Mainly PDF, TXT & DOC.
What I want to do is basically... When the user clicks on
Ron Clark wrote:
Capture the output in
the $output variable then ob_clean to empty the output buffer before
printing the the desired message.
ob_get_clean() is preferable:
$output = ob_get_clean(); // Gets the buffered output and cleans the buffer
--
Daniel Schierbeck
--
PHP General
901 - 1000 of 4338 matches
Mail list logo