[PHP] Create login procedure...

2002-09-24 Thread Christian Ista
Hello, I change the procedure to create an account for users. For the moment, the user (to create and log in), have to create an account with e-mail + password. I'd like to create a procedure to check the e-mail (login) validity. But I'd like to check if the e-mail used exist or not. The proc

[PHP] Send mail in HTML

2002-09-27 Thread Christian Ista
Hello, I use the mail function to send mail. On my development PC, I receive the mail in HTML, with the high priority,... I put the files on the production server, a linux machine, when I receive the mail is not in HTML but in plain text, I don't see the high priority. I receive that : Content-

[PHP] exec issue - return value 127

2002-09-27 Thread christian haines
php.ini settings? any help would be greatly appreciated! many thanks in advance, christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exec issue - return value 127 (more)

2002-09-27 Thread christian haines
ok.. i found that i need to check the httpd error_log and it tells me that it can't find the file or directory for the command. how do i fix this? i tried a full pathname to the command but it still says it cannot find dir or file etc c. Christian Haines wrote: > hi all, > >

[PHP] Re: exec issue - return value 127 (more and more)

2002-09-27 Thread christian haines
ini_set function to turn safe mode off but this appears not to work suggestions would be great as this is driving me nuts! cheers c. Christian Haines wrote: > ok.. i found that i need to check the httpd error_log and it tells me that > it can't find the file or directory for the comma

[PHP] setuid, locked data, security

2002-09-30 Thread Christian Kaiser
gards, :-)hris -- Christian Kaiser -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Manager SQL error

2002-09-30 Thread Christian Ista
experience in this domain (error catching) Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mime type list

2002-09-30 Thread christian haines
hi all, i have been looking around on the net for a relatively complete mime-type listing (possibly showing extensions) but have not come across anything. does anyone know of such a list or where i could obtain one? who looks after such a list might be a better question. many thanks christian

Re: [PHP] mime type list

2002-09-30 Thread christian haines
cheers for that... that listing should do the trick it was right under my nose as usual also thanks for your reply in my other post christian Marek Kilimajer wrote: > I know about /etc/mime.types, does that help? > > christian haines wrote: > > >hi all, > > >

[PHP] force download and file size issue

2002-10-03 Thread christian haines
close($fp); < my code this is a memory issue in the php.ini i.e. memory_limit = 8M then the largest file i can download is 8M is there anyway to "force" a download without having to use the system hungry fpassthru function? this is driving me nuts so any help would be greatly appreci

Re: [PHP] force download and file size issue

2002-10-03 Thread christian haines
thanks rasmus, i have tried read file but it gave me the same issues as fpassthru.. both cap on the memory_limit directive withint the php.ini file any other suggestions maybe? cheers christian Rasmus Lerdorf wrote: > readfile() > > On Fri, 4 Oct 2002, christian haines wrote: >

Re: [PHP] force download and file size issue

2002-10-03 Thread christian haines
with this code? i have tried it with win ie 6 and mac ie 5.1.2 and ns 4.7.. same issue cheers christian Rasmus Lerdorf wrote: > readfile() reads 8k blocks at a time and dumps them out. It does not read > the entire thing into ram, so that wouldn't be what was causing you to hit > a

[PHP] Re: Mime Types

2002-10-03 Thread christian haines
you could use the command "file -bin your_filename" and capture the output using popen or exec. i have found this to work well.. seee below function mimetype($file) { // execute command $fp = popen("file -bin $file","r"); // determine mimetype to output if(!$fp) { // defaul

Re: [PHP] force download and file size issue

2002-10-04 Thread christian haines
PHP Version 4.1.2 Red Hat Linux release 7.3 (Valhalla) (Kernel 2.4.18-3 on an i686) Apache/1.3.23 Rasmus Lerdorf wrote: > Which OS and which PHP version? > > On Fri, 4 Oct 2002, christian haines wrote: > > > this is what i have exactly in my code... > > > > hea

Re: [PHP] force download and file size issue

2002-10-04 Thread christian haines
thanks for all your help and that last suggestion. it helped me isolate the issue. which i believe relates to a header previously sent.still debugging it but got a simple vers running cheers christian Rasmus Lerdorf wrote: > Which OS and which PHP version? > > On Fri, 4 Oct 2002,

[PHP] MySQL>Limit size

2002-10-05 Thread Christian Ista
where the textarea will be stored to LONGTEXt or LONGBLOB but I have all the time the same problem. Is it a MySQL limit problem ? or form (textarea) problem ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL>Limit size

2002-10-06 Thread Christian Ista
> Are you using POST or GET for your form? Show some code... I use get. But I tried to post and look ok. Why this difference ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] detecting POST variables

2002-10-07 Thread christian haines
maybe try... print ""; print_r($HTTP_POST_VARS); print ""; this will dump the entire post var array to the browser.. similar to functions before but faster. Christian Haines Internet Developer MITOUSA. Branding Strategies for Visual & Interactive Design 102 Tyn

[PHP] Put an query in a DB field

2002-10-08 Thread Christian Ista
Hello, I change my code to catch error query. I have a table with 4 files (Query, Error_no, create_date, create_time). When I have an error on a query, I call a page and I add a row in a table log_query. The query (with error is like that) : $query=" SELECT auteur.NO AS AUTEUR_NOM, auteur.PR

[PHP] Trouble wirh < in a string

2002-10-11 Thread Christian Ista
Hello, I have a small problem a string I have for example : $myvar= "hellhttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] An small SQL problem

2002-10-12 Thread Christian Ista
;not exists" without success. Could you help me ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image resize

2002-10-13 Thread Christian Ista
Hello, I have an image (selected via a form), I know the original size of this picture 800x600. I'd like when I put the files in the database resize to 240x180, or 120x90. How do that ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Read XML file

2002-10-16 Thread Christian Ista
hanks, Christian, '; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble with \\ and form

2002-10-16 Thread Christian Ista
ething like that : C:\\Directory1\\Directory2\\File.xml That's not work( the code to parse the XML file) But If you replace the the string by C:\Directory1\Directory2\File.xml That's work. Is there an easy way to change \\ by \ or an another solution Christian, -- PHP General Mailing

[PHP] Trasformazione XSLT

2002-10-25 Thread Agnoletto Christian
quot;Non posso creare il processo"); $cwd='file://'.dirname($_SERVER['SCRIPT_FILENAME'])."/"; xslt_set_base($xp,$cwd); if ($result=xslt_process($xp,"arg:/xml","arg:/xslt",null,$arg_buffer)){ echo $result; }else{ echo (&quo

[PHP] Add picture in DB

2002-10-28 Thread Christian Ista
e database or save the link to this picture un the database ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SQL>Insert and recover the ID

2002-10-31 Thread Christian Ista
help Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread Christian Ista
> use mysql_insert_id(). Much more reliable when and if you use the system > with more than one person inserting at the same time. Sure it's for that I ask Thanks for your help. Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Update PHP

2002-06-16 Thread Christian Ista
Hello, I have a dedied server (with linux RedHat 7.2) and PHP 4.1.2. I'd like to update to the version 4.2.1 Is it enought : tar -zxvf phpfile4-2-1.gz It's the first time I install PHP on linux in general I work on Windows. Bye -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] Update PHP

2002-06-16 Thread Christian Ista
> If you were the person who installed PHP before, then you probably > remember the process. It's a configure/make/make install process. Sure :) But I rent a dedicated server with all preinstalled, PHP, MySQL ... Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] RE4: Update PHP

2002-06-16 Thread Christian Ista
> Ok, if you're saying you do not have root access, then you have to > have someone with root access do it for you. I have root access :) > If you are saying that you didn't do it the first time and you don't > know how, then read the instruction manual or tutorial _very_ closely, > since it wi

RE: [PHP] Update PHP

2002-06-16 Thread Christian Ista
> You may want to do a phpinfo() on your existing installation, to > determine the configuration directives that were used. Likely, you > will want to use the same ones (or nearly the same) with this new > build. I have that : System Linux localhost.localdomain 2.4.7-10BOOT #1 Thu Sep 6 16:15:0

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Christian Rellstab
;>> both OS >>> X and 9. >>> >>> Thanks in advance, >>> Kevin >>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> >> >> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > |/ @ @ --oOO-(_)-OOo--- christian rellstab rotbuchstrasse 52 8037 zürich tel (p): 043 255 04 69 tel (g): 01 633 40 15 fax (g): 01 633 12 61 [EMAIL PROTECTED] http://www.rellstab.ch/christian ---

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Hmm.. who knows, Ive wasted to much time on this silly problem. I appreciate your help Curt, thanks. "Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Fixed the problem using "s" pattern modifier: '/regexp/s', without it,

[PHP] Apache and forward slash

2003-08-29 Thread Christian Calloway
Hey, I am setting up Apache 1.3.27 on a linux box (I really dont know much about linux) and I am having small problem. When a specify a subdirectory off of my document root, I must include a "/" forward slash in order for the index page to load, otherwise I get the "The page cannot be displayed" m

[PHP] variable in e-mail

2003-10-17 Thread christian tischler
I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] variables in e-mail 2nd

2003-10-17 Thread christian tischler
I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Some code I use . . . $messagepart1 = ' Free Subscrip

[PHP] Date to string (with mask)

2003-11-08 Thread Christian Ista
Hello, I have in a database a date field (this format yyy/mm/dd). I'd like when I display the value use an another format dd/mm/ (format in europ), could you tell me if there is a format DateString function ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net

[PHP] Reset auto_increment field

2003-11-11 Thread Christian Ista
Hello, It's not really a PHP question, sorry. How reset a MySQL auto_incrment field ? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] reload farmes

2003-12-02 Thread Christian Jancso
7;$station'"); header("Location: http://127.0.0.1/empty.php";); } } With HTML it is . But this doesn`t work here because I have sent the header already. Can anyone help me? TIA Christian --

[PHP] $_POST[$variable]

2003-12-11 Thread Christian Jancso
$i++; echo ""; echo "".""; echo $status_array[1]; echo ""; echo ""; echo ""."".""; echo ""; echo ""; } echo ""; echo

[PHP] Re: $_POST[$variable]

2003-12-11 Thread Christian Jancso
thx Mike that works :-) thx also to the others for their help :-)) Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql question

2004-01-15 Thread Christian Calloway
tiple tables from multiple databases being opened on every user query? Thanks in advance Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql question

2004-01-16 Thread Christian Calloway
he N number of products continues to increase). Any ideas? "Miles Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christian, > > A red flag is flying. > > Usually, when people start talking about how the number of tables will > multiply in an

Re: [PHP] mysql question

2004-01-16 Thread Christian Calloway
but I will do some digging myself. Thanks for the help Christian "Miles Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christian, > > I did a bit of digging in the MySQL docs to try and find the limits on > number of fields in a table, etc. Didn&#

[PHP] another mysql question, sorry

2004-01-19 Thread Christian Calloway
. Any comments? Thanks Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] BCDIV problems

2001-01-10 Thread Christian Fagerheim
Hello! I have some problems with my PHP script that utilizes the BCDIV function, and I was hoping some of you could be so kind as to help me solve it. To the problem: I use BCDIV to divide a string to a integer constant and it works great, unless the string is no more than 14 digits... I have tr

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Christian Reiniger
Does anybody know how to realise this? Write a custom browser for this and tell all your visitors to use it. Seriously - you can't control how the browsers buffer the received data, when they render it etc. That said - make sure that PHP output buffering is off -- Christian Reiniger LGDC Web

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Christian Reiniger
ot completely mistaken, so there shouldn't be a problem > sleep(1); >} >return; Your compiler should throw an error here - main is declared as "int" but doesn't return a value > } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those w

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Christian Reiniger
bligated to use VIM, My personal favourite is fte. Its only problem is that it doesn't have real PHP highlighting, but I got used to switching between HTML and C mode... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those who cannot,

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Christian Reiniger
ws without performing a second > SELECT in this format: look for mysql_num_rows () -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] PHP simulator

2001-01-11 Thread Christian Reiniger
t; notebook being too slow :) (granted - that computer here runs on Linux without any GUI, but still...) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match. - /. posting discussing the lik

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Christian Reiniger
> > $title > "; One reason why I don't like the "echo" route: I lose the syntax highlighting for the HTML that way. String constants should be highlighted as, well, string constants normally, but when they contain HTML code t

Re: [PHP] Simple form not passing variables, Why??

2001-01-13 Thread Christian Reiniger
On Saturday 13 January 2001 00:36, jeff fitzmyers wrote: > The code below does not work. What could be causing > Please enter user name here: > Pull out your favourite HTML documentation and read again through the discussion of the tag -- Christian Reiniger LGDC Webmas

[PHP] filemtime or getlastmod

2001-01-14 Thread Christian Binder
Hello, I would like to create a dynamic mulitple-choise - Form, in which the filenames, included in a subdirectory (e.g. imgstand) are listed as the Option-vale "value" and the modification-date of the file is shown in the HTML-page as date for selection of the user. If a user choise one or more

Re: [PHP] filemtime or getlastmod

2001-01-14 Thread Christian Reiniger
On Sunday 14 January 2001 17:54, Christian Binder wrote: > The only problem is, that my following script only shows one date (IMO: > of the first value (.)), and not create the date of each file. > // get unix-timestamp form each file in subdirectory > $unixdatum=getlastmod($datei

Re: [PHP] regular expression

2001-01-15 Thread Christian Reiniger
7;, '', $Address); // strip leading/trailing whitespace $Address = trim ($Address); // check for basic form return preg_match ('/^[^@]+@[\w-]+(\.[\w-]+)+$/', $Address); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software

Re: [PHP] Check browsers image displaying

2001-01-16 Thread Christian Reiniger
On Tuesday 16 January 2001 09:30, Vlad wrote: > Hi all! > How can I check (in PHP code) if the target browser supports image > displaying or not? PHP manual/misc. functions/get_browser() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that m

Re: [PHP] what is wrong with this sniplet?

2001-01-16 Thread Christian Cresante
I think it should be ... onClick='javascript:self.history.back()'... --- "Jacky@lilst" <[EMAIL PROTECTED]> wrote: > Hi people > Looking for a piece of advice about what is wrong > with this sniplet and what is the right one. I > tried to write the html using print(""); as below: > print(""); > p

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Christian Reiniger
y posted a solution for this (complete, working source code) some time ago. Here it is: Date: Fri, 5 Jan 2001 18:08:51 +0100 -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it&#x

Re: [PHP] Question concerning performance

2001-01-17 Thread Christian Reiniger
eky in th 0.1% range. Look at bigger optimizations first, then benchmark and if it still is too slow (and only then) optimize further. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka&

Re: [PHP] preg_replace pain!

2001-01-18 Thread Christian Reiniger
ove works for: > [b]bold text[/b] > > But does not work for: > [b]bold text > w/ newline[/b] add a "s" modifier to the expression and => $pattern = "/\[b\](.*)\[\/b\]/Uis"; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] a text formating & cpu question

2001-01-19 Thread Christian Reiniger
On Thursday 18 January 2001 23:05, Noel Akins wrote: > Question 2: > Is there a way for php to detect the cpu speed of a users computer? If you're on a Linux machine you can read /proc/cpuinfo and pick out the speed entry. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lg

Re: [PHP] Search Engines and PHP

2001-01-23 Thread Christian Reiniger
the heck do you build a dynamic site without URL variables, > cookies, or POST variables? Search phpbuilder.com for an article called "Writing dynamic pages with search engines in mind" or so. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compair

Re: [PHP] Newbie frustration!

2001-01-24 Thread Christian Reiniger
; ?> > > http://mysite.com/Yarns/"> Yarns Read http://www.phpbuilder.com/columns/tim19990117.php3 Basically you create "virtual directories", e.g. a PHP script named "Yarns" which simply include()s your one "real" script. -- Christian Reiniger LGDC Webm

Re: [PHP] file or fopen to fetch a web page???

2001-01-24 Thread Christian Reiniger
27;, file($url)); > > Probably about the same either way... Perhaps. In an earlier version of PHP I had a problem where the above code (fopen...) read *more* than the page length. I.e. the page was e.g. 20k big and the fread appended ~5k of junk to it. -- Christian Reiniger LGDC We

Re: WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Christian Reiniger
got the --with-apxs switch to ./configure Also , try doing a strip --strip-unneeded libphp4.so afterwards -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence. - Edsger W. Dijkstra

[PHP] Anyone who can help me making a loop of this?

2001-01-25 Thread Christian Sakshaug
Anyone who can help me making a loop of this? http://www.sakshaug.net/phps/loop.txt I have tried many things, but I can't get it perfect... Best Regards, Christian Sakshaug -- Email: [EMAIL PROTECTED] Web: www.sakshaug.net Tel: +47 913 95 618 -- PHP General Mailing

Re: [PHP] Splitting at word count

2001-01-26 Thread Christian Reiniger
On Thursday 25 January 2001 21:06, H. Wade Minter wrote: > Does anyone have a good idea on how to split after a certain number of > words? Attached is code that semi-intelligently limits strings to a certain number of characters. Perhaps that helps you. -- Christian Reiniger LGDC Web

Re: [PHP] Get rid of da Zero's

2001-01-26 Thread Christian Reiniger
floating-point value instead of as string) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] array size

2001-01-26 Thread Christian Reiniger
On Friday 26 January 2001 22:35, Giancarlo wrote: > > how many elements i can insert in an array? > thank you! I'd say up to 2^31 or until your memory is full (which is likely to occur earlier) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can ha

Re: [PHP] updating time fields

2001-01-26 Thread Christian Reiniger
" => MySQL already provides functions for that. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: [PHP] system() PHP newbie!!

2001-02-21 Thread Christian Reiniger
ere as TAB character. Write "C:\\temp.exe" instead. > send me an example or tell me what I am doind wrong? Any assistance is > very much appreciated, Well, it would help if you'd tell us what goes wrong - error messages, things it should do but doesnt ... -- Christian Reiniger

Re: [PHP] Deleting mySql records based on dates

2001-02-21 Thread Christian Reiniger
om table where datefield <= DATE_SUB(NOW(), INTERVAL $days DAY)", $dbh); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "These are the people who proudly call themselves "hackers" -- not as the term is now abused by journalists to mean a computer criminal, bu

Re: [PHP] Handling File Uploads : ASCII/Binary transfers

2001-02-22 Thread Christian Reiniger
I FTP. How can this be done with a PHP script??? ... but apparently you *want* it to mangle the data (convert line ends). You server is a Unix machine? What error does Mysql give you on the "broken" files? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God ---

Re: [PHP] Displaying an image, that is pulled from a DB, inline

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 17:09, Chris Lee wrote: > dspimage.inc > index.php > echo " > > "; > ?> Note: better name that to dspimage.php, as webservers typically don't execute *.inc -- Christian Reiniger LGDC Webmaster (http://sunsite.dk

Re: [PHP] Warning: page expired and cache-control header

2001-02-22 Thread Christian Reiniger
fterwards (including all his private data). Well, in practice proxies won't cache results of POST queries, but it's still a big security hole (never trust programs you don't admin yourself) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and s

Re: [PHP] I'm confused about Regular Expressions.

2001-02-22 Thread Christian Reiniger
with a backslash) because a dot in a regexp has a special meaning: "match any char". The escaping makes it behave as a literal dot The "$" means "here has to be the end of the string" (an "anchor") => the entire pattern means "match if the string ends

Re: [PHP] Print in html

2001-02-22 Thread Christian Reiniger
I.e. that doesn't work. Use the proper HTML entities for the brackets: <? readfile (""); ?> -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- 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]

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
t; For instance with the numbers above: > > > > PAGE 1: 50% > > PAGE 2: 25% > > PAGE 3: 25% > > > > Or is their a process by which to store numbers for easily getting > > this to work? > > SELECT (hitcount / 1000) * 100 AS percentage FROM sometable Bet

Re: [PHP] help change filename.

2001-02-22 Thread Christian Reiniger
something > like fopen? Well, Use PHP instead of COBOL... Sorry, but read some basic tutorials on PHP. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] Print in html

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:14, PHPBeginner.com wrote: > if it is in html then do this: > > > but if you are using PHP then echo 'http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
mplemented in PHP with only 4 lines? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- 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

Re: [PHP] size of directory

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:28, Andris Jancevskis wrote: > how can I determine size of directory with subdirectories? if I see > at "ls -l" it returns directory size 4096. I want to know how large > is directory (with files into) without looping all files ... ma

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Christian Reiniger
#x27;) . '.gif'", $contents); > ?> simpler that "/([-_a-zA-Z0-9]+)\.gif/e" is "/([-\w]+)\.gif/e" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google

Re: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Christian Reiniger
; that when I want to output the array I can reference it like so: > > echo("$array[$i]["course_num"] $array[$i]["course_title"]"); Change this to echo ("{$array[$i]['course_num']} {$array[$i]['course_title']}"); -- Christian

Re: [PHP] Global variables - please explain me someone.

2001-02-23 Thread Christian Reiniger
://foo.bar/test.php?answer=42 will call test.php with a global variable $answer set to "42" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Nothing is more dangerous than an idea if it's the only one you have. - Emil-Auguste Chartier, "Propos sur la religion

Re: [PHP] Parsing a string

2001-02-23 Thread Christian Reiniger
On Friday 23 February 2001 15:46, Hardy Merrill wrote: > Look up the "split" and "explode" functions - they both do basically > the same thing. > > $token_list = split(",", $string_to_parse); .. and if that doesn't suffice I can send you a nice&

Re: [PHP] MySQL execution order?

2001-02-23 Thread Christian Reiniger
DateTime = '-00-00 > >> 00:00:00') > >> UPDATE LOW_PRIORITY db_table SET > >> DownloadedDateTime=CURRENT_TIMESTAMP WHERE (DownloadedDateTime = > >> '-00-00 00:00:00') -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] array question

2001-02-23 Thread Christian Reiniger
On Friday 23 February 2001 17:02, Jeff wrote: > Is there better performance/speed instantiating an array with a > specified size and then adding elements versus adding elements to an > array with no size? Uh, you can't specify the size when instatiating an array ... -- Christian

Re: [PHP]

2001-02-23 Thread Christian Reiniger
On Friday 23 February 2001 19:27, Don Johnson wrote: > Yup. Go figure. > > Don Johnson > > > It works if you execute only the SELECT (without the UPDATE) ? > > > > Christian Reiniger > > LGDC Webmaster (http://sunsite.dk/lgdc/) > > > > On Friday 23

Re: [PHP]

2001-02-23 Thread Christian Reiniger
uery and check the order)? Perhaps you can also post the actual code.. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] regex help

2001-02-23 Thread Christian Reiniger
> anyone help me with this? Well, I prefer preg_* :) $mystring = preg_replace ('/<.*/', '', $mystring); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.ph

Re: RE: [PHP] special characters with perl,mysql,php

2001-02-24 Thread Christian Reiniger
e else already said, addslashes () is the tool of choice for the way in, and for he way out you don't need to do anything. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected." -- The Unix Program

Re: [PHP] Class methods in PHP

2001-02-24 Thread Christian Reiniger
our question, but I hope that some part of the above answers it... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected." -- The Unix Programmer's Manual, 2nd Edition, June 1972 -- PHP General

Re: [PHP] isset()

2001-02-24 Thread Christian Reiniger
t set. => isset () should be used. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected." -- The Unix Programmer's Manual, 2nd Edition, June 1972 -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] isset()

2001-02-25 Thread Christian Reiniger
. > > man, this is like the thread that will not die. isset() will return > true for an empty string, which is not what he wants. the right thing > to do is use > > if((isset($var))&&($var!="")) I never said *only* isset() should be used :) -- Christian Reiniger

Re: [PHP] My system don't store session data, anybody can help me!!

2001-02-26 Thread Christian Reiniger
me > configuration, don't work in my machine, everytime he say 1. Well, you never change $c, so it of course always says 1 -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Printing long strings

2001-02-26 Thread Christian Reiniger
to let the *browser* preserve the string (and not e.g. parse the "<" as start of a tag). htmlentities () ist the function of choice then... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List

Re: [PHP] isset()

2001-02-26 Thread Christian Reiniger
s "is set"? Is it > "introduced to the global namespace"? "introduced to the *current* namespace" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List (http://www.php.net/) To

<    1   2   3   4   5   6   7   8   9   10   >