Re: [PHP] htaccess / php

2003-12-01 Thread Jason Wong
On Tuesday 02 December 2003 14:34, Ed Lazor wrote: > What do I put in .htaccess for Apache to process a named "archive" as a PHP > file? > > I did it before and can't seem to find what I did. Requests to > http://myhost.com/archive/page1.php would get processed by the file named > archive and page

[PHP] htaccess / php

2003-12-01 Thread Ed Lazor
What do I put in .htaccess for Apache to process a named "archive" as a PHP file? I did it before and can't seem to find what I did. Requests to http://myhost.com/archive/page1.php would get processed by the file named archive and page1.php would just be a parameter that I could access from wit

[PHP] htaccess / PHP

2003-12-01 Thread Ed Lazor
What do I put in .htaccess for Apache to process a named "archive" as a PHP file? I did it before and can't seem to find what I did. Requests to http://myhost.com/archive/page1.php would get processed by the file named archive and page1.php would just be a parameter that I could access from with

[PHP] function array problems

2003-12-01 Thread Steve Turner
Hi, Having some problems with multi-dimentional arrays. I am creatng an array using some database data, and adding stuff like an image tag, and hyperlink. Then passing this to another function that creates an Html table from an array. Here is the function to create the table from an a

Re: [PHP] Please please help - very very urgent

2003-12-01 Thread Manisha Sathe
A big thanks to both of you, it got solved, it was a config problem only and with the help of ISP we could resolve it, Thanks once again manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working as a PHP/database developer..

2003-12-01 Thread Joshua D. Drake
Hello, As a development company who has been profitable for 6 years I suggest the following: 1. There are no fixed fees. All time will be billed. 2. Put everything in writing. If they want you to change the f to F make them put it in writing. 3. If you do have a flat fee for something...

Re: [PHP] Working as a PHP/database developer..

2003-12-01 Thread Justin French
On Tuesday, December 2, 2003, at 12:04 PM, Video Populares et Optimates wrote: Ahoy! I'm sitting here, pondering on a problem that has just occurred to me. Having a short though intensive period of experience with PHP, I'm now in the process of being "swallowed" up by a group of web designers

Re: [PHP] Important notice

2003-12-01 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Chris W. Parker wrote: > > [EMAIL PROTECTED] > > on Wednesday, November 26, 2003 9:30 PM said: > > > >>If you feel this transaction was made > >>by our mistake, please press "No". > > > > I keep clicking "N

Re: [PHP] Please please help - very very urgent

2003-12-01 Thread Chris Shiflett
--- Manisha Sathe <[EMAIL PROTECTED]> wrote: > I am developing one site. Initially it was working properly, but > later installed certificate so now instead of http:// now it has > become https:// > > Now all weired things started happenning, it asks whether i want to > download the file ? if i op

Re: [PHP] Please please help - very very urgent

2003-12-01 Thread Robert Cummings
On Mon, 2003-12-01 at 22:46, Manisha Sathe wrote: > I am developing one site. Initially it was working properly, but later > installed certificate so now instead of http:// now it has become https:// > > Now all weired things started happenning, it asks whether i want to download > the file ? if i

[PHP] Please please help - very very urgent

2003-12-01 Thread Manisha Sathe
I am developing one site. Initially it was working properly, but later installed certificate so now instead of http:// now it has become https:// Now all weired things started happenning, it asks whether i want to download the file ? if i open the file then it shows me all 'Source Codes' instead o

Re: [PHP] Picture Width and Height in $_FILES

2003-12-01 Thread Richard Davey
Hello Dimitri, Tuesday, December 2, 2003, 2:40:27 AM, you wrote: DM> I've seen the code somewhere but can't remember what it is exactly. DM> Basically I need to know what the PHP is to get the picture width and DM> height. Use getimagesize() on the uploaded file. See PHP manual for details. --

[PHP] Picture Width and Height in $_FILES

2003-12-01 Thread Dimitri Marshall
Hi there, I've seen the code somewhere but can't remember what it is exactly. Basically I need to know what the PHP is to get the picture width and height. I tried: $pic = $_FILES[$objectNumber]; $width = $pic['width']; $height = $pic['height']; ... with no success. Any help is g

Re: [PHP] Working as a PHP/database developer..

2003-12-01 Thread Jason Sheets
Turck MMCache is a free optimizer/encoder. There is a free web based front end to the encoding part of it available at http://phpcoder.shadonet.com. You can find Turck MMCache at http://turck-mmcache.sourceforge.net It runs on Windows, Linux, BSD, and most other platforms and works with PHP 4

Re: [PHP] Variable in $_FILES?

2003-12-01 Thread Kelly Hallman
On Mon, 1 Dec 2003, Dimitri Marshall wrote: > This is what I'm trying to do: > $pic = $_FILES['object$objectNumber']; > $picName = $pic['name']; > ... > $objectNumber is being defined, but for some reason this code won't work. > Can someone tell me why and also what I can do to make it work? $_FIL

Re: [PHP] Working as a PHP/database developer..

2003-12-01 Thread Richard Davey
Hello Video, Tuesday, December 2, 2003, 1:04:34 AM, you wrote: VPeO> Now, how do you charge your services? Do you do it on a VPeO> time-slot basis (seems kind of awkard to me since much PHP code VPeO> can be reused a l o t!) or do you do it on the basis of the size VPeO> of projects and whether n

Re: [PHP] Refreshing in forms using post

2003-12-01 Thread Richard Davey
Hello Matt, Monday, December 1, 2003, 10:31:23 PM, you wrote: MG> Suppose I have a form. Upon submission, the metadata is posted to a MG> processing script (a separate PHP file), which parses it and then sends the MG> user back to a particular page using the header function. If said user MG> cl

Re[2]: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Richard Davey
Hello rogue, Monday, December 1, 2003, 10:39:02 PM, you wrote: r> echo looks fine (no error in the URL). I am stumped. Is there anything r> besides output to the screen before header() that breaks it? Other than browser incompatibility, not usually. You can use the following to determine if a h

[PHP] Working as a PHP/database developer..

2003-12-01 Thread Video Populares et Optimates
Ahoy! I'm sitting here, pondering on a problem that has just occurred to me. Having a short though intensive period of experience with PHP, I'm now in the process of being "swallowed" up by a group of web designers. That is, I've been offered a job opportunity. Now, how do you charge your serv

[PHP] Re: Variable in $_FILES?

2003-12-01 Thread Dimitri Marshall
Just to answer my own question, but for reference for anyone else who has this problem, I made a simple error (not very experienced with PHP). Anyway, turns out that 'object$objectNumber' is different than 'object'$objectNumber and also different that just $objectNumber. As most of you know, puttin

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Tom Rogers
Hi, Tuesday, December 2, 2003, 7:17:58 AM, you wrote: r> Hi all, r> I have this in a template: r> $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; r> header("Location: $redirect"); r> Only, nothing happens when this code is executed. Nothing. It gets r> completely ignored. r> I even

[PHP] 12 seconds!?!?

2003-12-01 Thread Comex
I have a script that replicates a human on a message board, and its logs (logging in, going to inventory, etc.) occur every 12 (no more no less) seconds. Do you know why? function sendreq($addy,$type,$content = "",$cookie = "",$useragent="",$host="---") { $msg = strtoupper($ty

[PHP] Variable in $_FILES?

2003-12-01 Thread Dimitri Marshall
Hi there, This is what I'm trying to do: $pic = $_FILES['object$objectNumber']; $picName = $pic['name']; $pictmp = $pic['tmp_name']; $objectNumber is being defined, but for some reason this code won't work. Can someone tell me why and also what I can do to make it work? Thanks in advance, Dimitr

[PHP] PEAR: HTML_Progress -- how do I actually use this now?!

2003-12-01 Thread Daevid Vincent
I was very excited when I saw this link and the examples on the site. So I've downloaded all the files and installed them all. Now I don't know what to do with it or how to use it!? The package doesn't have any humanly useable tutorials or quick start or even a text file describing how I would put

Re: [PHP] Optimizing PHP Relevancy Ranking Algorithm

2003-12-01 Thread Raditha Dissanayake
What david says + you have a nested loop, that means the running time is propotional to the square of the number of inputs. - I haven't looked too hard either. David Otton wrote: On Fri, 28 Nov 2003 03:26:08 -0800, you wrote: Anybody got a few ideas on how to speed up these two sluggish li

Re: [PHP] [Stats] PHP Net List: November 2003

2003-12-01 Thread Bill Doerrfeld
At 7:05 PM -0500 12/1/03, David T-G wrote: Bill -- ...and then Bill Doerrfeld said... % ... % November, 2003 ... % % Top 20 Threads by Number of Posts % -- ... % [PHP] % and22 [

Re: [PHP] Does anyone have Upload meter php codes?

2003-12-01 Thread Raditha Dissanayake
Megaupload does not reply on DHTML. And sorry guys i have given the wrong link in the prev message. the correct one is http://www.raditha.com/megaupload/ Duncan Hill wrote: On Thursday 27 November 2003 18:21, Ryan A wrote: http://pear.php.net/package/HTML_Progress Very nice, But seem

RE: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris W. Parker
rogue on Monday, December 01, 2003 2:39 PM said: > echo looks fine (no error in the URL). I am stumped. Is there anything > besides output to the screen before header() that breaks it? Create a file with only the following code and see what happens. http://www.goog

Re: [PHP] [Stats] PHP Net List: November 2003

2003-12-01 Thread David T-G
Bill -- ...and then Bill Doerrfeld said... % ... % November, 2003 ... % % Top 20 Threads by Number of Posts % -- ... % [PHP] % and22 [snip] Tee hee -- you should validate you

[PHP] [Stats] PHP Net List: November 2003

2003-12-01 Thread Bill Doerrfeld
-- Searchable archives for this list are available at --

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Curt Zirzow
* Thus wrote rogue ([EMAIL PROTECTED]): > Okay. I reworked the code a bit, but still no go. > > Here is what I have: > > $redirect = "http://"; . $_SERVER['HTTP_HOST'] . > "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; > error_reporting(E_ALL); > echo "Location: $redirect"; > header(

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> wrote: > echo looks fine (no error in the URL). I am stumped. Is there > anything besides output to the screen before header() that breaks > it? I'm sure there are lots of things, but I can't think of why your code would not work. You did remove the echo before tryin

Re: [PHP] Refreshing in forms using post

2003-12-01 Thread Marek Kilimajer
What header are you using? If you use Location header, this should not happen. Matt Grimm wrote: Suppose I have a form. Upon submission, the metadata is posted to a processing script (a separate PHP file), which parses it and then sends the user back to a particular page using the header functio

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread rogue
hi again, echo looks fine (no error in the URL). I am stumped. Is there anything besides output to the screen before header() that breaks it? thanks On Dec 1, 2003, at 5:13 PM, Chris Shiflett wrote: --- rogue <[EMAIL PROTECTED]> wrote: $redirect = "http://"; . $_SERVER['HTTP_HOST'] . "/cm/clie

Re: [PHP] random question generation

2003-12-01 Thread Justin French
On Tuesday, December 2, 2003, at 02:01 AM, Frank Tudor wrote: I am building an application that has course material and one of the requirments is that questions related to course material pop up randomly in relation to the question bank and to time. So if there are 15 pages in a section and four

[PHP] Refreshing in forms using post

2003-12-01 Thread Matt Grimm
Suppose I have a form. Upon submission, the metadata is posted to a processing script (a separate PHP file), which parses it and then sends the user back to a particular page using the header function. If said user clicks their browser's back button, the aforementioned processing script will re-p

[PHP] Search and Replace with WinWord and COM Objects?

2003-12-01 Thread jon
Hey folks... Hopefully, I'm not the only person out there trying this stuff... but I haven't been able to find much documentation. I'm trying to do basic search and replace with Word XP, but am not having any success... The basics work -- I can connect via com, write some stuff, save a file, etc.

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> wrote: > $redirect = "http://"; . $_SERVER['HTTP_HOST'] . > "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; > error_reporting(E_ALL); > echo "Location: $redirect"; > header("Location: $redirect"); I meant to try using a full URL first, then use echo if it

[PHP] RE: dhtml/css/javascript help

2003-12-01 Thread Dan McCullough
This is a bit offtopic. I need someone who is good at javascriptt/dhtml/css to help me with a piece of a project, I'm at the end of my rope and hoping I dont slip. I wont go into detail here but you can contact me at [EMAIL PROTECTED] The project is a small menu project with categories and subca

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread rogue
Okay. I reworked the code a bit, but still no go. Here is what I have: $redirect = "http://"; . $_SERVER['HTTP_HOST'] . "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; error_reporting(E_ALL); echo "Location: $redirect"; header("Location: $redirect"); I get NO errors at all :( It was

Re: [PHP] Error message trying to include a file

2003-12-01 Thread Curt Zirzow
* Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): > > I have an array filled with urls of javascript files and then I > include them one by one in a loop. > > for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ ){ > > include($this->page->javascript[$i]); > //This line above is l

Re: [PHP] question regarding subclasses, is this possible to do

2003-12-01 Thread Curt Zirzow
* Thus wrote Luke ([EMAIL PROTECTED]): > > $test->windows->showID(); > $test->windows("Window3")->showID(); > ?> > ---end php code-- You might want to read: http://php.net/oop Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- R

Re: [PHP] replace a chunk peace of string

2003-12-01 Thread Curt Zirzow
* Thus wrote ada ([EMAIL PROTECTED]): > > What do you mean trim() doesn't work? > > trim is a basic function that remove spaces on the left and the right at the > string : > " abc"->"abc" trim() removes more than spaces, please read: http://php.net/trim What I meant in my original post wa

[PHP] Error message trying to include a file

2003-12-01 Thread Matthias Wulkow
Hi php-general, sorry for the post before, forget the sentence about the writehead function. It means writeHead() (error Warning doesn't seem to be case sensitive...). It's the name of my method... :-( But it has nothing to do with the error itself... SvT -- Who is the ennemy? -- PHP General

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> wrote: > $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; > header("Location: $redirect"); > > Only, nothing happens when this code is executed. I would try two things, in this order: 1. Use a full URL. A Location header is defined in the specification as

[PHP] Error message trying to include a file

2003-12-01 Thread Matthias Wulkow
Hi php-general, I have an array filled with urls of javascript files and then I include them one by one in a loop. for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ ){ include($this->page->javascript[$i]); //This line above is line 52 shown on error warning } When I had only

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Curt Zirzow
* Thus wrote rogue ([EMAIL PROTECTED]): > > $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; > header("Location: $redirect"); > > Only, nothing happens when this code is executed. Nothing. It gets > completely ignored. > > I even tried: > > $redirect = "viewclient.php?id={$_REQUEST['

[PHP] question regarding subclasses, is this possible to do

2003-12-01 Thread Luke
Hi, i was wondering if the last line of the following code is possible somehow (the second last works perfect) but say i wanted to automatically get the id (or anything else for that particular window) would it be possible? or would i have to include a new function in windows called setID or someth

[PHP] header("Location: page.php") not redirecting

2003-12-01 Thread rogue
Hi all, I have this in a template: $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; header("Location: $redirect"); Only, nothing happens when this code is executed. Nothing. It gets completely ignored. I even tried: $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; echo $red

Re: [PHP] replace a chunk peace of string

2003-12-01 Thread ada
> What do you mean trim() doesn't work? trim is a basic function that remove spaces on the left and the right at the string : " abc"->"abc" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > When I do this script, I didn't get a ":" and numbers in second. > --snip-- > date("Y-m-d H:i:s"); > --snip-- > works fine with phpversion() 4.2.2 Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus

[PHP] PHP Community Site - Volunteers Needed

2003-12-01 Thread Chris Shiflett
PHP has one of the largest developer communities in the world, yet we have no community gathering place like those you can find for other languages (Perl has http://use.perl.org/, for example). Want to help change this? Read on. Don't care? Click delete. :-) I am coordinating the development of a

Re: [PHP] replace a chunk peace of string

2003-12-01 Thread Curt Zirzow
* Thus wrote ada ([EMAIL PROTECTED]): > select hex("a > ") > -> > 610D0A > always 0D0A at the ends :( > > I' m on windows, and i didn't manage to destroy this peace of string :( > trim() doesn't work ... What do you mean trim() doesn't work? Curt -- If eval() is the answer, you're almost cert

Re: [PHP] string

2003-12-01 Thread Matt Matijevich
Name|17|5|7|12|26|8|4|0|2|0|40|12.50|3|33.30|19 it should 16 pieces. Any thoughts on how I can get it to cut off at the 19, one thing that I should say is 19 is value that can change. Can't you just use the explode function? http://www.php.net/manual/en/function.explode.php -- PHP General M

[PHP] Kerberos authentication with PHP

2003-12-01 Thread Pablo Gosse
Hi all. I'd like to use Kerberos to authenticate users and I'm looking for a decent tutorial on how to accomplish this. I've Googled this and have searched the archives but I can't find any decent links which point to useful tutorials. Anyone have one they'd like to share? Cheers and TIA, Pabl

[PHP] string

2003-12-01 Thread php-general
I'm parsing some content I get back from a website, and I for most of the cases I get the infromation back and everything is formatted correctly. There is this one part where I get back a bunch of crap on the end. example:  

[PHP] configure hangs on SunOS 5.8

2003-12-01 Thread Bill Shupp
Hello, I'm trying to configure php 4.3.4 on SunOS 5.8, but configure hangs just after "checking host system type": bash-2.03# ./configure loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for working sed... sed checking host system

Re: [PHP] file uploads

2003-12-01 Thread Eugene Lee
On Mon, Dec 01, 2003 at 02:00:34PM +, Jon Bennett wrote: : : Hi Chris, : : I think you're referring to this: : : $_FILES["image"]["tmp_name"] : : In my class I pass this as a reference: : : $aArgs['Image'] = $_FILES["image"]; : : Then, $aImage in my storeBigImage() method is passed the :

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Adam i Agnieszka Gasiorowski FNORD
Sophie Mattoug wrote: > Sophie Mattoug wrote: > > > Adam i Agnieszka Gasiorowski FNORD wrote: > > > >> I'm trying to develop a regex for matching > >> with preg_match_all, I want to match such things > >> like image name, image alt text, image title in > >> construct like this: > >> > >> ...

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Adam i Agnieszka Gasiorowski FNORD
Sophie Mattoug wrote: > Adam i Agnieszka Gasiorowski FNORD wrote: > > > I'm trying to develop a regex for matching > > with preg_match_all, I want to match such things > > like image name, image alt text, image title in > > construct like this: > > > > html... > > > > > > > > te

[PHP] Contract Position at New York Post for PHP-PostgreSQL Developer

2003-12-01 Thread Heather Johnson
The New York Post is seeking a part-time consultant to participate in the planning and development of a web-based registration project. The position will last for approximately 3 months or until the candidate's role in the project is completed. The candidate will work with other programmers on

[PHP] Problems with ldap_modify() and very large entries

2003-12-01 Thread Peter J Hartman
Here is a problem which I've been completely unable to unravel. Basically, if I call ldap_modify (or ldap_mod_replace) with a VERY large amount of data in the attributes array (see ldif below), the browser will just turn and turn and turn and never finish or report anything. But, I can do a print_

[PHP] Re: Friendly dates

2003-12-01 Thread Scott Fletcher
Something like this, but this is not perfect.. The mktime seem to work only for Unix/Linux and not work for Windows. --snip-- function dateDiff($input_date) { //MSG #1 - Parameter1 must be in this date format --> "mm/dd/" //MSG #2 - This script does not include fix for the leap year...

Re: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > When I do this script, I didn't get a ":" and numbers in second. > --snip-- > date("Y-m-d H:i:s"); > --snip-- > > But when I do this script by adding a period to it, it worked okay. > --snip-- > date("Y-m-d H:i:s."); > --snip-- Either this is a bug

[PHP] Re: Friendly dates

2003-12-01 Thread Scott Fletcher
Perhap a date difference will help, PHP doesn't have this feature, date_diff() while C/C++ have this feature. So, there is a way, you can use the date() function and get the day difference. So, if you have one day difference, you use the if statement or switch statement to use the word 'Yesterday

Re: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Chris Shiflett
--- Al Costanzo <[EMAIL PROTECTED]> wrote: > This will not work because the page in question ends in .HTML but I > did discover a way to do what I need and an answer to many other > posts. > > Here is the answer: > > To make a PHP command to execute on a .html page create another page > ending in

Re: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Scott Fletcher
Okay thanks... I'll do a workaround for now until PHP get upgraded in the near future. "Thijs Lensselink" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote on maandag 1 december 2003 16:41: > > When I do this script, I didn't get a ":" and numbers in second. > : -

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Down't worry, it's sorted! Cheers, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ On 1 Dec

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
sorry, made a mistake when writing my email: return = $aNewImage['new_name']; should be: return $aNewImage['new_name']; Cheers, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Glouce

[PHP] Friendly dates

2003-12-01 Thread Richard Davey
Hi, I'm just wondering if anyone knows of a class/function (or easy way) to do the following: At the moment I display dates like this: Last message received: 30th Nov 2003 16:07 This is fine, but I would like to make them more friendly like so: Last message received: Yesterday, 16:07 I would

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
I'm trying to return a value if the file uploads correctly, using return, but I don't seem to be getting anything back. I've added this to my storeImages method return = $aNewImage['new_name']; and when I call the method from my addProduct() method I use this: $sThumbnailFileName = $this->_sto

RE: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Thijs Lensselink
Scott Fletcher wrote on maandag 1 december 2003 16:41: When I do this script, I didn't get a ":" and numbers in second. : --snip-- : date("Y-m-d H:i:s"); : --snip-- : : But when I do this script by adding a period to it, it worked : okay. --snip-- : date("Y-m-d H:i:s."); : --snip-- : : Thank

RE: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Jay Blanchard
[snip] When I do this script, I didn't get a ":" and numbers in second. --snip-- date("Y-m-d H:i:s"); --snip-- [/snip] When I cut and paste your code (PHP v 4.3.n) it works OK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date() function doesn't seem to work right...

2003-12-01 Thread Scott Fletcher
Hi Everyone!!! I noticed that date() function act a little funny, so I am wondering if anyone of you have noticed this problem or not. I'm just curious because I wanna know if it is my issue or is it a general issue for everyone. I'm using PHP version 4.2.3 on Unix machine. Please don't ask

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
well I'll be dammed, that was it! Geeze, you look at something for so long sometimes you can't see the wood for the trees I feel so stoopid now! Thanks, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b

Re: [PHP] file uploads

2003-12-01 Thread Pavel Jartsev
Jon Bennett wrote: Just to clarify about using move_uploaded_file() ... function addProduct(){ // Move the uploaded file to the correct location move_uploaded_file($$_FILES["image"]["tmp_name"], BASE_DIR."/_img/_products/".$iProductId."_".$fileName); } ... function storeBigImage(

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Ok, I've got it sorted now, but I'm buggered as to why this didn't work the way I hoped. It seems that if I use an indexed or associative array to store the location and new image file name, imagejpeg never works, but if I use a normal var it does !! what's with that! // doesn't work $aNewImage

[PHP] replace a chunk peace of string

2003-12-01 Thread ada
Hi, After ahavuing inseted my vvalues from a local file via : load infile ... I notice a strange peace of string in my fnal field : like : "kkv850 " select hex("kkv850 ") -> 6B6B763835300D0A select hex("a ") -> 610D0A always 0D0A at the ends :( I' m on windows, and i didn't manage to destroy this

[PHP] random question generation

2003-12-01 Thread Frank Tudor
I am building an application that has course material and one of the requirments is that questions related to course material pop up randomly in relation to the question bank and to time. So if there are 15 pages in a section and four questions need to populate somewhere after page 1 before the

RE: [PHP] String construction help required please

2003-12-01 Thread Wouter van Vliet
Jay Blanchard wrote: > [snip] >> I need to display : "$_POST[$var]," >> >> Including the "" and the , . >> >> I have tried : \"\"$_POST[\".$var.\"]," but that is very wrong. >> >> Could one of you kind list members show me what it should be please ? > > > You have a couple of options... just p

RE: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Wouter van Vliet wrote: > print "!!!"; > ob_start(); > include 'http://server.com/test/echo.php'; > $XML = ob_get_clean(); // or use ob_get_contents(); and ob_end_clean() for > PHP < 4.3 > print "???"; > > print '[Between this you'll get your XYZ]'; > print $XML; > print '[Bet

RE: [PHP] String construction help required please

2003-12-01 Thread Jay Blanchard
[snip] > I need to display : "$_POST[$var]," > > Including the "" and the , . > > I have tried : \"\"$_POST[\".$var.\"]," but that is very wrong. > > Could one of you kind list members show me what it should be please ? You have a couple of options... just pick the one that suits you... [/snip]

Re: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Jon Bennett
Hi Al, I'd add a scrolling tag to your iFrame, as you won't ever need it to scroll. hth Thanks, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts,

RE: [PHP] Export data

2003-12-01 Thread Jay Blanchard
[snip] Is it possible to export some data to MSOffice format ( .doc and .xls ) , OOffice ( .sxw and sxc ) or .rtf format with PHP [/snip] Yes, it is. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n o-answers.html -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Al Costanzo
Hi Jay, This will not work because the page in question ends in .HTML but I did discover a way to do what I need and an answer to many other posts. Here is the answer: To make a PHP command to execute on a .html page create another page ending in .php with the code there. Where you need to displ

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Hi Chris, I think you're referring to this: $_FILES["image"]["tmp_name"] In my class I pass this as a reference: $aArgs['Image'] = $_FILES["image"]; Then, $aImage in my storeBigImage() method is passed the $aArgs['Image'] when it's called: $this->storeBigImage($productID, $aArgs['Image']);

RE: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Jay Blanchard
[snip] If you use the date function in PhP you can get the date and it will not change in the cache since the actual code is not on the page that generated it. My question is how do I get the answer that I have in a PHP variable back to an HTML page and give it lets say to JavaScript to display. [

Re: [PHP] file uploads

2003-12-01 Thread Chris Hayes
PHP first gives the file a temporary name on a temporary location. This name is not the same as the name given in the upload form. I think the temp filename is in the $_FILES array too, do a print_r($_FILES) to check. Now, here's the strange bit, if I call my method and just use move_uploaded_

[PHP] Re: Export data

2003-12-01 Thread Al
> Is it possible to export some data to MSOffice format ( .doc and .xls ) , > OOffice ( .sxw and sxc ) or .rtf format with PHP The answer is sort of.. To write Excel files, you can use the Spreadsheet Excel Writer package available under the PEAR module. The module's site is at: http://pear.php.n

Re: [PHP] file uploads

2003-12-01 Thread Jon Bennett
Just to clarify about using move_uploaded_file() I call the storeBigImage methid from aother method like so function addProduct(){ $this->storeBigImage($ID, $_FILES["image"]); } that doesn't work, if I use this: function addProduct(){ // Move the uploaded file to the correct location

[PHP] file uploads

2003-12-01 Thread Jon Bennett
Hi, I have a file upload problem, but I don't think it's a permission thing (if only, that would be simple!). I have written a resizing method for a class I'm working on, and it always fails on the imageJpeg() at the end of the method. This is the error I get... imagejpeg(): Unable to open '

RE: [PHP] include-problem

2003-12-01 Thread Wouter van Vliet
Rasmus Lerdorf wrote: > On Mon, 1 Dec 2003, Sophie Mattoug wrote: >> Victor Spång Arthursson wrote: >> >>> Hi! >>> >>> I'm having a problem with including files. What I want to achieve is >>> to execute a PHP-script on another server, and then to include the >>> result (which will be XML-output)

RE: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Wouter van Vliet
Sophie Mattoug wrote: > Adam i Agnieszka Gasiorowski FNORD wrote: > >> I'm trying to develop a regex for matching with preg_match_all, I >> want to match such things like image name, image alt text, image >> title in construct like this: >> >> html... >> >>> style="style"> tex

Re: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Sophie Mattoug wrote: > Victor Spång Arthursson wrote: > > > Hi! > > > > I'm having a problem with including files. What I want to achieve is > > to execute a PHP-script on another server, and then to include the > > result (which will be XML-output) in another PHP-script (cu

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Sophie Mattoug
Sophie Mattoug wrote: Adam i Agnieszka Gasiorowski FNORD wrote: I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... text html... The rexex as for now is: defi

Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
Victor Spång Arthursson wrote: Hi! I'm having a problem with including files. What I want to achieve is to execute a PHP-script on another server, and then to include the result (which will be XML-output) in another PHP-script (currently on my local computer). On the server I have the file ht

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Sophie Mattoug
Adam i Agnieszka Gasiorowski FNORD wrote: I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... text html... The rexex as for now is: define( 'REGEX_I

[PHP] openssl_sign

2003-12-01 Thread Dietrich Heise
Hi, I try to generate the same signature than openssl_sign from the command line. I use the following command: openssl dgst -sha1 data_file | sed "s:.*\=\ ::" | openssl rsautl -inkey \ private_rsa.key -sign -out sign_file but the signatures are different :/ If I understand the PHP doku right,

[PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Adam i Agnieszka Gasiorowski FNORD
I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... text html... The rexex as for now is: define( 'REGEX_IMAGE_NAMES_AND_TITLES_AND_A

Re: [PHP] move_uploaded_file, umask, and permissions

2003-12-01 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % Message-ID: <[EMAIL PROTECTED]> Mister Underhill, I presume? :-) I only just noticed this :-) % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > I have set my umask to 117 (and I change it when making a directory) and % > I use move_up

  1   2   >