Re: [PHP] user's ip

2001-08-07 Thread Daniel Rezny
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-

Re: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Daniel Rezny
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

[PHP] associative arrays in html forms and javascript

2001-08-08 Thread Daniel James
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

Re: [PHP] Alternate way of calling php scripts

2001-08-08 Thread Daniel James
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

Re: [PHP] regexps

2001-08-08 Thread Daniel James
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

Re: [PHP] htaccess & php

2001-08-08 Thread Daniel James
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

Re: [PHP] Resize Picture

2001-08-08 Thread Daniel James
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

Re: [PHP] caching and IE 5

2001-08-09 Thread Daniel James
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

Re: [PHP] MySQL: Select ALL

2001-08-09 Thread Daniel Rezny
. 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

Re: [PHP] posix_getpwnam

2001-08-13 Thread Daniel Rezny
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

[PHP] autoconf bugs

2001-08-13 Thread Daniel Adams
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

[PHP] Re: [PHP-GTK] autoconf bugs

2001-08-13 Thread Daniel Adams
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 >

Re: [PHP] How give a 'timed' online quiz?

2001-08-13 Thread Daniel Adams
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

[PHP] cgi and module?

2001-08-13 Thread Daniel Adams
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

Re: [PHP] Loop though email list

2001-08-14 Thread Daniel Adams
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

Re: [PHP] Loop error?

2001-08-14 Thread Daniel Adams
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 > -- -

Re: [PHP] something like SSI ?

2001-08-14 Thread Daniel Adams
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 ? >

Re: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
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

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
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

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
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

RE: [PHP] bold current menu item

2001-08-16 Thread Daniel Adams
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

RE: [PHP] bold current menu item (fwd)

2001-08-16 Thread Daniel Adams
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

Re: [PHP] Startup

2001-08-16 Thread Daniel Rezny
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

Re: [PHP]

2001-08-17 Thread Daniel Rezny
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

Re: [PHP] Passing variables to a file

2001-08-19 Thread Daniel Rezny
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-

[PHP] switch with html

2001-08-20 Thread daniel james
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

Re: [PHP] Free PHP runtime Accelerator for Linux available

2001-08-20 Thread Daniel Adams
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,

[PHP] Security implications - CGI vs module

2001-08-21 Thread Daniel Baldoni
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

[PHP] generate documenation?

2001-08-21 Thread Daniel Adams
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

[PHP] include or require or what?

2001-08-23 Thread daniel james
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

Re: [PHP] \n

2001-08-24 Thread Daniel Adams
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 ..

Re: [PHP] Eregi for Image

2001-08-26 Thread Daniel Rezny
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

RE: [PHP] unset() in a class

2001-08-28 Thread daniel james
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'

Re: [PHP] Pulling webpages - may be a weird question :)

2001-08-28 Thread daniel james
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

[PHP] instalando o php

2001-08-28 Thread Daniel Janzen
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...

[PHP] ODBC32.DLL

2001-08-28 Thread Daniel Janzen
Prezados, Estou recebendo mensagem de erro ODBC32.DLL O que está errado ? Obrigado...

Re: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
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

Re: [PHP] Check if a word is in my string.

2001-08-28 Thread daniel james
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

Re: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
($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

RE: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
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

Re: [PHP] change info in database not successful

2001-08-29 Thread daniel james
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

[PHP] kdevelop?

2001-08-30 Thread Daniel Adams
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]

[PHP] seeking good annotate script

2001-08-31 Thread daniel goldin
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

[PHP] seeking good annotate script

2001-08-31 Thread daniel goldin
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

[PHP] slightly OT -- content management systems and php

2001-08-31 Thread daniel goldin
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

[PHP] GD2 and alpha channels

2001-09-03 Thread Daniel Reichenbach
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

[PHP] Re: newby: forms problem

2001-09-04 Thread Daniel Masur
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

[PHP] Re: image problem

2001-09-05 Thread Daniel Masur
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

[PHP] Error while saving attachments (jpegs)

2001-09-05 Thread Daniel Reichenbach
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?

[PHP] pdflib?

2001-09-05 Thread Daniel Andersson
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();

Re: [PHP] pdflib?

2001-09-05 Thread Daniel Andersson
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

[PHP] Re: Searching help

2001-09-05 Thread Daniel Masur
$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 *

Re: [PHP] Re: Question.

2001-09-06 Thread Daniel Masur
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]"

Re: [PHP] how to execute a php script thru a cron job

2001-09-06 Thread Daniel Rezny
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

[PHP] URGENT: imap_fetchbody CRLF trouble

2001-09-07 Thread Daniel Reichenbach
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

[PHP] cURL support

2001-09-08 Thread Daniel Baldoni
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-

Re: [PHP] cURL support

2001-09-10 Thread Daniel Baldoni
... 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. -- -------+

[PHP] Thumbnail gallery

2001-09-14 Thread Daniel Alsén
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

[PHP] searching trought multiple tables

2001-09-17 Thread Daniel Masur
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

[PHP] Help with database queries

2001-09-17 Thread Daniel Alsén
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

[PHP] Replacing datafile with array

2001-09-18 Thread Daniel Alsén
getting the word 'Array' at the start? $handle=opendir('.'); while (false !== ($file = readdir($handle))) if ($file != "." && $file != ".." && ereg(".jpg",$file)) { $retVal[count($retVal)] =

RE: [PHP] Re: Replacing datafile with array

2001-09-18 Thread Daniel Alsén
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

RE: [PHP] Re: Replacing datafile with array II

2001-09-18 Thread Daniel Alsén
- > 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

RE: [PHP] Re: Replacing datafile with array Sorry... .)

2001-09-18 Thread Daniel Alsén
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

[PHP] Combining strings?

2001-09-19 Thread Daniel Alsén
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

RE: [PHP] Combining strings?

2001-09-19 Thread Daniel Alsén
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]

[PHP] More Image gallery

2001-09-20 Thread Daniel Alsén
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

RE: [PHP] about image gallery

2001-09-20 Thread 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

[PHP] Even more image gallery

2001-09-20 Thread Daniel Alsén
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

[PHP] Grabbing

2001-09-21 Thread Daniel Alsén
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

[PHP] Quickie

2001-09-21 Thread Daniel Alsén
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

RE: [PHP] writting into a text file

2001-09-21 Thread Daniel Alsen
"; } ?> 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; #

[PHP] eregi_replace problem

2001-09-21 Thread Daniel Goldin
? $welcome_html = eregi_replace("\[c]","",$welcome_html); $welcome_html = eregi_replace("\[ec]","",$welcome_html); Any help gratefully appreciated. Daniel Goldin [EMA

RE: [PHP] eregi_replace problem

2001-09-22 Thread Daniel Goldin
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

[PHP] OT need ImageMagick utility

2001-09-23 Thread Daniel Baldoni
el platform. Thanks for any help. Ciao. -- -------+- Daniel Baldoni BAppSc, PGradDipCompSci | Technical Director require 'std/disclaimer.pl'| LcdS Pty. Ltd.

[PHP] CURL

2001-09-24 Thread Daniel Demacek
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

[PHP] REPLACE problem

2001-10-03 Thread Daniel Alsén
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

RE: [PHP] REPLACE problem

2001-10-03 Thread Daniel Alsén
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

[PHP] open_basedir and Apache virtual hosts

2001-10-03 Thread Daniel Lacroix
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

[PHP] Adding zeros to date

2001-10-05 Thread Daniel Alsén
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

[PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Daniel Kullik
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

Re: [PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Daniel Guerrier
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

RE: [PHP] Number validation again...

2004-07-30 Thread Daniel Purdy
[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

[PHP] Problem Removing Text Updater Password

2004-08-04 Thread Chad Daniel
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

[PHP] dynamic RAM file for real media

2004-08-05 Thread Daniel Guerrier
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=

[PHP] Header list

2004-08-08 Thread Daniel Guerrier
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!

[PHP] SimpleXML

2004-08-19 Thread Daniel Schierbeck
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

[PHP] Overloaded Class & The __tostring() Method

2004-08-20 Thread Daniel Schierbeck
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])) {

Re: [PHP] Overloaded Class & The __tostring() Method

2004-08-20 Thread Daniel Schierbeck
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

Re: [PHP] SimpleXML

2004-08-20 Thread Daniel Schierbeck
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

Re: [PHP] Get reference count on a variable.

2004-08-21 Thread Daniel Schierbeck
nce = clone $obj; Cheers, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get reference count on a variable.

2004-08-21 Thread Daniel Schierbeck
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();

[PHP] Class Con- and Destructor Inheritance

2004-08-22 Thread Daniel Schierbeck
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"; }

[PHP] Re: OO in PHP5.0 - Referencing Object or not?!

2004-08-22 Thread Daniel Schierbeck
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

[PHP] Re: Text from file into database

2004-08-22 Thread Daniel Schierbeck
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,

[PHP] Re: OO in PHP5.0 - Referencing Object or not?!

2004-08-22 Thread Daniel Schierbeck
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

Re: [PHP] Class Con- and Destructor Inheritance

2004-08-23 Thread Daniel Schierbeck
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

[PHP] Re: Cookie behaviour

2004-08-23 Thread Daniel Schierbeck
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();

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Daniel Schierbeck
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

Re: [PHP] system command

2004-08-24 Thread Daniel Schierbeck
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

<    5   6   7   8   9   10   11   12   13   14   >