[PHP] session_id and cookie settings

2004-03-02 Thread Torsten
de it that way, that non-independend from the cookie settings in the browser I always can be sure to have a really new session_id? Thank you, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] calculate the traffic size with php(like the apache access_log)

2003-01-09 Thread Torsten Rosenberger
Hello Is it possible to get the transfer (traffic) size from a webpage as is stands in the apache access_log file 127.0.0.1 - - [07/Jan/2003:13:01:58 +0100] "GET /~torsten/cups/pdf.php HTTP/1.1" 200 48 (size) When i work with outbut buffer i only get the html source size with ob_get

Re: [PHP] calculate the traffic size with php(like the apacheaccess_log)

2003-01-10 Thread Torsten Rosenberger
ility to read a part of the file and not the hole contend a time (like RPC or a database select) BR/Torsten Rosenberger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] True type font errors . Help me

2003-01-13 Thread Torsten Rosenberger
Hello > Warning: Could not find/open font in > /usr/home/hosting/b4u/public_html/congressos/fenasoft/ProgramacaoListar.php > on line 5 You must give the absolute path to your font dir for example /usr/home/hosting/b4u/fontsdir BR/Torsten -- PHP General Mailing List (http://www.php

[PHP] mktime with Feb or Jan ..

2003-02-03 Thread Torsten Rosenberger
nvert it in a timestamp with mktime but the problem is Feb ($t[1]) $lasttime = mktime($t[3], $t[4], $t[5], $t[1], $t[0], $t[2]); Is it possible to convert Feb in 02, BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Bechmarks with Caching technics

2003-02-20 Thread Torsten Rosenberger
larger files (600KB needs on the server around 3 sec) with and without Cache ?? BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dynamic classes or dynamic extends ?

2003-07-02 Thread Torsten Rosenberger
;m working with ITX_Templates, DB from PEAR and wenn i split the classes i must always assign the objects to the other classes. BR Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] track_vars in apache httpd.conf

2003-07-04 Thread Torsten Rosenberger
i don't know if you cann write this line in a ifmodule sektion ? this command only stands in sektion BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] memory consumption from a script

2003-07-27 Thread Torsten Rosenberger
Hello is it possible to find out the memory consumption on a php script ? I trie to develop a chat with php and SHM and want to fiend out how much memory is used to scale the chat server BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] user permission system (integer to small)

2003-03-26 Thread Torsten Rosenberger
So i cann't store it in mysql (possible are varchar) But to compare the perms they must have the type integer settype ($perm,interger) brings a wrong value in case that the number is greater as the BIGINT. Someone have a better solution ? or a way out. BR/Torsten Rosenberger -- PHP Genera

[PHP] preg split question

2003-03-27 Thread Torsten Rosenberger
Hello i'd like to split Benutzer_CRA.php to get CRA but sometimes the files are called Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA how cann i tell preg_split to split the string at the first occurence of _ and before .php BR/Torsten -- PHP General Mailing

[PHP] pear installation fails

2002-08-28 Thread Torsten Hahn
ethod return value in write context in /tmp/gopecc836o/PEAR/Command.php on line 134 Any Idea ? cu, Torsten. - -- Torsten Hahn / Chemnitzer Str. 4 / 09599 Freiberg / Germany mail: [EMAIL PROTECTED] phone: (+49) 177 2181338 pgp-key: http://www.physik.tu-freiberg.de/~hahn/pgp-key.txt -BEGI

[PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
ke: form method="post" [CONTENT] /form the out put get ugly ^M form method="post" ^M SERAVS toro^M ^M /form>^M BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
HTML Template IT and addBlockfile and thats the same. i fetched the content with tpl->get() and wrote it to a file the same form method="post" action="">^M ^M ^M Tmbp ^M ^M /form>^M BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
> So that program is writing \r\n as the newline instead of just \n. It's > still just your editor that's displaying the ^M. Maybe you should get a new > editor. i use vim and the input file don't have \r\n they look normal in vim after the preg_replace in php then they

[PHP] IE corrupts JPEG at HTML upload, imagecreatefromjpeg() doesn't work after upload

2004-01-23 Thread Torsten Roehr
ndows (98SE, 2000) and server is Linux/Apache 1.3. Any help appreciated! Big thanks in advance! Best regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php4 with imap support

2001-03-19 Thread Torsten Curdt
/lib/libcrypto.so.0 (0x40745000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2000) worf:~/install/php # Looks fine as well. I found something on the net that there should be a libpam entry... Sorry, don't understand why... Can anyone help and tell me what is wrong? -- Torsten

[PHP] How to substitute Java classes?

2001-04-02 Thread torsten plaul
the interpreter to use IE.Iona.OrbixWeb.CORBA.singletonORB intstead of org.omg.CORBA.ORBSingletonClass Is there any way to configure either PHP or Apache or even Java to do this !? Any help would be very appreciated from torsten plaul -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: JavaScript in PHP or PHP in JavaScript

2004-07-24 Thread Torsten Roehr
anx, > Robb Hi Rob, maybe you can use the ternary operator syntax for the affected lines: echo (conditional) ? 'lines of JavaScript' : 'other lines of JavaScript'; Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Embedding JavaScript into a PHP generated web page

2004-07-25 Thread Torsten Roehr
o a solution? > > Thanks, > Rob Hi Rob, usually it works by just putting plain JS/HTML into the page outside of the php code sections. But without seeing any code we cannot help you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Torsten Roehr
serID='{$_SESSION['logname']}'"; Or concatenate the string: $MembersDataQry = "SELECT * FROM MembersData WHERE UserID='" . $_SESSION['logname'] . "'"; Remember to apply mysql_real_escape_string() on any values used within a query. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with PEAR DB & MySQLi

2004-07-26 Thread Torsten Roehr
urse). I'm getting "DB unknown error" messages after the query. The > same query from the mysql client works fine, there are no connection > problems... anyone has tried PEAR with mysqli?. Hi, you should ask this on the PEAR general mailing list. Regards, Torsten Roehr >

[PHP] Re: is_numeric questions

2004-07-28 Thread Torsten Roehr
n. Thanks. > Jeff It surely will not allow a dollar sign. Otherwise just test it with various values! You might take a look at PEAR::Validate for checking *true* numeric values: http://pear.php.net/package/Validate Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To un

[PHP] script seize memory in while loop

2004-08-04 Thread Torsten Rosenberger
"VALUES ($data[1],$data[2])"; unset ($sql); } only the building of the string consumes more memory in every loop !? I don't know what to do BR/Torsten Rosenberger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Barcode info anyone...

2004-08-05 Thread Torsten Rosenberger
ubmit. i have scanners from Metrologic Orbit http://www.barcodeisland.com/ean13.phtml http://www.strichcodeservice.at/andere_check_digits.htm http://www.ean.co.at/ you easy test open notepad or under linux kwrite and scan br/torsten > > Any pointers, urls, advice, hardware suggestions

[PHP] Re: Getting data from table as a tree

2004-08-05 Thread Torsten Roehr
PEAR packages might help you: http://pear.php.net/package/DB_NestedSet http://pear.php.net/package/Tree Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need Some Direction

2004-08-05 Thread Torsten Roehr
7;s LiveUser: http://pear.php.net/package/LiveUser Takes a bit of time to set up but should be exactly what you are looking for. It handles user authentication (login), session timeout and user rights. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting data from table as a tree

2004-08-05 Thread Torsten Roehr
data in an array and that's the problem now. > > Greetings > pt2002 Out of curiosity, why don't you want to use the PEAR classes? Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Some Direction

2004-08-05 Thread Torsten Roehr
your pdf file outside of the webroot our in a .htaccess protected directory. Then read in the file contents, set the appropriate headers and output the file contents to the browser - this should prompt a download window. PEAR's HTTP_Download is excellent for this job: http://pear.php.net/package/H

[PHP] Re: Getting data from table as a tree

2004-08-06 Thread Torsten Roehr
But if this is already too much for your client... ;) Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Some Direction

2004-08-06 Thread Torsten Roehr
set). The protection is just to deny public access. Take a look here: http://pear.php.net/manual/en/package.http.http-download.intro.php Hope this helps, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Some Direction

2004-08-07 Thread Torsten Roehr
using fwrite? > > Thanks, > > Aaron You can do this for any type of file. Set the aprropriate headers and then use readfile(): http://de2.php.net/manual/en/function.readfile.php Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session problems under heavy load???

2004-08-07 Thread Torsten Roehr
Storing the session data in a database might solve this problem. Regards, Torsten Roehr > > > -Original Message- > > From: BOOT [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 06, 2004 1:26 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Session proble

Re: [PHP] looking for a solid/good basic registration/loginapp/script

2004-08-07 Thread Torsten Roehr
> > > > i've look through lots of scripts, and decided to check here for additional > > input. > > > > thanks > > > > -bruce > > There is Pear::Auth. I've had good experiences working with it. > > http://pear.php.net/package/Auth > >

[PHP] Re: regex help and file question

2004-08-07 Thread Torsten Roehr
ntents in this form, e.g. for looping through each line and applying a function or whatever - fread() requires a file handle that you have to create with fopen(), so file_get_contents() is kind of a shortcut for fopen()/fread() Hope this helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Function Mail

2004-08-08 Thread Torsten Roehr
al says: "mail() automatically mails the message specified in message to the receiver specified in to . Multiple recipients can be specified by putting a comma between each address in to." This should answer your question. Otherwise take a look at the manual page: http://de2.php.net/manu

Re: [PHP] Local version works - production breaks

2004-08-08 Thread Torsten Roehr
l display functions -- showleft() -- showcentre() , as > well as the connect() function. Hi Andre, make sure to use require_once for all includes. This will make sure to only include each file once and will trigger a fatal error if the file cannot be found because of a wrong path or whatever. Hope t

[PHP] Incorrect trans-sid placement in PHP Version 4.3.6

2004-08-09 Thread Torsten Scheck
r further testing and bug fixing. The php version I use is too old for the bug system. If you encounter the same bug in a higher version, please report it. Thanks. Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Incorrect trans-sid placement in PHP Version 4.3.6

2004-08-09 Thread Torsten Scheck
Justin Patrin wrote: > On Mon, 09 Aug 2004 10:02:23 +0200, Torsten Scheck > <[EMAIL PROTECTED]> wrote: > >>Hi, >> >>I just stumbled over a problem after I had updated PHP, and I >>thought I should share my experience: >> >>I use PHP Version 4.3.6

[PHP] Re: Image and variable

2004-08-10 Thread Torsten Roehr
#x27;t show up. Is it > impossible or do I do something wrong? > My goal is to have a random image print in the page, > that's why I want to use a variable. > > Thank you for your good advices. Variables in single-quoted strings are not evaluated. Either user double quotes or conc

[PHP] Re: Load data and Insert

2004-08-11 Thread Torsten Roehr
ossible? > > Regards, > Juan Please specify a bit more clearly *what* data you want to load *from where* and insert into *what*. Then we may be able to help you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Load data and Insert

2004-08-11 Thread Torsten Roehr
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Juan Pablo Herrera" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi! > > i need do two querys in one. > > First query is a load dat

[PHP] Re: Changing MySQL Date Format

2004-08-12 Thread Torsten Roehr
ng by date impossible - do you really want this? You should put formatting issues into your application and rely on the ISO format in your database. Regardsm Torsten Roehr > > Has anyone else managed to do this or use any workarounds I could use > perhaps...? > > I'm just getting a

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Torsten Roehr
ending the session id manually to the links? Try these settings: session.auto_start= 0 session.use_cookies = 0 session.use_trans_sid = 0 Put session_start() at the top of ALL your pages and write your links this way: to page 2 Hope it helps, Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with submit form if type is image

2004-08-14 Thread Torsten Roehr
lue2 > > ?> > echo""; > ?> > Hi, if you use the input type 'image' you have to check for name_x or name_y, so in your case: $_POST['submit'] = isset($_POST['submit']) ? $_POST['submit_x'] : ''; Whenever you have problems like this do a print_r($_POST) at the top of the second page. This will show you all submitted values. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to determine if date/time is with DST or not ?

2004-08-15 Thread Torsten Roehr
est... > > TIA > > Rene > -- > Rene Brehmer > aka Metalbunny > > If your life was a dream, would you wake up from a nightmare, dripping of sweat, hoping it was over? Or would you wake up happy and pleased, ready to take on the day with a smile? > > http://metalbunny.net

[PHP] Re: problems with sessions!!AAH

2004-08-16 Thread Torsten Roehr
ion_is_registered($_SESSION['login'])) > echo("seesion is reg"); > else > echo("seesion not reg"); > Hi Angelo, where's your session_start()? Also you can use isset() instead of session_is_registered(): if (isset($_SESSION['login'])) Regards,

[PHP] RE: [PHP-DB] Re: Basic MySQL Query Question

2004-08-16 Thread Torsten Roehr
and compare them, there must be a difference. Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Cache

2004-08-16 Thread Torsten Roehr
uot;lifetime" for each page. When this time has passed a new cached file will automatically be created. Cache_Lite is managing this for you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Torsten Roehr
nction its not registered > anymore. I do have session_start(); at the top of the new page. > > I cant think why its not working?!?! Are you using cookies? What are your session configuration values? Regards, Torsten > > TIA > > >>> "Jay Blanchard" <[EMAIL

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Torsten Roehr
direct. Does echo SID produce any output? By the way, I don't think you need to call session_write_close(). Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR

2004-08-16 Thread Torsten Roehr
act my host? > > Thanks, > Mag You will find answers to your questions on http://pear.php.net. Or post your questions to the pear-general list. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The_'_character_and_Hidden_(POST)_form_fields...

2004-08-17 Thread Torsten Roehr
se double quotes for your HTML attributes so single quotes in your strings won't be a problem. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php question

2004-08-18 Thread Torsten Roehr
bute if your pictures are not in the same directory. Hope this helps, regards. Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: I need unique max number

2004-08-18 Thread Torsten Roehr
h the array with foreach() and check each element for the value 1. When you have found the first array element with a value of 1 exit from the loop with break. Hope this works for you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I need unique max number

2004-08-18 Thread Torsten Roehr
in advance. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > use array_unique will get 200, 100, 50, 30. > > you shoule write a custom function :) Hi Ni, he needs to ignore duplicate values

Re: [PHP] OO Theory Question

2004-08-18 Thread Torsten Roehr
ing any other variable into the session: $_SESSION['object'] =& $object; (You don't need the ampersand in PHP5.) Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: download file question...

2004-08-19 Thread Torsten Roehr
ll want to do this... > > nothing jumps out at me searching google/php.net for this... > > thanks What about pointing a link to the file?!?: link If the file is outside of the webroot root or in a protected directory you can use PEAR's HTTP_Download: http://pear.php.net/packag

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Torsten Roehr
validate that $offset is an integer before using it in the query. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: WAHT is my error???

2004-08-20 Thread Torsten Roehr
like this: while ($registo = mysql_fetch_array($sql)) { echo '' . $registo[1] . ''; } You can use mysql_fetch_assoc() and then access the values by their column name: $registo['column1'], $registo['column2'] etc. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is this the right way to increase the amount of time session variables are dropped

2004-08-20 Thread Torsten Roehr
t variable with a .htaccess file. Search the archives to find out how the exact syntax is. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Clear HTTP POST value

2004-08-23 Thread Torsten Roehr
quot;var"]); > > Nicke Hi Nicke, unset($_POST['var']) *should* work - it works for me (PHP 4.3.8). You could also do $_POST = array() to reset all values. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-08-23 Thread Torsten Roehr
ad etcetera). I don't want the file to open in it's > native software. > > I know I need to use the > header ("Content-type: application/octet-stream"); > But I don't know how. > > Can anyone help? > > Thanks. Take a look at PEAR's HTTP_Dow

[PHP] Re: delimiter question?

2004-08-24 Thread Torsten Roehr
o.php script, it will > not run. > > Thank You > Steve Hi Steve, try setting the file permissions of gogo.php to 705. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Image Width Error

2004-08-24 Thread Torsten Roehr
ad the manual: http://de.php.net/manual/en/function.imagesx.php You need an image resource to get the file size. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroying a Session

2004-08-25 Thread Torsten Roehr
eads: > > load_orderinfo() = Object; > > On the complete_order.php page where I call the clear_orderinfo() function > it goes back to: > > load_orderinfo() = > > but it on any subsequent page the output returns to: > > load_orderinfo() = Object; > > But afte

[PHP] Re: PHP Login Script

2004-08-25 Thread Torsten Roehr
27;t answer there is the PEAR general mailing list to help ;) Best regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is javascript enable?

2004-08-26 Thread Torsten Roehr
Redirect via meta-refresh tag after 2 seconds to page2.php?js=off 2. Redirect via JavaScript immediately to page2.php?js=on If JS is enabled the second redirect will be processed, if it's off the first one will. Then on page2 you'll have $_GET['js'] with on/off as the

Re: [PHP] crypt()

2004-08-26 Thread Torsten Roehr
tried to use > ini_set("register_globals", FALSE); > but it still doesn't work. > On php.net manual I can find WHAT I have to do and reasons but not HOW. > > Thanks for any help! > > Afan Please don't hijack other people's thread: Try this at the top of *e

[PHP] Re: crypt()

2004-08-26 Thread Torsten Roehr
t me toward a good > one. > > Thanks, > > Aaron Hi Aaron, encrypting passwords in the database is generally a good idea. You can use md5() as an alternative to crypt(). MySQL itself has an MD5 function you can directly use in your SQL statements. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Exporting Dbase to CSV

2004-08-26 Thread Torsten Roehr
that one step further and don't know how... Please specify what you mean with "one step further"? You can assign the contents to a variable and write it to a file. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML_sql2xml

2004-08-26 Thread Torsten Roehr
; > -Brian Hi Brian, I found this link on the page you mentioned: http://pear.php.net/package-info.php?pacid=18 Click on "download", download the archive and extract it to your PEAR directory. Best regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sharing records with assigned users

2004-08-26 Thread Torsten Roehr
wants to > share the record with. He can choose particular Users by clicking on their > name to share that record with. How do I make that happen? > > Any suggestions? > > Thanks. I guess you need to create a table that maps users to records with two columns $userID and $recordID. T

[PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-26 Thread Torsten Roehr
.php?factura_id=$factura_id','Ficha','700', > '300','no','left');return false\" onfocus=\"this.blur()\"> > height=\"31\" border =\"0\">"; > > And in the pop-up I do like this. > echo&

[PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Torsten Roehr
.php?factura_id=$factura_id','Ficha','700', > '300','no','left');return false\" onfocus=\"this.blur()\"> > height=\"31\" border =\"0\">"; > > And in the pop-up I do like this. > ec

Re: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Torsten Roehr
opup contains a frameset? Then post your frameset code and we might be able to help. Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Torsten Roehr
rameset to the page that will be using the variable. Change the first line into: Then in imprimir_factura.php you can acces the variable via $_GET['factura_id']. This should work. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: List of cities

2004-08-29 Thread Torsten Roehr
ed this list to over 200 but still get > complaints that certain towns are not listed. Ask the UK postal service (or whatever it is called). They should have such a list/directory containing all cities with zip codes in digital form (probably on CD-ROM). Regards, Torsten Roehr -- PHP General

[PHP] Re: newbie questions

2004-08-29 Thread Torsten Roehr
db means the value is passed by reference. Otherwise a copy of $db would be passed to the method. See here: http://de2.php.net/references With PHP5 variable assignments or passing variables to functions by reference is standard. $this->db is the PHP equal to this.varName. You access property db

[PHP] Re: PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Torsten Roehr
insert your data } I hope you get my point. For user convenience you could use JavaScript's onChange() event to auto-submit the first three selects when the user has selected a value. Best regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing image in database

2004-08-30 Thread Torsten Roehr
g your PHP code at the top of the page? The blank line between and might cause the error. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Torsten Roehr
'www.'. > > I have looked at using substr but if the user leaves out the 'www.' then > substr($_SERVER['HTTP_HOST'], 4) would return 'main.com', is there a better > function to use in this instance? > > Thanks for your help Does your Apache

[PHP] Re: Handling XML output in a slim way

2004-09-01 Thread Torsten Roehr
g dumped as XML. > > I'm using PHP4 right now. > > thanks, > - Markus > Hi Markus, take a look at this package: http://pear.php.net/package/XML_Tree Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: trying to do too much with functions?

2004-09-02 Thread Torsten Roehr
ue1', 'value2', 'value3', 'value4'); If your function takes more than four parameters an associative array would be the way to go (your first example). You might consider splitting it up into several functions if it takes that many arguments. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session understanding

2004-09-02 Thread Torsten Roehr
some work to adapt your application. Another advantage of this would be that you would not have to rely on your user's cookie setting being enabled. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Large database, slow search times

2004-09-02 Thread Torsten Roehr
0 users interested in doing searches > on this info, 500 x 3.5 minutes per search is too much. Just wondering > what the experts would suggest for managing a database this size and > getting the search times down to something manageable. > > Thanks in advance for your advice > > A

[PHP] Re: PHP Help

2004-09-03 Thread Torsten Roehr
e 5 updates stored in the database at all > times. > > Thanks > ConbuD Insert your new item, then delete the oldest one: DELETE FROM table ORDER BY date asc LIMIT 1 Whereas 'date' is your date column. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Function Get Error

2004-09-03 Thread Torsten Roehr
rmdir($sourceDir); } } closedir($handle); } } It will delete all direcotries and files *inside* the specified directory. So the directory itself will not be deleted. Just call it like this (w

[PHP] Re: Sessions and Logins

2004-09-03 Thread Torsten Roehr
ned with, and starting a new session? Again, use a header redirect. > thanks all of you. I **LOVE** using this PHP 'thang' :-) > > Dennis Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: !!Urgent .. Session Problem

2004-09-04 Thread Torsten Roehr
rsion anymore, so just delete the first of the upper two lines. Excerpt from the manual: >>> Caution If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered(), and session_unregister(). <<< Regards, Torsten Roehr -- PHP General Ma

[PHP] Re: Drop directory with PHP

2004-09-04 Thread Torsten Roehr
// remove directory if it's not the root one if ($level > 0) { rmdir($sourceDir); } } closedir($handle); } } It w

[PHP] Re: function problem

2004-09-04 Thread Torsten Roehr
rmission is completely executed? > > I know it is not a simple question, but I really need a solution to > ensure the safety of my system. > > grtz & thanks > > DragonEye I'm not completely sure if I understand your question but PHP will process one function after the

[PHP] Re: interface problem in PHP5

2004-09-04 Thread Torsten Roehr
> // {{{ item > /** > * Returns the nth index given in item. > * > * @param inte $a_iIndex - index in list > * @return mixed node object or null if item was not found > * @access public > */ > function &item($a_iIndex) Ar

[PHP] Re: interface problem in PHP5

2004-09-05 Thread Torsten Roehr
null will kill c but not b > > /Erik OK, but what about your interface problem? Could you solve it with this?: >>> I think you have to also define the arguments you want to use for item() in your interface: function item($a_iIndex); <<< Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session again !!!

2004-09-05 Thread Torsten Roehr
e. Try this at the top of your second page: print_r($_SESSION); Then you will see which values are set in $_SESSION and you can check if that is what you are expecting or not. Another idea would be using a ready made authentication/permission package like PEAR::LiveUser: http://pear.php.net/package/LiveUser Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session again !!!

2004-09-05 Thread Torsten Roehr
SION['uname'])) { header('Location: ../../index.php'); exit(); } else { // output contents } Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is ob_gzhandler interfering with dynamic zipping???

2004-09-07 Thread Torsten Roehr
tom PEAR dir and set the include path to it (maybe just in the script where you need it). Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: referencing a class

2004-09-08 Thread Torsten Roehr
b = &$_SESSION['database']; > > Everything goes screwy after a call like this. > > Thanks in advance! What do you mean with "screwy"? Change $_SESSION['database'] after your second line and print out $this->db to see if that was changed too. Regard

[PHP] Re: referencing a class

2004-09-08 Thread Torsten Roehr
b = &$_SESSION['database']; > > Everything goes screwy after a call like this. > > Thanks in advance! What do you mean with "screwy"? Change $_SESSION['database'] after your second line and print out $this->db to see if that was changed too. By t

[PHP] Re: help-fetching-url-contents

2004-09-10 Thread Torsten Roehr
> i have used perl get url option and then parse the > file, with the date and time function...to do this. > > pls help. > thanks in advance > vijay http://de3.php.net/curl Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >