[PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
John W. Holmes propably said: > Do you have a session_start() on the page? It looks like you have a > trans_sid enabled. PHP will add that to all of your URLs > automatically. Can you disable it in php.ini? Yes trans_sid is enabled and i have a session_start on the page. What is trans_sid doing

SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
To reply to myself .) I disabled trans_sid on the actual site by using: ini_set('session.use_trans_sid',false); session_start(); But i still want to know what trans_sid does for me. What am i missing out on when not using it? - D, loves google -- PHP General Mailing List (http://www.php.n

SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
Justin French propably said: > You'd loose session for those without cookies. The work around for > this would be to hard-code the session ID to all URLs across your > site for all pages you wish to carry a session through -- a real pain. Indeed. > It HAS TO use a session ID from the first pag

SV: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
Justin French propably said: > In order to set and then check a cookie, you need to go through a > page... so you'd have to set something in the URL like ?cookieset=1 > anyway, in order to knwo you had set it, in order to check it. > > In other words, you'll need some guff in the URL, in order f

SV: [PHP] --enable-trans-sid ?

2002-10-03 Thread Daniel Alsen
[EMAIL PROTECTED] propably said: > I am trying to re-compile php 4.2.2. It seems that the option > "--enable-trans-sid" is no longer there (but still in the manual). > The reason for a re-compilation is that I was not able to have SID > printed out. Here is the code I tried, but SID is empty: se

RE: [PHP] Undefined variable

2002-10-09 Thread Daniel Kushner
Try using $_POST['name'] or $_GET['name']. E.g.: Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October

RE: [PHP] Re: MySQL back up

2002-10-09 Thread Daniel Masson
uuser -ppassword databasename > filename.sql Y think tou should use: Mysqldump -u user --password user_password > filename.sql I had an expirience with perl trying like John "mysqldump -uuser -ppassword databasename > filename.sql" did not work, i think you have to send the p

RE: [PHP] Re: MySQL back up

2002-10-10 Thread Daniel Masson
gt; $backupdir/$nam.sql"); Please not the space after -u And i agree owen about 2. $backupdir MUST BE writeable by apache IT HAS TO WORK MAN !! Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTECTED] www.imagine.com.co Tels: (57)(1) 2182064 - 6163218 Bogotá - Colombia

RE: [PHP] Animation in PHP

2002-10-10 Thread Daniel Masson
No way man !! hai , I want to create an animated line in php from (x,y) to (x1,y1).will php support animation.if so how do i go about in doing this.how do i draw a char so that it keeps on changing colors till i close browser. thanks for help Arun

RE: [PHP] Problems with Fileupload

2002-10-10 Thread Daniel Masson
Sascha: I worked on a web based file share system, .. Users had to select the file(s) to share and start uploading to the remote servers, had, timeout problems, size problems, etc. This users are inside an intranet, so i started to use the php ftp functions, so i placed the web based application

[PHP] Win nt logon user how to ?

2002-10-11 Thread Daniel Masson
) ... this variable is not on enviroment list. is it possible what i want to do ?? Thanks every1 !! Regards Daniel. -Mensaje original- De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 11 de octubre de 2002 8:49 Para: Cole Tuininga CC: [EMAIL PROTECTED] Asunto: Re:

RE: [PHP] =.jpg from another URL with PHP=

2002-10-11 Thread Daniel Kushner
Save your first bit of code in a file (e.g.: image.php) Your HTML file should look like this: ... . Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Anthony Ritter [mailto:[EMAIL

RE: [PHP] Win nt logon user how to ?

2002-10-11 Thread Daniel Masson
Thanks, im just wondering ... There are some ASP scripts in this same server and they get the variable perfetcly, the directories have the same config, i dont know whats wrong with this, maybe beacuse the gateway is CGI ??? Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTEC

RE: [PHP] Progress bar for uploading files

2002-10-16 Thread Daniel Masson
size everytime. Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTECTED] www.imagine.com.co Tels: (57)(1) 2182064 - 6163218 Bogotá - Colombia - Soluciones web para internet e intranet - Asesoría y Soporte Técn

[PHP] preg_replace and eval

2002-10-28 Thread Daniel Pupius
Hey there, We have a class that sets up a tree structure that represents an e-learning object made up of nested "components". We have a function getPropertyValue($name) which returns the property $name for the current component. Now, we want to allow the user to use something like {parent.proper

RE: [PHP] Apache authentication and adding a user.

2002-10-28 Thread Daniel Kushner
Try this: http://phpclasses.websapp.com/browse.html/package/387.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October

RE: [PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread Daniel Kushner
AddType application/x-httpd-php .php .html (in the httpd.conf file) Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October

RE: [PHP] Smarty functions help

2002-10-29 Thread Daniel Masson
Thanks a lot man !! It worked perfecly !! > Im using smarty template engine .. Id like to know if theres a way to > place php functions, specifically nl2br(), into smarty templates .. > Not in php script that calls smarty class. Take a look at the modules/ folder in Smarty. You can crea

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Daniel Guerrier
Paste into notepad, the copy the text from notepad. Notepad should remove the high ASCII text. --- Brent Baisley <[EMAIL PROTECTED]> wrote: > I think you have posted before and probably didn't > get an answer. I'm > not going to give you an answer (because I don't > have one), but perhaps > I ca

[PHP] Theory question

2002-11-01 Thread Daniel Masson
ributes it has 10 attributes Thanks Any help would be very useful. Daniel. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Free MySQL Hosting :)

2002-11-19 Thread Daniel Masson
AWSOME !!! Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTECTED] www.imagine.com.co Tels: (57)(1) 2182064 - 6163218 Bogotá - Colombia - Soluciones web para internet e intranet - Asesoría y Soporte Técn

[PHP] Php search results

2002-11-21 Thread Daniel Masson
Hello everyone ... Im working on some kind of search engine for two little tables on text fields on mssql, and the text fields can be very large fields, im doing the search with SELECT FIELD FROM TABLE WHERE FIELD LIKE '%SOMTHING%' .. My question is: When displaying the search results i dont wan

RE: [PHP] help needed with forms

2002-11-21 Thread Daniel Masson
My advice is USE JAVASCRIPT Cordialmente Daniel Massón => Ingeniero de desarollo [EMAIL PROTECTED] www.imagine.com.co Tels: (57)(1) 2182064 - 6163218 Bogotá - Colombia - Soluciones web para internet e intranet - Asesorí

[PHP] HTTP_RAW_POST_VARS

2002-06-04 Thread Daniel Kushner
This variable isn't getting populated! Environment: PHP 4.1.2 Linux Apache always_populate_raw_post_data is on (php.ini). Any ideas? --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Speed comparison of PHP vs. PERL (not conclusive)

2002-06-05 Thread Daniel Grace
e continue(2) is actually a tiny tiny bit slower (we're talking around 0.010s over a 1-iteration loop on a 700 mhz machine here) than doing it by hand the old way. With an amount that small though, I'm more inclined to believe it's just statistical error/random variance than anything else. -- Daniel Grace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP Question in PHP

2002-06-05 Thread Daniel Tryba
tly to the browser (echo/print...), IMHO you shouldn't do that at all but let retrieve() return a string/array/whatever. But that's up to you :) -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Stripping illegal characters out of an XML document

2002-06-06 Thread Daniel Pupius
Hi there. I'm working with RDF/XML that is strict on what characters are allowed within the elements and attributes. I was wondering if anyone had a script that processed a string and replaced all illegal-characters with their HTML code, for example "&" is converted to & and " to ". It should also

Re: [PHP] Stripping illegal characters out of an XML document

2002-06-06 Thread Daniel Pupius
cessor. However, I'd like IE to be able to view the XML file just for completeness. Da "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, Jun 06, 2002 at 12:47:57PM +0100, Daniel Pupius wrote: > &g

Re: [PHP] How can i resize images after upload?

2002-06-07 Thread Daniel Pupius
Why not use PHP's built in image library: http://www.php.net/manual/en/ref.image.php -- it's pretty cool. The resample function doesn't exist in some old install but it's quite easy to write your own -- just doesn't run as fast as a compiled version. Dan -- PHP General Mailing List (http:/

[PHP] Re: ssl security question

2002-06-08 Thread Daniel Grace
and thus someone with access to the history can determine their username/password. POST would really be a better method to use here in this case. -- Daniel Grace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Search a flat file.

2002-06-08 Thread Daniel Grace
Be warned that explode won't work as expected if any of your fields contain colons, though it doesn't look like it'll be an issue in this sort of case. "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use the explode() function based on the colon

Re: [PHP] converting C to PHP

2002-06-12 Thread Daniel Tryba
(preg_match("/^\s*(\+|-)?(\d+)/",$str,$match)) { return intval($match[1].$match[2],10); } else { return false; } } $format="012L20W2P"; $int=skipf($format); $int is 12 in this example. -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting C to PHP

2002-06-12 Thread Daniel Tryba
> > (Actually, to get the number, I could just do "$cp-0" or "$cp*1" - gotta > love variants) >From your example I got the impression you are only interested in multiplier -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP Compression

2002-06-14 Thread Daniel Tryba
On Fri, Jun 14, 2002 at 08:58:29AM +0100, Webmaster do Aborla.net wrote: > I would like to know how can I compress the output of PHP through Zlib. You mean like: http://www.php.net/manual/en/function.ob-gzhandler.php -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] saving a jpeg via HTTP

2002-06-15 Thread Daniel Tryba
7;t > viewable. Are you using the binary safe fread/fwrite()? Didn't forget to fclose() the output file? This works for me: -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] saving a jpeg via HTTP

2002-06-15 Thread Daniel Tryba
On Sat, Jun 15, 2002 at 06:02:58PM +0200, Daniel Tryba wrote: > This works for me: Hmmm, one while(!feof()) to many not that it really matters :) -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mass sql update array

2002-06-21 Thread Daniel Hoffman
record that has changed. I really need some help on how to do this. Help off list would be appreciated. - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advantage of CURL over using LYNX

2002-06-26 Thread Daniel Tryba
), depending if you just need the source from that cgi or need to mangle it a little? Using PHP build-ins will most likely be faster or at least nicer for your resources. IMHO (never used it) curl is only needed when you need to something fancy like post/put requests. -- Daniel Tryba -

Re: [PHP] Content-Length

2002-07-04 Thread Daniel Tryba
n of the response the php returns, but how do I reference > the result of a php page to get a strlen from it?? You didn't dig far enough, since there is an example of exactly what you want on: http://www.php.net/manual/en/function.ob-get-length.php Isn't the online reference need? :)

[PHP] Credit Card Processing

2002-07-15 Thread Daniel Guerrier
Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.ph

[PHP] Credit Card Processing - Take Two

2002-07-15 Thread Daniel Guerrier
Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com --- Begin Message --- Can anyone recommen

[PHP] New York PHP Presents: Implementing an Object-based Web Framework in PHP

2002-07-17 Thread Daniel Kushner
Posted by Daniel Kushner (on behalf of Hans Zaunere) New York PHP Presents: "Implementing an Object-based Web Framework in PHP" NYPHP's monthly meeting is a week away (7/24), and after an informal networking event last month, we're excited to offer what certainly will

[PHP] Amazon Web Service implemented in PHP

2002-07-21 Thread Daniel Kushner
http://www.amazonlite.com/ --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Temporary Mirror for PHP 4.2.2 Binaries

2002-07-22 Thread Daniel Kushner
Hi PHPers, To help along with the new PHP download crises I have added a temporary mirror: http://www.thehostingcompany.us/php/ Regards, Daniel Kushner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] randomly select a table, better way?

2003-09-01 Thread Daniel Bray
Ok, I have looked through the archives on both MySQL and PHP's lists, but I have not seen this asked or mentioned. Weird, I thought this would be a common thing. Is there a better way to randomly select a table from a database, than what I have come up with: Here is a random table: " . $table_a

Re: [PHP] randomly select a table, better way?

2003-09-02 Thread Daniel Bray
On Mon, 01 Sep 2003 22:49:55 +, Curt Zirzow wrote: > > Instead of looping through all the tables and building an array you > can do something like: > > $n = mysql_num_rows($result); > $seek = mt_rand(0, $n-1); > mysql_data_seek($result, $seek); > > > Curt So then the total code would be:

[PHP] read / unread system for my forum

2003-09-02 Thread Daniel Richter
Hi all i'm coding a little forum an now i want to make a read / unread system for the new posts and topics. Can anybody explain to me, how I can do that? mfg codemonkey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for a real good editor with some specific featrues ...

2003-09-07 Thread Daniel Szasz
at when wordstar was the best editor. Thanks a lot. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] posix pcntl_fork() and zombie/defunct issues

2003-09-12 Thread Daniel Souza
well... playing with fork() in a phpcli script, i got some troubles with childs... anybody knows how to dont get zombies/defuncts with SIGCHLD and SIGCLD ignoring ? dont worked for me =/ the script is large, so the main pieces of it.. i dont want to know how many childs are running, or if they ter

[PHP] Re: Calling functions from Button actions

2003-09-13 Thread Daniel Souza
$val) if (function_exists($key)) $key(); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Calling functions from Button actions

2003-09-14 Thread Daniel Souza
I dont use it. Its just an example. Thanks anyway. Daniel "Marek Kilimajer" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > I hope you don't use this method. It is VERY unsafe. You execute ANY > function that the user tells you. > > Daniel Souz

[PHP] Re: php sockets was Re: [PHP] socket_write eats data - solved

2003-09-15 Thread Daniel Souza
ime with the same results... well.. flush then may resolve it. Daniel Souza "Raditha Dissanayake" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi thomas, > > Thomas Weber wrote: > > >IMAP? We were talking about IRC, > > > Used imap as

[PHP] What is wrong with this code ?

2003-09-15 Thread Daniel Szasz
Hello What is wrong with this code ? $doWork = $_GET[doWork]; echo $doWork; echo ( ""); if ( $doWork = 0) { exit; } else { if ( $doWork = 1) { ?> http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help: undefined function: getproxy()

2003-09-16 Thread Daniel Ke
cho $result->snippet."\n"; } ?> Please help. By the way, other php file works fine. Thanks in advance. Daniel _ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multilanguage site: performance question: included file with cases?

2003-09-17 Thread daniel hahler
Hello listmembers, I'm building up a site which should be german and english. So I have a site object which remembers this choice during the session and do a include('lang_'.$site->lang.'.php'); in my topmost.php. This works good, but this file is growing and I thought about how to handle this

[PHP] Re: Splice problem

2003-09-18 Thread Daniel Souza
$input = array("red", "green", "blue", "yellow"); array_splice($input, 2); echo implode(',', $input); []'s Daniel Souza "Stevie D Peele" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > My problem is

Re: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-18 Thread Daniel Souza
Recompile php with built-in openssl support (--with-openssl) will do that. []'s Daniel Souza "Jay Blanchard" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] [snip] How to use file() function with an "HTTPS:\\www.example.com" [/snip] Use cURL http

[PHP] Re: How to use file() function with an "HTTPS:\\www.example.com"

2003-09-18 Thread Daniel Souza
Recompile php with built-in openssl support (--with-openssl) will do that. []'s Daniel Souza "Rodrigo Nakahodo" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > How to use file() function with an "HTTPS:\\www.example.com" > > &g

Re: [PHP] template problems

2003-09-18 Thread Daniel Souza
'news.txt', 'codestuffs' => cstuffs.txt', 'tits' => 'porn.txt', ); $page = $_REQUEST['PAGE']; include(((!isset($pages[$page])) ? $pages[$page] : "error.txt")); ?> =) Daniel Souza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: sdfs

2003-09-18 Thread Daniel Souza
Got it ! =) "Simon" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > sdfsdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using system

2003-09-18 Thread Daniel Souza
open with proc_open() and reads STDOUT "Uros" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hello! > > I'm pulling my hair. What is the right syntax to set output of some system > call to variable. > > I tried everything (system, shell_exec,exec) and always get output to > sc

[PHP] pcntl_fork() under linux with phpcli

2003-09-18 Thread Daniel Souza
:D ignoring SIGCHLD in perl works finely... is there anything about the "phped-layer" to syscalls access ? duh.. comments are welcome =) []'s Daniel Souza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multilanguage site: performance question: included file with cases?

2003-09-19 Thread daniel hahler
on Wed, 17 Sep 2003 21:08:31 + Curt Zirzow wrote: >> I'm building up a site which should be german and english. So I have a >> site object which remembers this choice during the session and do a >>include('lang_'.$site->lang.'.php'); >> in my topmost.php. CZ> I would suggest using gettext

[PHP] gettext: changed .mo file, caching issue

2003-09-28 Thread daniel hahler
Hello php-general, I init gettext with putenv('LANGUAGE='.$language); putenv('LANG='.$language); // Specify location of translation tables bindtextdomain ("messages", "./locale"); // Choose domain textdomain ("messages"); where $language is either "de" or "en". This works goo

[PHP] php & xvfb gives xauth command not found

2003-09-29 Thread Daniel Struck
properly when being executed manually. Does anyone by chance know how to resolve this problem? Best regards, Daniel Struck -- Retrovirology Laboratory Luxembourg Centre Hospitalier de Luxembourg 4, rue E. Barblé L-1210 Luxembourg phone: +352-44116105 fax: +352-44116113 web: http://www.retr

Re: [PHP] gettext: changed .mo file, caching issue

2003-09-29 Thread daniel hahler
on Mon, 29 Sep 2003 10:24:09 +0200 Christophe Chisogne wrote: >> This works good, but if the .mo file gets changed the old content is >> returned by calls to gettext, until I restart Apache. CC> gettext uses a caching method to speed up looking translation CC> strings, which explain why Apache mu

RE: [PHP] PHP OOP

2003-10-01 Thread Daniel Purdy
s: $a->b . "->c" Please, need advice on the finer points of OOP in PHP [/snip] Here is a link to an article that helped get me started on oop in php http://www.phpbuilder.com/columns/luis2420.php3 Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Daniel Guerrier
you need to configure your webserver recognize .cgi as a file to run the php interpreter against. i.e do whatever you did to make .php work again for .cgi --- John Wilcox <[EMAIL PROTECTED]> wrote: > On the topic of passing args, can someone please > explain to me why I'm unable to use $_GET or $

Re: [PHP] session experation

2003-10-09 Thread Daniel Guerrier
The session will die on browser close. What you are asking for is how to use cookies. You can set a cookie and use the information in that to determine user functionality http://us2.php.net/manual/en/function.setcookie.php --- Sam Folk-Williams <[EMAIL PROTECTED]> wrote: > Hi, > > I want to ext

Re: [PHP] Re: what is the best PHP editor?

2003-10-13 Thread Daniel Guerrier
http://www.phpedit.net It's good. How good, is up to you. --- Rob Adams <[EMAIL PROTECTED]> wrote: > I like EditPlus too, but recently I've been using > UltraEdit. > http://www.ultraedit.com/ > $35 registration. Has great column mode support. I > use the macros and > templates all the time. Ha

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Daniel Guerrier
It should be: echo $_GET['username']; You shouldn't have the dollar sign in the brackets. $ represents a variable the entire $_GET['username'] is the variable. --- Frank Tudor <[EMAIL PROTECTED]> wrote: > I have a URL including variables... It looks like > this: > > http://registration.php?use

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Daniel Guerrier
Who keeps telling people to use :) $_GET[$username] it should be $_GET['username'] $_GET is a key value pair array. the key is the name of the html form variable in this case username and the value is the value entered in the form. --- Adrian <[EMAIL PROTECTED]> wrote: > lol variables in quotes

[PHP] ob_get_length() returns uncompressed buffer length (after ob_start('ob_gzhandler'))

2003-10-21 Thread daniel hahler
Hello PHP, I found this small demonstration code on the net, that shows it really good. Call it with: wget --header="Accept-Encoding: gzip" --header="Connection: close" -S http://localhost/test.php on php-bugs I found that this is defined as "bogus", as the compression takes place after all o

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Daniel Guerrier
The second page should be \n"); echo { $_SESSION['bar'] }; ?> you're missing the session_start() You need it on every page that you plan to use session on. --- John Nichel <[EMAIL PROTECTED]> wrote: > Shaun Campbell wrote: > > I've got a problem getting sessions to work and I > wondered

Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Daniel Guerrier
Your right :) I think he's using the brackets instead of parenthesis in the echo's. Change the {} to () --- John Nichel <[EMAIL PROTECTED]> wrote: > Daniel Guerrier wrote: > > The second page should be > > > > > session_start(); > >

note: [PHP] ob_get_length() returns uncompressed buffer length (after ob_start('ob_gzhandler'))

2003-10-22 Thread daniel hahler
Hallo daniel, am Mon, 20 Oct 2003 13:45:18 +0200 schrieb ich bereits: dh> But I did not find an answer, how to correct this.. - using dh> ob_implicit_flush(); did also not help. is there no way to put header('Content-Length: '.$sth) in when you use ob_gzhandler in output buffer

Re: note: [PHP] ob_get_length() returns uncompressed buffer length (after ob_start('ob_gzhandler'))

2003-10-22 Thread daniel hahler
Hallo PHP-general list, on Wed, 22 Oct 2003 23:07:06 +0200 I already wrote: dh> Hallo daniel, don't want to talk only to myself.. this is for everyone.. :) -- shinE! http://www.thequod.de ICQ#152282665 PGP 8.0 key: http://thequod.de/danielhahler.asc -- PHP General Mailing Li

Re: [PHP] PHP not remembering sessions

2003-10-23 Thread Daniel Guerrier
Use $_SESSION['var'] instead of $_SESSION["var"] --- "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a problem with PHP not remembering sessions. > for example: > > in page1.php: > > $_SESSION["var"] = "Please help"; ?> > >maxleng

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Daniel Guerrier
When you make a file using data from what source? --- Bas <[EMAIL PROTECTED]> wrote: > Any help appreciated. > > Regards, > > Bas > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!?

Re: [PHP] php IDEs

2003-10-24 Thread Daniel Guerrier
zend.com has one and PHPEdit use what you like. --- "Lai, Kenny" <[EMAIL PROTECTED]> wrote: > can anyone recommend a good, and -free- PHP ide? > > thanks > kenny > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Daniel Guerrier
http://us3.php.net/manual/en/function.addcslashes.php --- Bas <[EMAIL PROTECTED]> wrote: > A textarea. > "Daniel Guerrier" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > When you make a file using data from what source? > > ---

[PHP] nested tree

2003-10-31 Thread Daniel Demacek
Hi all, I have a sorted associative array that represents nested tree in the form of (note: parent=0 is the top level): $ar[0]['id']=1; $ar[0]['parent_id']=0; $ar[0]['name'] = 'john'; $ar[1]['id']=4; $ar[1]['parent_id']=1; $ar[1]['name'] = 'mary'; $ar[2]['id']=7; $ar[2]['parent_id']=1; $ar[2]['

AW: [PHP] Uploading Files!

2003-11-03 Thread Daniel Diehl
="file" and then a program that should get the > varibles > [name] and [tmp_name] using $_POST. For some reason it's not working. > Could > someone tell me how to do it, or what I'm doing wrong? [Daniel Diehl] Take a look at http://www.php.net/manual/en/features.f

Re: [PHP] Re: Handling checkboxes that aren't checked!!!

2003-11-04 Thread Daniel Clark
s the variable is 'undefined'. How can I >> test For checkbox's I like to have a HIDDEN checkbox. With the hidden name and value, I'll always have at least a blank form variable passed. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text input truncated

2003-11-04 Thread Daniel Clark
> $xyz = "Hello World"; > > echo ""; > > ?> > > The text box shows up with "Hello" NOT "Hello World". How do I get the > entire variable? I would try single quotes here. $xyz = 'Hello World'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Table statistics

2003-11-16 Thread Daniel Harik
Hello, I have table with messages, and i have users table, the are linked via PK UserID -> UserID, what i need is to select Messages for current month and calculate top 5 posters list for current month. I have create following query but it's not complete: SELECT Handle, Screen_Name from MBoard

RE: [PHP] date question

2003-11-19 Thread Daniel Purdy
Hello all, I would like to create a php function as follows: function get_next_dates($ndays) { /* 1. get the current date 2. create an array say $results 3. Store the dates for the next $ndays in $results */ return $results } So in my main program I can include th

[PHP] ldap_search() question

2003-11-23 Thread Daniel Baird
packages weren't around when I built my system!) Cheers Daniel -- = Daniel Baird JCU Bookshop = = Systems AdministratorJames Cook University = = [EMAIL PROTECTED] Townsville Q 4811 = = http://bookshop.jcu.edu.au =

[PHP] apache 2.0.47 apache2filter PHP 4.3.4 solaris & linux

2003-11-25 Thread Daniel Sand
n my httpd.conf AddOutputFilter PHP html AddInputFilter PHP html AddOutputFilterByType PHP application/x-httpd-php Regards Daniel -- -- Pixelpark AG . . . . . . . . . . . . . . . . . . . . . . . . . Daniel Sand . Webmaster . http://www.pixelpark.com rotherstr. 8 . 10245 Berlin . Germany phone

[PHP] PHP+FreeType installation headaches

2003-11-25 Thread Daniel Hansen
I am having a bear of a time getting FreeType compiled into PHP. I have successfully installed the RPM: [EMAIL PROTECTED] rpms]# rpm -U freetype-2.1.3-6.i386.rpm [EMAIL PROTECTED] php-4.3.1]# rpm -q freetype-2.1.3-6 freetype-2.1.3-6 I know I need the "--with-freetype-dir=" argument in configur

Re: [PHP] PHP+FreeType installation headaches

2003-11-26 Thread Daniel Hansen
Jason Wong wrote: With RHL you probably want: --with-freetype-dir=/usr I tried that -- no luck. But the libfreetype* files are in /usr/lib Someone else suggested installing the FT devel rpm (which I had not done earlier due to a download problem). I am trying that now. We'll see! Thanks

Re: [PHP] PHP+FreeType installation headaches

2003-11-26 Thread Daniel Hansen
Jason Wong wrote: On Wednesday 26 November 2003 15:06, Daniel Hansen wrote: Jason Wong wrote: With RHL you probably want: --with-freetype-dir=/usr I tried that -- no luck. But the libfreetype* files are in /usr/lib Someone else suggested installing the FT devel rpm (which I had

[PHP] replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread daniel hahler
Hello PHP-list, I'm building a script, that provides a honeypot of invalid email addresses for spambots.. for this I want to provide a macro for the templates that looks like %rand[x]-[y]%, where [x] and [y] are integers, that specify the length of the random script. My first thoughts were about t

Re: [PHP] replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread daniel hahler
on Tue, 2 Dec 2003 23:33:47 + Richard Davey wrote: RD> Just so we're clear on this - you're creating a string (an email RD> address) of a million characters? I don't know my mail RFC's that well, but RD> I'm sure this is well beyond what it considers "standard". We're not clear.. ;) the funct

Re: [PHP] Re: replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread daniel hahler
on Wed, 3 Dec 2003 10:54:10 +1100 Luke wrote: L> result on my laptop for default script settings L> (P4 2.66, 512mb ram) L> 20 L> loaded in: 1.3158s thanks for the test.. L> please tell me what you think of this? if you like it i can email it to you L> (as a php file) Looks good, I have alr

Re: [PHP] replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread daniel hahler
on 02 Dec 2003 18:56:28 -0500 Robert Cummings wrote: RC> I missed the original post, and I'm too lazy to go looking, but the RC> following code runs in approx. 2.75 seconds on my Athlon 2400 running RC> linux: it is 4.3 seconds on xp 1600+.. RC> $chars = '0123456789' RC> .'abcdef

[PHP] What do you say to someone who says...

2003-12-04 Thread Daniel Pupius
What do you say to someone who says: "PHP is just a kiddie language"? (Source: http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=19373) PHP is currently my strongest development language and it annoys me that it is a much less bankable skillset than .NET and Java. How long do you think it'

Re: [PHP] replace %rand[x]-[y]% macro in string with random string

2003-12-04 Thread daniel hahler
on Tue, 2 Dec 2003 23:46:33 +0100 I already wrote, regarding replacing macro %rand[x]-[y] with random of random length ([x]-[y]). Before, I had my own (slow!) procedure to find next occurence of the macro and generated a new string, which was returned. This took about 15 seconds for 10.000 addres

[PHP] spambothoney: script to pollute spammer's databases

2003-12-08 Thread daniel hahler
Hello PHP-list, I proudly announce the first release of my first PHP script: spambothoney. It provides a class to generate different types of email addresses (random invalid, combination of users/hosts, with spambots IP/host, "binary" output) and is meant to pollute the crawling spambots that har

Re: [PHP] Leechers...

2003-12-09 Thread daniel hahler
on Tue, 9 Dec 2003 12:49:56 + [EMAIL PROTECTED] wrote: TPrsc> I want to now be able to stop people from linking to the images directly, TPrsc> and only be able to access the images via my site... With Apache you can either use mod_rewrite: RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_R

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