[PHP] Re: Undefined index ???

2004-06-09 Thread Torsten Roehr
Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] No, it's not set to NULL it just emty... Empty means: $_SESSION['user_status'] = ''; or $_SESSION['user_status'] = 0; Not setting it does NOT mean it's empty. Torsten .M Torsten Roehr wrote: Michael Jonsson

Re: [PHP] Undefined index ???

2004-06-09 Thread Torsten Roehr
it hard to back track errors. Always develop with error reporting set to E_ALL. You may set a lower level for your production environment and disable the display of errors: ini_set('display_errors', 0); Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: dynamically build array from db

2004-06-08 Thread Torsten Roehr
arraypush but can only get it to work with a standard array...how can I do this? $array = array(); while ($sql-nextRecord()){ // figure out how to get $title and $page from your record set (do didn't say which DB layer you are using) $array[$title] = $page; } Regards, Torsten Roehr

[PHP] Re: 2 Websites on 1 url

2004-06-06 Thread Torsten Roehr
wants to use that ? Can anyone help me out with this one ? This was discussed earlier today in another thread. Go to the list archive and look out for Multiple URL Redirection: http://marc.theaimsgroup.com/?l=php-generalr=1b=200406w=2 Regards, Torsten Roehr -- PHP General Mailing List (http

[PHP] Re: PHP User Interface

2004-06-05 Thread Torsten Roehr
Of course it will take some time to get into it but will save you a lot of time in future projects. 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: PHP and HVCI

2004-06-03 Thread Torsten Roehr
Hi, google for 'php pear hbci'. You'll find some useful sites. Regards, Torsten Roehr Arndt Touby [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, does anybody have an idea how to implement HBCI-functionality to a PHP-Site? greetings Arndt Touby -- PHP General Mailing

[PHP] Re: Call JS Function with PHP Header()?

2004-06-03 Thread Torsten Roehr
how I might do it? Many thanks... -- Nick W Hi Nick, try this: echo script language=\JavaScript\ !-- this.print(); //-- /script; You have to put it into a valid HTML page. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Can session.save_path data be saved to a database instead of a file system?

2004-06-02 Thread Torsten Roehr
variables are set and get to use HTTP_Sessions static methods instead. But this shouldn't be much of a problem. It could even work without these changes by directly accessing $_SESSION. Bets regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: drop down menu populated from a directory

2004-06-01 Thread Torsten Roehr
Dustin Krysak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok - here is the relevant Quicktime code: !-- START QUICKTIME CONTENT -- object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B width=320 height=256 codebase=http://www.apple.com/qtactivex/qtplugin.cab; param

[PHP] Re: Simple calender

2004-05-31 Thread Torsten Roehr
Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, been looking at a lot of calenders most of them are either too big for my use (whole page), not free, in javascript or too complicated. I require a calender that is simple, loads fast,small and not javascript, the

Re: [PHP] Re: PHP Coding Standards

2004-05-31 Thread Torsten Roehr
Travis Low [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have to say I like everything about the PEAR coding standards except for the KR bracing style. I much prefer: if( foo ) { blah; } to if( foo ) { blah; } The latter form (KR) conserves

[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
to open the opening one... d On 31-May-04, at 2:39 AM, [EMAIL PROTECTED] wrote: From: Torsten Roehr [EMAIL PROTECTED] Date: May 30, 2004 5:14:28 PM PDT To: [EMAIL PROTECTED] Subject: Re: drop down menu populated from a directory Dustin Krysak [EMAIL PROTECTED] wrote in message

[PHP] Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
Dustin Krysak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ok, I added brackets and made my code to: ?php if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle))) { if ($file != '.' $file != '..') { $fileName =

[PHP] Re: drop down menu populated from a directory

2004-05-30 Thread Torsten Roehr
select tag goes here Haven't tested it. Hope it works and helps ;) Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text file wont' have newlines?

2004-05-29 Thread Torsten Roehr
Ashwin Purohit [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi everybody, I have this script in a file that allows users to upload files, and I want to know who submitted what so I write $userfile_name and $credit1(their name) to CREDIT.txt in the same directory like so :

[PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
examples in the PHP manual. What you want is this: $temp = 'composer' . $countything; Then use ${$temp} - it will efectively be $composer1. Take a look here: http://de2.php.net/manual/en/language.variables.variable.php Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net

[PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread Torsten Roehr
Maybe you could use a ready-made package such as PEAR's Mail_Mime: http://pear.php.net/package/Mail_Mime Regards, Torsten Roehr Matt Macleod [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been having a little trouble configuring a script to send a multipart email using PHP

Re: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
I.A. Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks, Torsten. That clears things up quite a bit. I do find the PHP manual a little heavy going sometimes. Does this mean then that I have to do this: $tempcomposer = 'composer' . $countything; $tempsubheading =

[PHP] Re: Mysql Problem

2004-05-28 Thread Torsten Roehr
! Please set your error reporting to E_ALL while developing: ini_set('error_reporting', E_ALL); Regards, Torsten Roehr $mysql_rslt1 = mysql_query($sql, $mysql_bconn) or die (Could not get data); while ($rec1 = mysql_fetch_array ($mysql_rslt1)) { echo some stuff here; } Now the problem

Re: [PHP] making selection in drop down

2004-05-28 Thread Torsten Roehr
['loc_city']; echo option value=\$v\ ; // if current loc_id is previously selected loc_id set selected echo ($_POST['sellocation'] == $v) ? 'selected' : ''; echo $option[$i]$n/option; } Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] datetime formatting problem

2004-05-28 Thread Torsten Roehr
($val) { $timestamp = strtotime($val); return date('M d, Y g:i A', $timestamp); } Regards, Torsten Roehr // open database connection $connection = mysql_connect($host, $user, $pass) or die (Unable to connect!); // select database mysql_select_db($db) or die (Unable to select

[PHP] Re: session HTML target = _blank element

2004-05-26 Thread Torsten Roehr
Hardik Doshi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi group, I have discovered a strange behaviour while using session. I have a page from which i am opening other pages using target = _blank element. Now when i open the child page, it doesn't get $_SESSION values. I

[PHP] Re: File Upload within form

2004-05-26 Thread Torsten Roehr
'] . 'p'; echo 'File size: ' . $_FILES['spec']['size'] . ' bytesp'; } if(copy($file, $path/$filename)){ This should be: if (copy($_FILES['file']['tmp_name'], $path/$filename)) { Regards, Torsten Roehr print(Your File was uploaded successfully); } else{ print(ERROR, your file

[PHP] Re: clearing new pages

2004-05-26 Thread Torsten Roehr
this: a.php: echo 'hello'; header('location: b.php'); exit; Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Torsten Roehr
for your session data? You could easily set up a test script with PEAR's DB and HTTP_Session. I'm using this configuration and my provider just upgraded to 4.3.6 - no problems at all. http://pear.php.net/package/DB http://pear.php.net/package/HTTP_Session Regards, Torsten Roehr -- PHP General

Re: [PHP] Re: Customer Session Handlers Using MySQL

2004-05-25 Thread Torsten Roehr
container: http://pear.php.net/package/HTTP_Session Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: best way to do this with arrays...

2004-05-24 Thread Torsten Roehr
it works for you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to display all keys in a multi-dim array?

2004-05-23 Thread Torsten Roehr
['a']['b']['c']['d'] = 4; What I need is to be able to somehow print out the values a,b,c and d based on the search result for 4. Could you describe a bit more in detail what you mean with based on search result for 4? Thanks and best regards, Torsten Roehr -- PHP General Mailing List (http

Re: [PHP] Re: How to display all keys in a multi-dim array?

2004-05-23 Thread Torsten Roehr
Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Torsten, Sunday, May 23, 2004, 6:44:08 PM, you wrote: $array = array(); $array['a'] = 1; $array['a']['b'] = 2; $array['a']['b']['c'] = 3; $array['a']['b']['c']['d'] = 4; TR Could you describe a bit more

[PHP] Re: sessions

2004-05-23 Thread Torsten Roehr
using cookies or passing the session id via GET? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
Ian Barnes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, [code] $file=file(/ian/testing.file); file://Load the file into array unset($file[0]); file://Remove the first #gc line foreach($file as $line){ // Run through each array line $array[]=explode(,,

[PHP] Re: RSS/RDF generator

2004-05-22 Thread Torsten Roehr
Electroteque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I was wondering if there is a standard pear class like the XML_Tree to build RSS/RDF documents from the database ? Let me know You just had to go to pear.php.net and type rss into the search form - not too much

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
Ian Barnes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, [code] $file=file(/ian/testing.file); file://Load the file into array unset($file[0]); file://Remove the first #gc line foreach($file as $line){ // Run through each array line $array[]=explode(,,

Re: [PHP] Re: RSS/RDF generator

2004-05-22 Thread Torsten Roehr
Electroteque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You just had to go to pear.php.net and type rss into the search form - not too much effort, right? http://pear.php.net/package/XML_RSS Regards, Torsten Hi there, if you read my email properly build RSS/RDF, not

[PHP] Re: concatenating strings

2004-05-22 Thread Torsten Roehr
Bill Freeburg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] how do I add newline commands in the middle of a text string? I'm sending an email with the function mail($sendto,$subject,$message,$headers) The message is $message = My name is . $myname . My favorite color is .

[PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
Michael R. Wayne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've posted several times mentioning that I am completely unable to cause sessions to persist. Over the intervening time, I have replicated this problem to a different machine, with the same results. Here's a recap

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
Michael R. Wayne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote: As far as I remember session.use_trans_sid does NOT work with forms (action attribute). Have you tried appending it manually to the action?: Well

[PHP] Re: MDB2 and single INSERT statement, prepare+execute or just query?

2004-05-21 Thread Torsten Roehr
than speed. Finally, is this the right place to ask questions about MDB2, or is there a more specific group for discussing Pear projects? Please send your question to the PEAR mailing list php.pear.general Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: what is the preferred method for outputting HTML?

2004-05-21 Thread Torsten Roehr
, hr; Does PHP have something similar or do I have to write the raw HTML? Go to http://pear.php.net and search for 'HTML'. There are several classes for outputting HTML. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
Michael R. Wayne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: Sorry, I'm an idiot! The ? was missing: form method=post action=xxx.php??= SID; ? Well, I spoke too soon. It does work, but only the SECOND time

[PHP] Re: Date Function - Empty Value

2004-05-20 Thread Torsten Roehr
Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Gabe [EMAIL

[PHP] Re: an array question

2004-05-20 Thread Torsten Roehr
Blake Schroeder [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is wrong with whis syntax: $array = array($_POST['input_1'],$_POST['input_2']); You don't need the double quotes: $array = array($_POST['input_1'], $_POST['input_2']); Regards, Torsten -- PHP General Mailing

[PHP] Re: Date Function - Empty Value

2004-05-19 Thread Torsten Roehr
Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Environment: PHP 4.3.6 Access DB W2K IIS 5 I'm trying to store a date in a date/time field using the short date format ( m/d/ ). For some reason it won't let me post an empty value to that field in the DB. I've tried

[PHP] Re: Date Function - Empty Value

2004-05-19 Thread Torsten Roehr
Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Environment: PHP 4.3.6 Access DB W2K IIS 5

[PHP] Re: Date Function - Empty Value

2004-05-19 Thread Torsten Roehr
Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Gabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Environment: PHP 4.3.6 Access DB W2K IIS 5 I'm trying to store a date in a date/time field using the short date format ( m/d/

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Torsten Roehr
Vans Hallden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is one way: (probably not the best) I was able to get almost everything working with your help. Thanks!!! :) average ages for male/female respondents (database column 'age') SELECT AVG(age) FROM tablename WHERE

Re: [PHP] between date

2004-05-18 Thread Torsten Roehr
Jay Blanchard [EMAIL PROTECTED] wrote in message ews:[EMAIL PROTECTED] [snip] I have a table whereby I use the php date() and time() function. I retrieve the data etc, no problem. but I now need to perform a query of between dates. Is there a function or method to perform this. [/snip] Use

[PHP] Re: change database from mysql to mssql

2004-05-17 Thread Torsten Roehr
David [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I have been using mysql as the database for my PHP application. Now my manager ordered me to use Microsoft SQL Server as the database. I have been using the mysql interface to access the database, so I have to change my

[PHP] How to get class name in static function (PHP 4.2.3)

2004-05-16 Thread Torsten Roehr
appreciated. Thanks in advance! Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Carrying Variables

2004-05-15 Thread Torsten Roehr
Ronald The Newbie Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How would I carry a variable from one page to another Here is what I mean I have a send.php page and this is sent to insert_into_database.php where the values of the previous page are inserted into the

[PHP] Re: Carrying Variables

2004-05-15 Thread Torsten Roehr
with '?=' (short form for echo): META HTTP-EQUIV=refresh content=10; URL=./check.php?Event_Type=?= $_POST['Event_Type']; ? This should work. Regards, Torsten /head check.php ? $event = $_GET['Event_Type']; echo $event; ? This is still not working for me Torsten Roehr [EMAIL PROTECTED] wrote

[PHP] Re: New Newbie Question

2004-05-15 Thread Torsten Roehr
Ronald The Newbie Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is my problem: When I get the value of $date and I echo it it shows up just fine $date = date(Y-m-d H:i); echo $date; 2004-05-15 16:20 but when I go to insert the value into a form like this

[PHP] Re: New Newbie Question

2004-05-15 Thread Torsten Roehr
Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ronald The Newbie Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is my problem: When I get the value of $date and I echo it it shows up just fine $date = date(Y-m-d H:i); echo $date; 2004

[PHP] Re: export mysql to excel

2004-05-14 Thread Torsten Roehr
Curlybraces Technologies Ltd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi , i want to export data in mysql to excel .. but problem is mysql runs in the linux machine , How can i get that data from mysql-Linux machine to windows-Excel machine , plz help asap thanx in advance

Re: [PHP] tracking users

2004-05-14 Thread Torsten Roehr
Alessandro Vitale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I am currently running a web application which has an increasing number of users. The application uses PHP sessions. As administrator, I would like to know which users are currently logged in. Any brief

[PHP] Re: breaking the string

2004-05-14 Thread Torsten Roehr
Gowthaman Ramasamy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello list, can we split a string into substrings of particular size. for example .. i have as sting of 1000 characters. can i split it into stings of 150 and feed them into an array. This should be EXACTLY what

[PHP] Re: Best way to do Last 3 Items Viewed

2004-05-14 Thread Torsten Roehr
Chuck Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyone have any code snippits that would allow me to do a Last 3 Items Viewed like on ebay? Thanks, Chuck Why not mark your records with a timestamp at every view and then do a limited select sorted by the timestamp?

[PHP] Re: Zip-code Form Validation Scripts and Zipcode Program

2004-05-13 Thread Torsten Roehr
Ryan Munevar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey Guys, Question 1: Does anyone have a really good php form validation script for Zip-codes? Question 2: Does anyone know of a great depository of form validation scripts for all kinds of form inputs? Take a look at

[PHP] Re: problem install pws and php

2004-05-13 Thread Torsten Roehr
Lee 03 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i am a beginner for php programming, my OS is win98 while my webserver is PWS, all is in the same machine,when i try to run my internet explorer( type in http://localhost/phpinfo.php), phpinfo.php cannot be display. i try to

[PHP] Re: mysql blob and phpmysqladmin

2004-05-13 Thread Torsten Roehr
Jianping Zhu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have mysql table call com. One colum of table com will store user's comments. Because user-provided comment might be too big to fit in char(255), i use blob. but when i try to see it by use phpmysqladmin, i can only see

[PHP] Re: include (or require) doesn't seem to work

2004-05-12 Thread Torsten Roehr
a closer look later and report the problem if I find it. Thanks again, Daniel Using the absolute path works as well - but you have to use the full LOCAL file path, e.g. /htdocs/www/your-domain etc. You can get this value from $_SERVER['DOCUMENT_ROOT']. Regards, Torsten Torsten Roehr [EMAIL

[PHP] Re: User/Group rights system?

2004-05-12 Thread Torsten Roehr
David David [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Does anyone know of an open source user/group based permission system built with php/MySQL? That is, the effective rights for any user on a specific secured object are computed from various permit/deny permissions

[PHP] Re: Memory usage

2004-05-12 Thread Torsten Roehr
Oliver Hankeln [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! I get memory exceded errors and want to find out why. So I am looking for a way to determine how much memory is currently beeing used by my script. Is this possible? getPID + reading from /proc dosent work because

[PHP] Re: php calender

2004-05-11 Thread Torsten Roehr
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am currently working on a site for a vacation rental company. They want the ability to show users the availability of certain properties. The availability will be held in a mysql db so I assume I will have to

[PHP] Re: include (or require) doesn't seem to work

2004-05-11 Thread Torsten Roehr
Daniel Barbar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm almost ashamed to ask this question as surely enough the problem is something very basic but, nonetheless, I can't put my finger on it. I'm trying to implement the concept of a library (library.php)

[PHP] Re: include (or require) doesn't seem to work

2004-05-11 Thread Torsten Roehr
Try including it as a local file: require_once library.php'; // if it is in the same directory as the file you Forgot a quote here, sorry: require_once 'library.php'; Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: thumbnails of images

2004-05-10 Thread Torsten Roehr
John [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there any code or function out there that gives you a thumbnail of an image in the size and compression means you specify?? ive been looking, but found nothing, youd think thered be a function --

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Torsten Roehr
Amanda Hemmerich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also, the cheaper, the better, and free is best! Older versions are available for free but may not be used commercially: http://www.aditus.nu/jpgraph/jpdownload.php Regards, Torsten Thanks again. On Mon, 10 May

Re: [PHP] Re: thumbnails of images

2004-05-10 Thread Torsten Roehr
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] won't the gd library do this? http://www.php.net/manual/en/function.exif-thumbnail.php if there is a better function..I am interested in it also as I have to do this something this week for a project. Thanks, Eddie

[PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I search on php.net and couldn't find the function. I need a function that will remove characters in the string until it reached the pattern and remove characters in the string after another pattern. The program reads

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
20004 Is the character you want to remove ('t') always the same? Torsten From: Torsten Roehr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: Remove cahracters in string Date: Mon, 10 May 2004 22:37:36 +0200 Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: exclude_once(); ?

2004-05-10 Thread Torsten Roehr
Matthias H. Risse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi again! Question: Does anyone know of a possibility to exclude files which have been included _before_ my script starts on the fly (e.g. at the first lines after the entrypoint) ? Reasons: This ISP of my

[PHP] Re: Complicated sql for search query ?

2004-05-10 Thread Torsten Roehr
Dave Carrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi List, I think this a complicated sql query but I am sure one of you gurus will show me how easy this is. I am doing a search script an have it finding multiple words and highlighting those words. Now my issue is how do I

Re: [PHP] Re: form submission logic

2004-05-10 Thread Torsten Roehr
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] This is more of a HTML than a PHP question, but anyway: It doesn't matter where you put the buttons as long as they are INSIDE the form-tag and have different names. [/snip] Actually you can name them all the same

[PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
Verdon Vaillancourt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi :) I'm trying to put a stop in a foreach statement following the user suggestion here, php.net/manual/en/control-structures.foreach.php Not really knowing what I am doing, I am running into some synatx problems.

[PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
This is my attempt to count items and put a stop in the foreach so it only returns 5 items. foreach ($this-_content as $n = $item) { if ($n==5) break; } else if ($this-_content[$n] = $item['type'] == 'item'){ $elements['ITEM_LINK'] =

Re: [PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Torsten Roehr ([EMAIL PROTECTED]): Sorry, I mixed up the for and the foreach syntaxes. Here my (hopefully correct) loop proposal: for ($i; $i 5; $i++) { for($i=0; ...) I wouldn't suggest this method

[PHP] Re: Active PHP Sessions

2004-05-07 Thread Torsten Roehr
Paul Higgins [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I'm on a shared server, and I do not believe that I have access to the /tmp directory where the session files are stored (I believe that is how it works :). I want to keep track of which sessions are active.

Re: [PHP] Re: Active PHP Sessions

2004-05-07 Thread Torsten Roehr
. The session table has a timestamp column named expiry which will make it easy to count the active sessions. By the way, doing the DB session count should also be faster than counting the files in your /tmp dir ;) Regards, Torsten Thanks From: Torsten Roehr [EMAIL PROTECTED] To: [EMAIL PROTECTED

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
Aaron Wolski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Was wondering if someone had any idea's on this logic and if it'd work, before I tried to implement it: Within the form/form tags I have my buttons - Publish, Unpublish, New, Edit and Delete. Next I have a

Re: [PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
Adam Voigt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote: This is more of a HTML than a PHP question, but anyway: It doesn't matter where you put the buttons as long as they are INSIDE the form-tag and have different names

[PHP] Re: please remove this user

2004-05-07 Thread Torsten Roehr
Tim Traver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can any admin remove this user from the list ? Advance Credit Suisse Bank [EMAIL PROTECTED] Every time I post, I get an autoresponse from that address... Anyone else get that ? Unfortunately, yes. Torsten Thanks,

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
Kim Steinhaug [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I would include another hidden field and name it something like ACTION. I would also include a checkbox on every item you want to do something with like this : input type=checkbox name=item[] value=?=$databaseID?

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
. -- www.steinhaug.com - www.easywebshop.no - www.webkitpro.com -- Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kim Steinhaug [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Class Help Extended

2004-05-06 Thread Torsten Roehr
Richard Harb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] More often than not it's a good thing to assign 'default' values to class variables like that. In this case though I've observed that common practice is to get the user/pass values from a config file and pass them along as

[PHP] Re: I can't make session work, but cookie can, why?

2004-05-06 Thread Torsten Roehr
Told [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I can't make session work if I set session.use_trans_sid = 0, or I must append SID to the URI to get session work. And, the cookie works OK. Here is my test code: ?php session_start(); if (!isset($_SESSION['test'])) {

[PHP] Re: Calendar math .... how to count in week days....?

2004-05-06 Thread Torsten Roehr
Anthony [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've run into a bit of a problem, that I know has been dealt with before, but I don't know how to deal with it. Very simple, I have an application that needs to do calendar math and do it specifically on business days. I need

[PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
Msa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 'SELECT * FROM table WHERE YEAR(date) = ' . date('Y') . ' AND MONTH(date) = ' . date('m') . ' ORDER BY SORT DESC' What column type is your date column of? I know that the above statement works with the MySQL date (-MM-DD)

Re: [PHP] Re: repeating data from one column until data from anothercolumn changes

2004-05-04 Thread Torsten Roehr
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] msa wrote: My date format is as aboveI am getting the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
Msa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] date('m') was not parsed by php as it was in the string. Syntax highlighting would help you see it. Try: SELECT * FROM NewsArchive WHERE YEAR(date) = '

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
Daniel Clark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you looping through the record set? SELECT * FROM NewsArchive WHERE YEAR(date) = ' . date('Y') . ' AND MONTH(date) =' . date('m') . ' ORDER BY sort DESC; Well, still not working...but maybe closer? Not getting

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
Msa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Daniel Clark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you looping through the record set? i thought I was, but it isn't working!! here is the code with all of the latest suggestions. start code at top

[PHP] Re: Frage

2004-05-02 Thread Torsten Roehr
Draw-A-Line [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hallo, ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular erstellt und darin ist ein file field eingebettet zum Hochladen von Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype=multipart/form-data

[PHP] Re: @session_start()?

2004-05-01 Thread Torsten Roehr
Brandon Goodin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I noticed this notation in one of the PEAR packages @session_start()? What is the purpose of the '@' sign? It suppresses/ignores any error output for this function. Regards, Torsten Thanks Brandon -- PHP

[PHP] Re: reversing an IF statement

2004-05-01 Thread Torsten Roehr
Kim Steinhaug [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Often I end up using a dumb IF statement which to me seems that it could have been done some other way. Example : if( ($_GET[id]==1) or ($_GET[mode]==home) or ((!isset($_GET[item])) ($_GET[mode]==news))

Re: [PHP] - Delete records in an Access DB

2004-05-01 Thread Torsten Roehr
So the problem is not the delete statement but that you cannot even open a connection, right? Have you tried PHP's ODBC functions to connect to the Access DB?: http://de.php.net/manual/en/function.odbc-connect.php There are some user comments regarding Access - maybe this helps. Regards,

[PHP] Re: popup windows variables

2004-04-30 Thread Torsten Roehr
William Stokes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello I need to open a popup window from my php page . The information displayed on this popup depends on a variable value on the first page. How do I paste/move the variable value to the popup window. The popup is

[PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
Frederic Noyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello there ! I am trying to fill and then compare two arrays: one filled by a foreach construct, and the second by a while construct. I check both with a print_r to be sure that both are correctly filled (which seems to

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
Frederic Noyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 30 avr. 04, at 11:00, Torsten Roehr wrote: I think this is correct because the 3 key/value pairs from the first array are NOT in the second one. I think the combination of key and value are relevant

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
Frederic Noyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 30 avr. 04, at 11:31, Torsten Roehr wrote: Frederic Noyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 30 avr. 04, at 11:00, Torsten Roehr wrote: I think this is correct because the 3 key

<    1   2   3   4   >