Re: [PHP] passing an object using session var

2006-11-29 Thread Thomas Munz
Try that: --script1--- ?php include(TestClass.php); session_start(); $obj = new TestClass(); $obj-setName('MyName'); $obj-display();// outputs 'MyName' $str_object = serialize($obj); //-- You need to serialize an object ( see php.net manual ) in order to make an object working via

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Thomas Munz
You cannnot just open those files. That things that you see are not 'rubish' or whatever. Those files are in a binary format. You need to understand the .doc format and the .pdf format. You can get this infromation by using google and search for 'Binary word format' and so on. Then you have

Re: [PHP] Frameworks

2006-11-02 Thread Thomas Munz
I personal prefer Frameworks. I tried some of them. But in my opinion, those are not made to create application fater, no. With Frameworks, you can maintaine your application better. You have a global place where everything can be changed on one file. Ofc, its also possible that this improves

Re: [PHP] Comment management

2006-10-23 Thread Thomas Munz
Maybe you mean a bug tracker? checkout http://flyspray.rocks.cc/ on Monday 23 October 2006 17:12, tedd wrote: Hi: I posted this on the web-design list, but didn't receive any leads. I want to continue what I've been doing, which is to offer various code solutions for people via my web

Re: [PHP] add functions to a class

2006-09-21 Thread Thomas Munz
This will not work. $this-bla(); This is a PHP Syntax and tries to get the Class method, PHP dont look for a variable name at all! It seams me strange also, that you try this, you should create the method for the class itself, or extend it. But this shoul work: class Test { function Test

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Thomas Munz
Pascal?? this is a PHP list, you are on the wrong place! on Thursday 21 September 2006 11:12, Bronislav Klucka wrote: Hi, does anybody know how to write extension in FreePascal? Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Thomas Munz
to write extension for PHP :) but I want to write it in FPC... Brona Thomas Munz wrote: Pascal?? this is a PHP list, you are on the wrong place! on Thursday 21 September 2006 11:12, Bronislav Klucka wrote: Hi, does anybody know how to write extension in FreePascal? Brona -- PHP

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Thomas Munz
written in C and use it in program written in FPS and vice versa (it's all about rewriting function's headers). So my question is, if this is possible generally, can it be done for PHP? Thomas Munz wrote: PHP is written in C. If you want to write a extension, you have to writte it in C. I dont

Re: [PHP] Class question

2006-09-15 Thread Thomas Munz
Use 'extends' syntax for sub classes class A { var $some_var; var $class_B; function A(){ $this-class_B = new B(); $this-some_var=2; } } class B extends A { var $class_C; function B(){

Re: [PHP] php-general mailing list active?

2006-08-22 Thread Thomas Munz
maybe you should resubscribe :) on Tuesday 22 August 2006 16:31, [EMAIL PROTECTED] wrote: Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks,

Re: [PHP] AES client side

2006-07-31 Thread Thomas Munz
What do you need exaclty? Do you wanna encrypt the datas, that will be transfered to the client Or do you wanna encrypt the source code, that will be displayed on the client? For reason 1 you can use SSL connection to encrypt the transfered datas. For reason 2: forget it. The Browser needs to

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread Thomas Munz
By default, PHP will also stop execution when the browser is closed. See: http://de.php.net/manual/en/features.connection-handling.php on Friday 30 June 2006 09:06, weetat wrote: Hi all, I am using PHP 4.3.2 and MYSQL database. I think this question has been asked many times, however not

Re: [PHP] bug in php 5.1.4

2006-06-30 Thread Thomas Munz
There must be a special code in your script that causes it like this bug: http://bugs.php.net/bug.php?id=37926 on Friday 30 June 2006 11:39, Alain Roger wrote: Hi, I' ve discovered a bug in PHP 5.1.4. This version of PHP create a new session everytime you refresh the same php page or that

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread Thomas Munz
web page to be slow. Thanks. Thomas Munz wrote: By default, PHP will also stop execution when the browser is closed. See: http://de.php.net/manual/en/features.connection-handling.php on Friday 30 June 2006 09:06, weetat wrote: Hi all, I am using PHP 4.3.2 and MYSQL database

[PHP] Control GET data ( not php related )

2006-06-07 Thread Thomas Munz
Thats not PHP related. Its normal HTML/JS 2 Ways: 1) Make form to use 1 field:; form method=GET action=file.php input name=name type=text / /form 2) Use JS to manipulate the target url dynamicaly on Wednesday 07 June 2006 21:20, Steffen Mazanek wrote: Hello, I want to provide two input

Re: [PHP] Ajax (xmlHttpRequest) and session_start() problem.

2006-05-17 Thread Thomas Munz
session_write_close(); Ex: session_start(); $asdf = $_SESSION; //-- get all datas session_write_close(); //-- close session on Wednesday 17 May 2006 16:36, Mathijs wrote: Robert Cummings wrote: On Wed, 2006-05-17 at 10:11, Mathijs wrote: I Have an very strange problem. When i execute

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Thomas Munz
put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the

[PHP] Book/Site for internernal PHP5 Core Developing

2006-04-26 Thread Thomas Munz
hi list! Does someone know a good Book/website for Develop own C-Extensions for PHP5? http://us2.php.net/manual/en/zend.php This site are just basic things, but i wanna do more things. Someone may help me? thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP with Oracle

2006-04-19 Thread Thomas Munz
Only the main US Server. Try: http://us2.php.net/ on Wednesday 19 April 2006 15:13, Brad Bonkoski wrote: Assuming the PHP web page is available, anyone else having problems connecting to php.net? -B Jay Blanchard wrote: [snip] is there a ready script that handle entering user name and

Re: [PHP] OT - PHP Webhost Dedicated Server

2006-04-11 Thread Thomas Munz
www.ixwebhosting.com www.hostexcellence.com on Tuesday 11 April 2006 15:18, Suhas wrote: Hello, Any suggestions for Dedicated PHP Webhost. The current service provider is ok but Customer service is unsatisfactory. Very bad experience. Thanks for your help in advance, SP -- PHP General

Re: [PHP] open / check SSL activation

2006-04-05 Thread Thomas Munz
if request come from port 443, SSL = Active you can get the port from $_SERVER[SERVER_PORT] on Wednesday 05 April 2006 15:12, Alain Roger wrote: Hi, I would like to ebsure that my user has SSL activated. for that i would like to do something like that : 1. after lo-in button click,

Re: [PHP] redirect using php

2006-04-05 Thread Thomas Munz
Function that will work also, when JS is not activate and headers are allready send :) : ?php function chrome_redirect($url) { // redirect the page if (headers_sent()) { // perform JS redirect echo 'script type=text/javascript language=javascript

Re: [PHP] require_once hell

2006-03-29 Thread Thomas Munz
Forgot the ?php tag in the second class? on Wednesday 29 March 2006 12:48, Adrian Bruce wrote: Hi this may be a stupid moment but i cant find an help on google so.i am including two classes in my code using the require_once(path to file) method. this works fine for the first class but

Re: [PHP] Date addition problem

2006-03-29 Thread Thomas Munz
Cause 9th month have 30 days but 10th month have 31 days. You don't check the amount of day there... :) on Wednesday 29 March 2006 14:51, Adrian Bruce wrote: Hi I am having an unusual problem when trying to calculate dates in advance from a start date. the code below shows a loop where by

Re: [PHP] object oriented syntax in php

2006-03-28 Thread Thomas Munz
echo $ping_result[_raw_data][5]; Hi there, I do have problems with object oriented syntax as this is not familar to me. There is following output: object(net_ping_result)(11) { [_icmp_sequence]= array(1) { [61.117):]= string(1) 7 } [_target_ip]= string(9) y2.php.ne

Re: [PHP] call a php script in a php script

2006-03-28 Thread Thomas Munz
I personaly use proc_open() to run PHP Scripts. on Tuesday 28 March 2006 12:14, nicolas figaro wrote: Hi, I'd like to run a php script in another php script. (the first is lauched from the command line). Is there a way to do it better than system (/path/to/php script_included.php options).

[PHP] Fwd: Re: WG: Bitte weiterleiten

2006-03-24 Thread Thomas Munz
-- Weitergeleitete Nachricht -- Subject: Fwd: Re: WG: Bitte weiterleiten Date: Freitag, 24. März 2006 15:29 From: Thomas Munz [EMAIL PROTECTED] To: [EMAIL PROTECTED] -- Weitergeleitete Nachricht -- Subject: Re: WG: Bitte weiterleiten Date: Freitag, 24. März

Re: [PHP] Fwd: Re: WG: Bitte weiterleiten

2006-03-24 Thread Thomas Munz
Sorry! Was mistakly commited, should go to the list in my address book but not here! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code stoped working after upgrading from 4 to 5

2005-04-28 Thread Thomas Munz
Do you set this vars before somewhere in the code? Because if you get some datas from a from you have to use $_POST/$_GET to get the values... Hi, I have this simple piece of code that worked like a chram in PHP 4.x Now that i've moved to PHP 5 it doesn't work anymore. I always get 0 for

[PHP] PHP5 Class problem

2005-01-28 Thread Thomas Munz
I'm using PHP 5.0.3 and if a problem if a class method. I'm initializing a class like that: $o_SessionHandler = new SessionHandler(); var_dump($o_SessionHandler-getOrgSession());exit; Now it get the error message: Fatal error: Using $this when not in object context in

[PHP] PHP5 Exception tutorial

2005-01-12 Thread Thomas Munz
Does anybody know a good PHP5 Exception Tutorial that explain this new function step by step? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 sprintf() function borken

2005-01-11 Thread Thomas Munz
Today i think i found an bu in the PHP5 version 5.0.3 ( allready exits also in the version 5.0.2 , i try this version also ). When tryo one of this scripts: $i_test = 0.085007667542; $tm_total = sprintf('%.2f', $i_test); echo $tm_total; $i_test = 0.085007667542; $tm_total = sprintf('%.2f',

Re: [PHP] unpacking $_POST when example[1], example[2] in form.

2005-01-10 Thread Thomas Munz
$_POST[example][1] $_POST[example][2] If I have a form with elements like input type=text name=example[1] input type=text name=example[2] If example was not an array it would be accessed using $_POST[example] But how do I access the varable if it is an array like above. Ben -- PHP

Re: [PHP] $_REQUEST

2005-01-10 Thread Thomas Munz
Be carfull with this super var. This var is a merge of the GET, POST and FILES, and so only 1 index can only exists. If you have an index in the POST field called 'test' and also and index calles test in the FILES or GET var, than only one index of them is avaible and the other are gone I

Re: [PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Thomas Munz
I have the same problem. This problem occured i PHP crashes. Do you upgrad your PHP to a newer version or do you compile a PHP source and have RPMs installed? Hi All, I have a rather odd problem. Since a few days, my otherwise perfect SuSe 9.0 Apache2 server started to do some funny stuff.

Re: [PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Thomas Munz
This is not an Mime-type problem. What apache version your runnging. What RPMs of PHP4 you have installed? What PHP Apache module you have installed? If it works most of the time, just not all the time... it can't really be the mime-types, or can it? -Rinke Stephan Fiedler wrote: Hi

Re: [PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Thomas Munz
Not more PHP modules? like php4-4.3.3 php4-mysql-4.3.3 php4-zlib-4.3.3 ?? Do you compile PHP4? ... Thomas Munz wrote: This is not an Mime-type problem. What apache version your runnging. Apache/2.0.48 What RPMs of PHP4 you have installed? What PHP Apache module you have

Re: [PHP] Text tools

2004-12-13 Thread Thomas Munz
This is not possible with PHP, you must do that with JavaScript. Hello, I was just wondering how to build a text editing tool with php. I mean a tool that can help users to format their texts in the pages. I mean something like paste the text in a text box. Select some part of the text and

Re: [PHP] Attempted to unsubscribe to no avail

2004-12-13 Thread Thomas Munz
http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sql syntax problem

2004-12-13 Thread Thomas Munz
This is the PHP mailing list, not the SQL mailing list ;) but here is the syntax ( not tested ): SELECT c.name AS city FROM geodb_locations AS c, user AS u WHERE u.user_id = 4 AND c.plz LIKE u.plz; Hello everybody, I am trying to create a sql query with php and I do

Re: [PHP] ini_set doesn't work

2004-12-09 Thread Thomas Munz
your set it to '-1'!!! thats not allowed. You must habe a value highter than zero. Its better you set it in generall to 60. And you forgot the 'M' fater the number like ini_set(memory_limit,-1M); set it better to that: ini_set(memory_limit,60M); hello, what do I have to change in

Re: [PHP] Objects and sessions

2004-12-09 Thread Thomas Munz
I think, its not possible to init an Objeect on a session. Session will be rebuild on each reload of the site based on the session id, i think... Maybe here the object can't be rebuild anymore... Following code: ?php class SessionTestC { protected $value; function __construct (

Re: [PHP] Making variables with an iteration? STILL

2004-12-06 Thread Thomas Munz
I think you can use the export() function for that.. Here's the full code and the driving page: http://rsossam-lap.ces.ncsu.edu/leadership/test.html snip ?php for ($i=1; $i10; $i++) { if (isset ($_POST['choice'.$i])) { for ($j=1; $j5; $j++) { $tempChoice = choice . $j;

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Thomas Munz
you forgot the ' in the $fname= $_POST[fname]; $lname= $_POST[lname]; $addie= $_POST[addie]; $city= $_POST[city]; fields!!! error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 The HTML page:

Re: [PHP] Cleaner way to do this?

2004-12-02 Thread Thomas Munz
foreach ( $_POST as $key = $value ) { while ($key != submit) { \$$key = $value; $addtocart .= ,'\$$key'; } } The problem is that it seems to be hanging at the while loop. Is there a cleaner way to write the foreach loop so that it will dump out the submit key? I've been

Re: [PHP] Redirect after download

2004-12-01 Thread Thomas Munz
I am writing a file download system and I need to be able to do a redirect after the download is finished. Basically, the user will be presented with a simple HTML page that contains a link to download the file (href=/download.php?fileid=143). I have the code to send the file working just

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Thomas Munz
Parse error: parse error, expecting `']'' in file.php I've been working on this script, and can't see why it fails here, but I have another page that uses the same coding and it works correctly. OK, here's the code: $cart1 = ; $cart1 =