[PHP] Catching all errors and redirecting

2005-08-18 Thread Thomas Hochstetter
Hi again, Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer). thanks Thomas -- PHP General Mailing List (http:/

RE: [PHP] Array of objects

2005-05-06 Thread Thomas Hochstetter
Thanks, will do ;-) (as of this mail) -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 03:08 PM To: Thomas Hochstetter Cc: [php] PHP General List Subject: Re: [PHP] Array of objects Thomas Hochstetter wrote: > Hi Jochem, > > Thanks for that.

[PHP] Array of objects

2005-05-06 Thread Thomas Hochstetter
  Hi there, I need help with arrays. What I want to do is to have an array of the following structure: $mod=array( ‘name’=>new NameObject()); Then later in the page I want to go $Site = $mod[$_GET[‘module’]] (or something like that) to instantiate a new object.

[PHP] php5 and mysql 4.1 - Authentication

2004-11-02 Thread Thomas Hochstetter
Hi there, I am sure there has been a discussion about this previously, I couldn't find much through google though . anyway. I know I must use mysqli, and that is also not the problem. The problem is with things like phpmyadmin and bxcms. I am not going through all the code to fix the mysql connec

[PHP] Callback functions inside classes - how to?

2004-10-08 Thread Thomas Hochstetter
Hi again, I have always been wondering how this is done properly: Here is an example: [snip] class A { function name( $a, $b, $c) { $tmp = array(); $tmp[a] = $a; . array_push( $GLOBALS['XMLStack'], $tmp ); } function parse() { .. some definitions . $pa

[PHP] HTML in Download data?

2004-09-24 Thread Thomas Hochstetter
Hi there, I am (again) trying to download a file from off the server and force it to use the download dialog box. I have been trying pclzip.lib for compression and used my own headers (as depicted below). This version did zip nicely and the files were intact in the tmp folder. But once I used th

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

2004-09-07 Thread Thomas Hochstetter
Hi there, Still sitting on this problem of not being able to dynamically zip a bunch of files together, to output them as a Save Dialog box for downloading. I am using the rather old pclzip classes for the zipping part (still wrestle with the server admin to get Archive_xxx stuff from PEAR instal

[PHP] Getting $_POST variables back

2004-09-03 Thread Thomas Hochstetter
Hi there, I am not sure if that is a common request, so I will post it here without checking the archives . ;-) I have a page which has its details from the $_POST array (ID, etc). On it there is a small link about people, this is done via href link in html. This link takes you to another page

[PHP] CMS, Seperation of concerns - the Cocoon style

2004-08-31 Thread Thomas Hochstetter
Hi there, I was thinking about this a lot today and was wondering if there are any people here on this list that have experimented with this: I hope you know what Cocoon does. If I can just sum up what I am concerned about: * Separation of concerns (i.e. Design, Content and Logic are CO

[PHP] Creating a zip and pumping it through the headers - ERROR

2004-08-31 Thread Thomas Hochstetter
Hi again, After a clever question follows a dumb one: :-( I am trying to pack a few resources from off the server, zip them together (at this stage still storing in a tmp folder and afterwards deleting it again) and make the freshly created zip file available to the user via a 'Save File' promp

Re: [PHP] Weired session problem

2004-02-06 Thread Thomas Hochstetter
Hey, I am having users sign in on a index.php which directs them to the members page (same: index.php). There i have links that open small windows via js. These have session_start() in them to continue the same session variable. Then there i would have something like: [snip] $tusr = $_SESSION['f

[PHP] Weired session problem

2004-02-06 Thread Thomas Hochstetter
Hi guys, Has anybody come across the same problem: i am using the $_SESSION array to retrieve info of users. At times, however, it just retrieves the wrong info, i.e. info from another user. how is that? thanks in advance Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] 2 questions

2003-08-23 Thread Thomas Hochstetter
The register globals is on with the live server, and off at home (my version is 4.3.2, the other is 4.1.2). does that matter? Thanks for the other tip, shall try that ... Thomas - Original Message - From: "Thomas Hochstetter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

[PHP] 2 questions

2003-08-23 Thread Thomas Hochstetter
Hi guys. I have two questions for you today: 1. Weired login problem I am developinig a site for a conference where i have a login page for members. This page is called index.php and includes different types of modules, according to the type of user logged on. The problem is now following: i have

RE: [PHP] File upload and deletion

2003-08-21 Thread Thomas Hochstetter
[snip] - PHP sends request headers (with POST data) to $url - $url sends response back to calling script - PHP works with the response [/snip] Look at fsockopen, with which you can send POST headers, or just fopen. You sit this in a try/ catch sort of script and you should be able to get stuff bac

RE: [PHP] HTTP transactions with PHP?

2003-08-21 Thread Thomas Hochstetter
[snip] - PHP sends request headers (with POST data) to $url - $url sends response back to calling script - PHP works with the response [/snip] Look at fsockopen, with which you can send POST headers, or just fopen. You sit this in a try/ catch sort of script and you should be able to get stuff bac

[PHP] logging data to xml

2003-08-15 Thread Thomas Hochstetter
Hi there. I have been trying to log some data to an xml file. Whta my problem is now is that the tag needs to be either replaced (overwritten) or i need to get the data in before EOF-1. I have spend some time on the manual, but could not find out hoe exactly i should get the last row and then mov

[PHP] OPINIONS wanted - xml-DOM-xsl + php

2003-08-14 Thread Thomas Hochstetter
Hey guys. There is question that has been bothering me for a while now ... and i wonder whether there are any takes/ insights on that. I would really like to integrate xml, DOM and XSL more in my projects. What has kept me from doing this, so far, is just that the live servers often did not make

[PHP] /n not working

2003-07-26 Thread Thomas Hochstetter
Hi there. I got a question from someone why the following (from the manual) will not bring the desired output: Is this a php.ini setting? Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! -- PHP General M

[PHP] php5 + php4 on same server

2003-07-25 Thread Thomas Hochstetter
Hi guys. Sorry, i know that was discussed earlier this month ... i just looked for the posting again in the archives ... i could only find the question post ... but there was an answer. So, how do you setup the server again to have php4 run on the :80 port and php5 on :8080 (apache server). Does

[PHP] cms design & xml-php ?

2003-07-25 Thread Thomas Hochstetter
Hi there. Is there any php book that discusses general design issues for cms's and webservices in php? Also, what is your take on xml? Is it worthwhile waiting for v5 to be released before buying a xml-php book? thanks Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ei

[PHP] Preserving session vars over multiple windows

2003-07-20 Thread Thomas Hochstetter
Hi there. How can i preserve var's of session 's' over more than one window without loosing them? Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] session across satelite windows

2003-07-15 Thread Thomas Hochstetter
Hi again. I am having a problem with session variables spanning over different windows. What I am doing is to supply links in an admin interface that open satellite windows, opened via JS. The window scripts check for a variable to be present ($_SESSION[]). I am doing this so that the scripts

RE: [PHP] how to :: multi select

2003-07-05 Thread Thomas Hochstetter
Thanks guys. I will have a look at the array[] convention. Meanwhile I did my own thing by naming them all different and parsing the $QUERY_STRING for them. It is a mess! So thanks again! Cheers Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] how to :: multi select

2003-07-04 Thread Thomas Hochstetter
Hi guys, This might just be off the topic, but here it goes anyway: How can one multi select check boxes and pass them through in php, without getting mixed up with variables (email multi select style). Thomas

[PHP] a generic getsql() function

2003-06-25 Thread Thomas Hochstetter
Hi guys, I wrote a generic getsql() function for my project's class. However, I only manage to retrieve a single row. What it should really do is: Read all rows into the array (with multiple results). The code is below: function getsql($sql,$conn,$dbase,&$arr) { if($conn)

[PHP] reference a function in a class from array_walk()

2003-06-21 Thread Thomas Hochstetter
Hi guys. I want to call this generic echo function within a class, but have trouble referencing the output function with $this-> . Any suggestions? Maybe there is a better solution to this? This is within a class: [snip] # generic WALK functions function walkit($array) {

[PHP] mysql error messages

2003-06-16 Thread Thomas Hochstetter
Hi. I have parsed the txt file and put it on my site . it's kinda ugly and messy, but maybe it helps someone. http://www.thomash.co.za/docs/errmsg.php T

RE: [PHP] mysql_errno codes

2003-06-16 Thread Thomas Hochstetter
Thanks guys ... always a pleasure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_errno codes

2003-06-16 Thread Thomas Hochstetter
Hi. [3rd try] ... where can i get mysql_error codes from? The ones that mysql_errno returns. Thanks Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] referer counter

2003-06-12 Thread Thomas Hochstetter
Hi guys, I am writing a counter that checks where the hit comes from, and if it comes from the same site, it will not count . I have a question related to performance: In the script (as yet) I have to open the txt file twice at this stage, because I first need to read from it and then write to it

RE: [PHP] fastest parsing first!

2003-06-11 Thread Thomas Hochstetter
It really depends, mostly it is external ... to accommodate small variations I have some style attributes around. T -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 06:30 PM To: Thomas Hochstetter; [EMAIL PROTECTED] Subject: RE: [PHP] fastest parsing

[PHP] fastest parsing first!

2003-06-11 Thread Thomas Hochstetter
Hi, I have a question concerning the parsing of scripts. The question is what will be parsed the quickest: much inline php (dirty) code, or let the code generate the html on the fly? I frequently use css ALOT! Does that make any difference to php (apart from making the file quite messy)? Any othe

[PHP] Rather unrelated

2003-06-09 Thread Thomas Hochstetter
Hi guys, sorry that i am asking this rather non-php question here. I know how anoying it is to get these unrelated mails ... it might just have to do with the apache ... or whatever: [problem] if i declare in an external stylesheet the scrollbar-track-color to be whatever, it does not show. even if