[PHP] String construction help required please

2003-12-01 Thread Dave Carrera
Hi List, I need to construct a string to visually show to the user some $_POST vars. 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 ? Thank you in

[PHP] my next web project

2003-12-01 Thread Xiao Fang
Thank God I'm able to post now! Hi, All, I just got my first web application up and running. It feels so exciting even though I'm still so junior. Now, next project since I'm already so addicted: I wonder if it's possible to write a php script to keep track of each move on a remote

Re: [PHP] my next web project

2003-12-01 Thread Robert Cummings
On Mon, 2003-12-01 at 02:00, Xiao Fang wrote: Thank God I'm able to post now! Hi, All, I just got my first web application up and running. It feels so exciting even though I'm still so junior. Now, next project since I'm already so addicted: I wonder if it's possible to write a

Re: [PHP] String construction help required please

2003-12-01 Thread Robert Cummings
On Mon, 2003-12-01 at 01:59, Dave Carrera wrote: Hi List, I need to construct a string to visually show to the user some $_POST vars. 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

Re: [PHP] my next web project

2003-12-01 Thread Justin French
On Monday, December 1, 2003, at 06:00 PM, Xiao Fang wrote: Hi, All, I just got my first web application up and running. It feels so exciting even though I'm still so junior. Now, next project since I'm already so addicted: I wonder if it's possible to write a php script to keep track of each

Re: [PHP] String construction help required please

2003-12-01 Thread Justin French
On Monday, December 1, 2003, at 05:59 PM, Dave Carrera wrote: I need to construct a string to visually show to the user some $_POST vars. 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

[PHP] Fastest loop code/best way to get database results into array

2003-12-01 Thread Galen
I'm working on some code that deals with a LOT of results from a MySQL database and drops them into an array. It deals with about 17,200 results on a very fast box in about 0.5 seconds, which is not too bad, until I realize I may need to call it on about that many results several times in a

Re: [PHP] Fastest loop code/best way to get database results into array

2003-12-01 Thread Robert Cummings
On Mon, 2003-12-01 at 03:06, Galen wrote: I'm working on some code that deals with a LOT of results from a MySQL database and drops them into an array. It deals with about 17,200 results on a very fast box in about 0.5 seconds, which is not too bad, until I realize I may need to call it on

Re: [PHP] Regular Expression Help Please

2003-12-01 Thread Rory McKinley
On 27 Nov 2003 at 11:48, Shaun wrote: Hi, I need to generate a lowercase alphanumeric passwrord thats 8 characters long, has anyone got a function that can do this? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Fastest loop code/best way to get database results into array

2003-12-01 Thread Eugene Lee
On Mon, Dec 01, 2003 at 03:24:35AM -0500, Robert Cummings wrote: : : On Mon, 2003-12-01 at 03:06, Galen wrote: : : I'm working on some code that deals with a LOT of results from a MySQL : database and drops them into an array. It deals with about 17,200 : results on a very fast box in about

[PHP] include-problem

2003-12-01 Thread Victor Spång Arthursson
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 http://server.com/test/echo.php

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

[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... div class=class style=style img src=img=name alt=alt title=title / span class=class style=style text

[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, a

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... div class=class style=style img src=img=name alt=alt title=title / span

Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
Victor Spng 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

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... div class=class style=style img src=img=name alt=alt

Re: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Sophie Mattoug wrote: Victor Spng 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

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... div class=class style=style img

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) in another

[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] 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] 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:

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

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 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']); All

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

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

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. iframe width=550 height=25 scrolling=false marginwidth=0 marginheight=0 frameborder=0 scrolling =no src=cache.php/iframe hth Thanks, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _

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... ? echo

RE: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Wouter van Vliet wrote: ?php 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 '[Between this

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 pick the one that suits

[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

[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 peace

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

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($ID,

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

[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

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

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-- : : Thanks, :

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 =

[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
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

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] 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. : --snip--

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 .php

[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

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, or you're

[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...

[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

[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

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... div class=class style=style img

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: html... div

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 :

[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

[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: /span/TDTD width=10nbsp;/TD

[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,

Re: [PHP] string

2003-12-01 Thread Matt Matijevich
snip 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. /snip Can't you just use the explode function? http://www.php.net/manual/en/function.explode.php -- PHP

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 certainly

[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

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

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

[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 $redirect;

[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

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['id']}foo=bar;

[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 two

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 taking a

[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

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 was how are

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. -- Rasmus

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 line 52 shown

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 my

[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

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 still doesn't

[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,

[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: [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

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'] .

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

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 trying

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(Location:

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

2003-12-01 Thread Bill Doerrfeld
-- Searchable archives for this list are available at http://www.listsearch.com/phplist.lasso --

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] % and br 22 [snip] Tee hee -- you should validate

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

2003-12-01 Thread Chris W. Parker
rogue mailto:[EMAIL PROTECTED] 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. ?php

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

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] % and br

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

[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

[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,

[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($type); //

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 tried: r

[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,

[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

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

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

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 new

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?

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

[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

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. --

  1   2   >