Re: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Chris Hayes
When using my yahoo account as test-target for this script, I get this in return from my Mercury server: == quote from error message == The mail server has encountered errors processing your request: * Unrecognized command "Reply-to:". From: "DeltaPower" <[EMAIL PROTECTED]> Reply-to: "DeltaPowe

Re: [PHP] Best PHP books

2003-06-11 Thread Chris Hayes
At 17:08 11-6-03, you wrote: > Does anyone have any recommendations for a good PHP book? I recommend Larry Ullman's PHP Advanced (a Visual QuickPro Guide). or the PHP4 bible, by Park & Converse, second edition (!). > I'm looking for a book that has at least a complete function reference [...]

Re: [PHP] Is this possible?

2003-06-11 Thread Chris Hayes
At 18:06 11-6-03, you wrote: Hey, Whats the problem with this "table" ? its a perfectly legal bit of HTML...wheres your doubt? in index.php just get the variable like this $blah=$_GET['tablename']; then run $blah in your select query. Either this is just too simple or i dont really understand w

Re: [PHP] Is this possible?

2003-06-11 Thread Chris Hayes
Please read these pages: http://de.php.net/release_4_1_0.php http://de.php.net/manual/en/security.registerglobals.php if your PHP setting called register_globals is turned on, then the code you propose would allow hackers to ask anything they want to your database, including destructive options.

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Chris Hayes
At 16:43 11-6-03, you wrote: Thanks for your recommendations, what if they use page.php?$_POST[$total]? $_POST is made by PHP and you can rely on it to be safe for such tricks, especially because your trick will not even work with normal arrays. instead of $toal?? wouldn't the outcome be the sam

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Chris Hayes
1st step: read out form results from $_POST['total'] (possible since PHP 4.10), not from $total. Variables added to the url will not be in the $_POST array but in $_GET. When reading the form result, make sure the referering page is from your own site, or else they can simply make their own fo

Re: [PHP] string question

2003-06-11 Thread Chris Hayes
At 16:42 11-6-03, you wrote: if a string is: $x="A.B. XYZ"; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not "A.B. XYZ" ! What should I do? how do you assign the value to the hidden form element? -- PHP General Mailing List (http://www.php.net

Re: [PHP] Sort of a multidimensional array

2003-06-11 Thread Chris Hayes
At 11:18 11-6-03, you wrote: Hi, Is there a simple way to sort the following array structure by the array cell 'title'=>'TXx'? $x[0][0] = array(array('id'=>1,'title'=>'TXx'),array('id'=>2,'title'=>'T2')); $x[0][1] = array('id'=>10,'title'=>'Test1'); $x[1][0] = array(array('id'=>3,'title'=>

RE: [PHP] check is pop address

2003-06-11 Thread Chris Hayes
At 09:25 11-6-03, you wrote: Chris Actually Phil S started this thread If you use a service like geoip I know that they have a list of all the free email providers and you can check against this database. This is useful as one tool for anti-fraud checking. Not sure if this is what you were lookin

Re: [PHP] check is pop address

2003-06-11 Thread Chris Hayes
At 17:06 10-6-03, you wrote: Hi there, I was wondering whether someone could tell me whether it is possible to use PHP to check whether a user supplied email address is a pop address as opposed to a web based address like hotmail. Have done some searching but cant seem to turn any answers up. Thanx

RE: [PHP] PHP Hosting Sites

2003-06-10 Thread Chris Hayes
Please add whether or not they have safe_mode turned on? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best method to detect Apache, IIS, or CLI?

2003-06-05 Thread Chris Hayes
dunno what's best, test on each server what values you can find in $_SERVER (PHP>=4.10), maybe $_SERVER["SERVER_SIGNATURE"] or $_SERVER["SERVER_SOFTWARE"] At 17:07 4-6-03, you wrote: Hi, what is the best method to detect if a php script is started into Apache, IIS or in a CLI script? I've found s

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Chris Hayes
Could someone with power over php.net please try to make this change in variable handling very extremely clear for downloaders? Make it something you cannot miss? Not everybody reads release notes and readme.txt files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Prefix question

2003-04-05 Thread Chris Hayes
At 01:12 6-4-2003, you wrote: Does anyone know of a prefix convention used for PHP? What I'm talking about is using a type of Hungarian notation for PHP variables. I know they use 'g', 'm', and 'r' for global, method and reference variables but for other variable types. I get confused once and a

RE: [PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Chris Hayes
At 00:42 6-4-2003, you wrote: Wow you guys are going about that way more complicated than it needs to be: $i = 0; echo ""; Then it just alternates and takes care of itself (plus you get a nice little index counter as well as a bonus if you want to use $i DÆVID. Or in my belief even faster, (withou

Re: [PHP] Right Click

2003-04-05 Thread Chris Hayes
At 02:23 6-4-2003, you wrote: Does anyone know if there is a function in PHP that allows you to right-click on an item, and from there a drop down menu pops up and you can go to another screen, preserving that value that was clicked on? If there is no function for right-clicking, then is there a

Re: [PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Chris Hayes
) { toggle $colorset (toggle: if 1 then 0 and opposite) if ($colorset==0) $trcolor="#ff"; else $trcolor="#a"; print $trcolor. } Chris Hayes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Chris Hayes
you have the exact situation as with 1a). do you see that? it would be much easier to see what is happening if you would have only colorset toggling its value and just before printing, decide what the color is as a result of the value of colorset. Give it a try! Basically: $colorset=0; while

Re: [PHP] Win95 - PHP - Apache - MySQL

2003-04-04 Thread Chris Hayes
At 00:56 5-4-2003, you wrote: Hello people, greet for all I tried to install these: Win95 as operating system PHP as parser Apache as Web server Mysql as DB server I tried to configure these platforms, and when I write http://localhost , it doesn't work, I think the problem is the we

Re: [PHP] ^M

2003-04-04 Thread Chris Hayes
At 16:16 4-4-2003, you wrote: > It looks like you are viewing a dos/windows file on unix. The ^M is > carriage return, which is needed as part of a dos/window end of line > sequence (carriage return, line feed) whereas unix uses just line feed. Nope. They're UNIX-created and UNIX-modified. Does it

Re: [PHP] Redirect

2003-04-03 Thread Chris Hayes
At 15:55 3-4-2003, you wrote: Hi, How would one redirect a user to a different page if a certain condition was met? i.e. if($condition == true){ goTo newPage.php } if ($condition == true) { Header("Location: "http://www.sense.nl/index.php?module=ContentExpress&func=displ

Re: [PHP] Check For Space

2003-04-02 Thread Chris Hayes
At 17:16 2-4-03, you wrote: Hi, How can i make sure a value sent from a form has no spaces in it? Before sending: javascript that prevents this on sending or even while typing. Check the javascript form faqs on www.irt.org for this. After sending: Detect spaces with if (!(strpos(' ', $string)=

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Chris Hayes
At 16:15 2-4-03, you wrote: Um, i had a look at the FTP options, (I honestly have no idea about the security implications) but i saw only directory functions for the server. http://www.php.net/manual/en/ref.ftp.php but maybe one of the finished applications: http://nanoftpd.sourceforge.net/ (i

Re: [PHP] newbie2 php.ini

2003-04-02 Thread Chris Hayes
At 13:32 2-4-03, you wrote: FATAL ERROR: register_globals is disabled in php.ini, please enable it! How can I make this? First question would be: do i want this? Since PHP 4.10 the register_globals is turned off by default, see the release notes at http://www.php.net/release_4_1_0.php . Second

Re: [PHP] Array Question

2003-04-01 Thread Chris Hayes
At 18:58 1-4-03, you wrote: I have two tables that I want to display together as if they were one table and order them by a common date field. Because I am using MySQL I can't use the usually way I would do this. Create a store procedure or view. Does every row in tableA has a sibling row in tableB

Re: [PHP] Help needed

2003-04-01 Thread Chris Hayes
At 17:17 1-4-03, you wrote: Thank you Ernest I am a little confused with the closing curly bracket after $message_new = "$phone is not a valid phone number etc there are two, and there is nothing inbetween, so technicaly it does not matter to the PHP interpreter. -- PHP General Mailing List (h

Re: [PHP] Help needed

2003-04-01 Thread Chris Hayes
I would suppose that you have an unbalanced {} somewhere. Restructure your code (yes, even more!) so it is easier to see such a mistake. Some coders prefer this: if () { code } but i prefer if () { code } so i see immediately what {braces} belong together. With

Re: [PHP] Help needed

2003-04-01 Thread Chris Hayes
hp. I wrote it in Dutch and the layout is primitive but do try the links!! Then there was a usefull list of do's and don'ts on zend, let me look http://www.zend.com/zend/art/mistake.php about classic mistakes. Don't be intimidated by it though. PHP is very flex. Chris Hayes.

RE: [PHP] 1. april

2003-04-01 Thread Chris Hayes
At 13:26 1-4-03, you wrote: http://electroteque.dyndns.org:1023/phpinfo.php ?? you may not live on april 1 like most of us. I see a developers face on php 4.0.1pl3 - 4.2.3 and an animal on 4.3.0 For those who are firsttimers with this gag: http://www.eeggs.com/items/16437.html http://www.faqts.co

Re: [PHP] writing file

2003-04-01 Thread Chris Hayes
Double quotes inside double quotes! $cname $string=" aditya $cnamehi!$city $bemail"; echo "'$contents'"; and you do not need these quotes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] month

2003-04-01 Thread Chris Hayes
At 12:16 1-4-03, you wrote: how do you get just the month (in numeric format ) of a specific date. (not today) same for day and year. The date is in -dd-mm format to start with. thanks. if you obtain it directly you should try to alter the way you get the date. If it is from e.g. a database o

Re: [PHP] [Newbie] Password()

2003-03-31 Thread Chris Hayes
in my code I am trying to send an email (containing a password) to a user when he has forgotten his password. The problem is that security leads to needing to encrypt passwords in the database. Im using the password function within mysql. Is there any way of reversing the password function() t

Re: [PHP] page cannot be displayed

2003-03-28 Thread Chris Hayes
At 12:01 28-3-2003, you wrote: it is most likely that the error is in the referring file in dew4.html. check the file name and path of the page you redirect to, and check the form method. hi guys, yeah, i now believe this really is an off day for me. probably because i did not have food today

Re: [PHP] Disabling output control when using "ob_start"

2003-03-25 Thread Chris Hayes
At 15:41 25-3-2003, you wrote: I posted this problem a week ago, but no one answered so I try again: Is there a way to disable the call back function set by "ob_start"? I tried: ob_end_flush(); ob_end_clean(); ob_implicit_flush(true); Nothing seams to work. I can't detect the call back function an

Re: [PHP] connecting to mysql db

2003-03-25 Thread Chris Hayes
At 14:49 25-3-2003, you wrote: hi, I am trying to play and learn php along with mysql and I have a question about connecting to a db. Is the following code necessary on every php page where I am retrieving some data from a db or is there any way to connect once (something like index.php) and have t

Re: [PHP] PHP or Mysql or Combination

2003-03-24 Thread Chris Hayes
At 15:50 24-3-03, you wrote: I'm currently stuck in a project where I need to pull info from a database and sort it by order of 2 seperate fields and creates a text report of the results. No problems there but now what the boss is wanting to do is break it up into slices of 8 records per file and

Re: [PHP] php and javascript

2003-03-18 Thread Chris Hayes
At 23:52 18-3-2003, you wrote: I wrote a function to redirect my page to another one. But for some reason I keep getting an error. here is the function I made function js_pointer_login($thepage) { echo ' window.location = '$thepage' '; } beside the quote thing which others mentioned, please ma

Re: [PHP] Mail attachment

2003-03-18 Thread Chris Hayes
At 23:24 18-3-2003, you wrote: I'm not sure why, but I get an attachment when sending out a mail with the following (see below). Well, I shouldn't say an attachment, but in Outlook I get that little paperclip, saying there is an attachment. But when I go to open the attachment, there is nothing

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread Chris Hayes
I forgot to mention, you may need to finetune this: not every server gives exactly the same $SERVER values. When default is reached, the url is really wrong and you give them a nice scowling in the 404.html file. (A nice suggestion: "HEY You dumb pi3ce of sh1t3! Learn to type! O

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread Chris Hayes
At 14:38 18-3-03, you wrote: Ok, I hope this makes sense, When a user 'registers' with our site, I want to generate their personal webpage for them. Currently, I have a webpage where the contents are generated from their personal info in the db and I have a drop down to view client pages but it i

Re: [PHP] Win XP prof + Mysql + Php + IIS

2003-03-17 Thread Chris Hayes
Since PHP 4.10 the form values (and other values) are not automagically turned into variables, for security reasons. See http://www.php.net/release_4_1_0.php Options: modify register_globals=On in php.ini or use $_POST['formfieldname'] in stead of $formfieldname At 14:06 17-3-03, you wrote: H

Re: [PHP] Frames

2003-03-17 Thread Chris Hayes
At 13:29 17-3-03, you wrote: Hi, I am designing a system which will have a different menu option for different users i.e. admin/standard etc. If I am using frames how could I change the page a user sees in the top frame for each different type of user? I know how to do this with standard pages, it

Re: [PHP] instalation problem

2003-03-17 Thread Chris Hayes
At 13:12 17-3-03, you wrote: Hi List, I have problem with instalation of PHP4 on my LINUX APACHE MySQL server. when I did: ./configure --with-apxs=/server/apache/bin/apxs I got error message: - configure error: Sorry I cannot run apxs.Either you need to install Perl or you need to pass the a

Re: [PHP] php file writting ?

2003-03-14 Thread Chris Hayes
At 18:53 14-3-2003, you wrote: I open a file, modify it, save it out to disk. The VERY next line, i open it, and the size is zero. I look at the file and it is fine (not zero). I think there is a timing issue with php on file read/writes. I tried sleep(1), but all that did was slow the script do

Re: [PHP] need a new challenge

2003-03-14 Thread Chris Hayes
At 11:12 14-3-2003, you wrote: Im looking for ideas for a 2 programming contests. What I need is a very basic challenge - that new php programmers can do, but involves them mixing there thinking/programming and creative abilities. I also need a challenge for professional programmers - something th

RE: [PHP] Search/Regular Expression problem

2003-03-13 Thread Chris Hayes
WHERE textfield LIKE "%word1%" OR textfield LIKE "%word2%"' -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 4:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Se

Re: [PHP] Search/Regular Expression problem

2003-03-13 Thread Chris Hayes
$WHERE=substr($WHERE,4,strlen($WHERE); um, make that $WHERE=substr($WHERE,4,strlen($WHERE)-4; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wildcard fromURL

2003-03-13 Thread Chris Hayes
At 21:55 13-3-2003, you wrote: mod.php?mod=userpage&menu=215&page_id=xxx mod.php?mod=userpage&menu=20001&page_id=xxx mod.php?mod=site_map&menu=20010 And would want all the following pages to load an image named something like foo_1.jgp mod.php?mod=userpage&menu=1&page_id=xxx submit.php&menu=100 mo

Re: [PHP] Search/Regular Expression problem

2003-03-13 Thread Chris Hayes
At 21:48 13-3-2003, you wrote: My search enginue will bring up a result IF and only if ALL of the words in $search exist in the result. For example if $search = Vax Useful Commands Then the result is only true if (eregi(".*Vax.*Useful.*Commands.*", 'possible result')) is true Are your data in a d

[PHP] google, php-created pages and link farm exclusion

2003-03-12 Thread Chris Hayes (SENSE)
dear list, 1) Currently Google cannot find all pages on my site because most pages are linked through database-generated selection boxes. Most pages have URL's with different query strings after index.php. 2) I have made shortcut links possible such as mydomain.org/page/37 and mydomain.org/pe

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hayes
At 03:56 12-3-03, you wrote: web master engineer: recently I encounter a problem as follow ,I want to ask you My system is windows xp sp1, now I set up Apache server V1.3.27 as localhost server and download PHP4.3,I have configured PHP as SAPI Module.it can work correctly as common php fil

Fwd: Re: [PHP] Search all data in database

2003-03-11 Thread Chris Hayes
Date: Tue, 11 Mar 2003 18:18:37 +0100 To: Mike Tuller <[EMAIL PROTECTED]> From: Chris Hayes <[EMAIL PROTECTED]> Subject: Re: [PHP] Search all data in database At 17:51 11-3-03, you wrote: I am wanting to add a simple search field where you enter your search and it searches the whole d

Fwd: Re: [PHP] displaying data base information in a website

2003-03-11 Thread Chris Hayes
I am learning php and would like to know how to display the information I already have in a mysql database in a homepage... is there is any script, I would like to know it. There are excellent tutorials online, to get started with mysql and php, and for a beginners book I can recommend the PHP4

Re: [PHP] Script that writes e-mail (well, is supposed to)

2003-03-11 Thread Chris Hayes
I think your server is ok. Your if-else structure was a bit hard to oversee this way. I had to indent your code to see your logic. But maybe the tabs got lost in the email. I think readability would improve if you replaced - IF (isset($_POST['custemail'])) {//the

Re: [PHP] A small problem

2003-03-11 Thread Chris Hayes
Oo. i matched all html tags too. make that: preg_match_all("|<\?[^>]+\?>|",$Text,$PHP_code); At 14:06 11-3-03, you wrote: At 13:56 11-3-03, you wrote: Can you pick a decent subject like "help with regular expressions" rather than something pointless and generic like "a small problem"... a lot of

Re: [PHP] A small problem

2003-03-11 Thread Chris Hayes
At 13:56 11-3-03, you wrote: Can you pick a decent subject like "help with regular expressions" rather than something pointless and generic like "a small problem"... a lot of readers will skip over generic subject lines, and you also miss out on attracting the attention of those who regexps well. a

Re: [PHP] php/apache timeout

2003-03-11 Thread Chris Hayes
At 18:40 11-3-03, you wrote: We are using Apache/PHP and using ORACLE as the database. When I submit the page with hugs database when the server side script (PHP) running I am getting an error "Page not found". But on the background it is adding records to the database. Though I modified all the

Re: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Chris Hayes
PS: If you want a tool which really cleans up HTML you should use HTMLTidy of course. :) http://tidy.sourceforge.net/#source -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eval error

2003-03-10 Thread Chris Hayes
At 12:54 10-3-03, you wrote: what problem I want to use eval in my script but its generate this error : Parse error: parse error, unexpected T_LNUMBER in C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line 4 eval ("\$all_types_list .= \"$all_types_list\";"); For tho

Re: [PHP] Can someone explain this? include problem.....?

2003-03-09 Thread Chris Hayes
At 22:15 9-3-2003, you wrote: Hi, I have a php script which does some stuff and at the end of the file I have it include a file which has a form in it. The problem I am having is that it is missing code. If you go down to the second input - it has a value="0" field - this does not show up when I

Re: [PHP] Easy Way.

2003-03-09 Thread Chris Hayes
At 22:23 9-3-2003, you wrote: You're looking for the str_pad function. http://www.php.net/str_pad $i = 3; $i = str_pad($i, 5, '0', STR_PAD_LEFT); echo $i; // outputs '3' Just keep in mind that it won't help you if your input is greater than 5 to begin with, you'll have to check that seperately

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Chris Hayes
At 13:37 9-3-2003, you wrote: if ($myrow = mysql_fetch_array($result)) { do { echo(" $myrow[title] "); } while ($myrow = mysql_fetch_array($result)); } PS same result with while ($myrow = mysql_fetch_array($result)); { echo $myrow['title']; } -- PHP General Mailing List (http://www.php.n

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Chris Hayes
At 13:37 9-3-2003, you wrote: I want to display the first 3 words of my record in the my table and following is the code i'm using. When i use the SQL Query in mySQL.. it works great.. but when i try to implement it in my php page.. i'm not getting anything.. no error, no display, no result.. just

Re: [PHP] pharse file random work with -n lines

2003-03-05 Thread Chris Hayes
At 01:27 6-3-2003, you wrote: // Code start $i = 0; $fp = fopen ("./../../cgi-bin/Classifieds/data/ads.data", "r"); while($tmp= fgetcsv($fp,5,"\|")) { $array[]=$tmp; } fclose ($fp); $rand_array=array_rand($array, 10); foreach($rand_array as $line) { did you check to print_r($line); here to s

Re: [PHP] mortgage calculator

2003-03-05 Thread Chris Hayes
At 17:49 5-3-03, you wrote: I'd like to add a mortgage calculator to a client's site. I've been unable to find the formula. Well the calculation depends on the companies policy of course. 1. Normal rent calculation would go like this: where i = interest or rent over a certain the period of time (

Re: [PHP] coockies in windows xp

2003-03-05 Thread Chris Hayes
At 15:29 5-3-03, you wrote: having to use coockies to identify visitors I seem to have a problem with visitors using windows xp. the command I use is setcoockie("coockie1", "true", time()+600) any ideas??? Did you test this with various versions of windows? Do these people have cookies turned on,

Re: [PHP] assign gobal values in class?

2003-03-05 Thread Chris Hayes
At 13:35 5-3-03, you wrote: can you assign global value in a class like: class test{ global $arr; } anyone? try! :) if it does not work in this place, try setting it in the constructor function, which is a function in the class with the same name as the class, class test{ var $test_arr;

Re: [PHP] Splitting up big strings

2003-03-04 Thread Chris Hayes
At 19:17 26-2-03, you wrote: On Thu, 27 Feb 2003 01:02:54 +0800, Jason Wong wrote: >On Thursday 27 February 2003 00:54, {R}ichard Ashton wrote: >> I have the body ov a Usnet article, all of it, in $body. I want to >> split it into lines. >> >> I have tried >> >> $lines = explode( X, $body); >> >> w

Re: [PHP] changing colors on buttons

2003-03-03 Thread Chris Hayes
At 18:13 3-3-03, you wrote: is there a way you can change the text color on buttons as well as the background color for a button? you do that by making a css style for the button, plenty of examples on the net, if you can figure it out from a german site try http://www.webmatze.de/webdesign/css/b

Re: [PHP] Get variable from PHP before submit

2003-03-01 Thread Chris Hayes
I am putting my gamma-epsilon-psycho telepathy beamer to the maximum but there are too many coders inbetween us, i cannot receive you. Please give a little hint on what these functions are and what value comes from where and goes where. At 04:00 1-3-2003, you wrote: I'm trying to implement the

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Chris Hayes
> What is someone spells their name Desilva? > > On February 28, 2003 06:21 am, Justin French wrote: > > What about DeSilva And McSomething? I found another thread on this subject here: http://www.phpbuilder.com/mail/php-general/2002102/2138.php, but i did not read it. Looking at all the exampl

Re: [PHP] $PHP_SELF with redirected domain

2003-02-26 Thread Chris Hayes
...and the problem that the form immediately goes to the real url is that people see the real url? What about one of the following: - chop off the subdir again by only putting the last part of $PHP_SELF as form action (f.i. with a combination of substr($PHP_SELF,...,...) and strpos('/') ) or

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread Chris Hayes
At 18:32 26-2-03, you wrote: I have a confirmation of "membership" page a user would arrive at after clicking on a URL in an email. After they click on a link in this page I want to delete the page itself so it will only exist for this one use. The URL in the page does go to another "Welcome" pa

Re: [PHP] conditional question.

2003-02-26 Thread Chris Hayes
At 17:10 26-2-03, you wrote: I have a conditional that looks like this: if ((is_array($HTTP_POST_VARS['cart_quantity'])) && (is_array($HTTP_POST_VARS['products_id']))){ //do stuff } The evaluation returns false. What makes this confusing is just before this block, for debugging purposes, I

Re: [PHP] unlink problem... please help...

2003-02-26 Thread Chris Hayes
At 16:42 26-2-03, you wrote: $result=unlink('$dir_to_upload/$row->Photo'); what do you get when you echo echo htmlspecialchars('$dir_to_upload/$row->Photo'); and do you use the full file path? Images accept relative links but in my experience PHP's file handling functions want the full path. -

Re: [PHP] help please

2003-02-25 Thread Chris Hayes
k for http://www.nypalet.com/Mail.html . I do not know jack about PDP, I got the script from www.flashkit.com. Thanks so much for the response. Mark J - Original Message ----- From: "Chris Hayes" <[EMAIL PROTECTED]> To: "bionicegg" <[EMAIL PROTECTED]> Sent: Tuesday, Februar

Fwd: Re: [PHP] help please

2003-02-25 Thread Chris Hayes
There is no need to post this thrice. Anyway. What went wrong? Did you get an error message? Are both sites on the same machine? At 18:40 25-2-03, you wrote: Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to anothe

Re: [PHP] Trouble Passing Variables On Test Server

2003-02-25 Thread Chris Hayes
At 17:49 25-2-03, you wrote: Hi guys, I have installed a test sever from those guys are FirePages.com.au on my Windows XP Machine at home to test websites on http://localhost. The only problem is the forms are not passing on the variables. I have used the same scripts on a webserver and they work f

Re: [PHP] server problem?

2003-02-25 Thread Chris Hayes
At 17:06 25-2-03, you wrote: i made some adjustments to the internet settings via internet explorer on win98, and now when i try to access a file on the localhost (apache) i get with every browser a file download dialog. ie's dialog says when i try http://137.224.157.67 (used to work) filename 1

RE: [PHP] page shown, but browser keeps doing something

2003-02-25 Thread Chris Hayes
At 17:01 25-2-03, you wrote: are you preloading graphics using JavaScript? well, i turned javascript off so that can't be it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] server problem?

2003-02-25 Thread Chris Hayes
i made some adjustments to the internet settings via internet explorer on win98, and now when i try to access a file on the localhost (apache) i get with every browser a file download dialog. ie's dialog says when i try http://137.224.157.67 (used to work) filename 137.224.157[1] filetype 157[1]

Re: [PHP] My server cannot displayed a php extension file.

2003-02-25 Thread Chris Hayes
At 16:54 25-2-03, you wrote: I am new to PHP.I have manually installed it to my Windows 2000 server that runs on IIS 5.0 . But also it included a .php file if i write correct url it could not displayed the file on ÝE5.5. What is the problem? * does the server work with html files? * which instal

[PHP] page shown, but browser keeps doing something

2003-02-25 Thread Chris Hayes (SENSE)
hi list, i'm working on my local WAMP on a PHP module to fit in a cms, and i fail to understand what is taking the browser so much time _after_ the page is completely visible. Statusbar says still loading the page. Javascript links and the refresh function of the browser are reluctant. When i s

Re: [PHP] FormatDateTime in PHP

2003-02-25 Thread Chris Hayes
At 13:25 25-2-03, you wrote: Please, How do I make to format my date in the my format? For Example: you forgot to tell how the date in the database is formatted, that is quite important. did you read the php manual on date() ? http://www.php.net/manual/en/function.date.php ## I filter $filter =

Re: [PHP] How to get tree structure into an array?

2003-02-25 Thread Chris Hayes
(buildtree( $ID)) ); } return $branch; } It should iteratively call itself, adding the branches, untill it exhausted all branches, then finally return the entire array. You might like to check Google for iterative functions in PHP with arrays. At 12:09 25-2-03, Chris Hayes wrote: At 11:16 25

Re: [PHP] How to get tree structure into an array?

2003-02-25 Thread Chris Hayes
At 11:16 25-2-03, you wrote: Hi all! i have to solve one problem, but i have no idea how to make this. I have got a tree strucutre in mysql table, id - parent - name. I need make function, which return array which will contains a strucutre of this tree-menu, table example: ID Parent Name -

Re: [PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Chris Hayes
At 01:27 25-2-03, you wrote: Thank you, but it doesn'T explain why i can run the other script for 5 minutes without any set_time_limit In php.ini the default time limit is set. And when you set the time limit in a script at the start of a loop, the limit counter starts counting at zero again, or

Re: [PHP] emailing a web-page

2003-02-24 Thread Chris Hayes
At 15:31 24/02/03, you wrote: I want to automate the process of connecting to a web-page and sending it as a HTML email (like a weekly newsletter in html). I've been reading up a bit on PEAR's Mail_mime (http://pear.php.net/manual/en/core.mail.mime.php) but I just wanted to know what the fastest wa

Re: [PHP] dynamic list box

2003-02-24 Thread Chris Hayes
At 15:01 24/02/03, you wrote: Hello, I have an sql statement that pulls data into a dynamic list box, the problem is, I have this list box twice on my form, since the query returns a lot of rows, I do not want to have the query executed twice but I populate my list box using the while loop so when

Re: [PHP] Me again...

2003-02-24 Thread Chris Hayes
At 03:48 24/02/03, you wrote: Hi, please see the following red code... (i get plain text, so not red) it adds info to a MySQL Table called "Schools". Whats the problem? Although the first time you execute it, it works, after the first time you send the form you get ERROR. $qs = 'INSERT INTO

Re: [PHP] What is wrong with this?

2003-02-24 Thread Chris Hayes
At 02:04 24/02/03, you wrote: Hi, yes in fact it worked...I also had the $numrows with wrong mysql command, it should be mysql_num_rows() instead of the mysql_fetch_rows(). Thx Ernest But now that this is working, i have another big problem...my $drop_down_list isn't assuming the value of the show

Re: [PHP] [!NEWBIE ALERT!] fread() question

2003-02-23 Thread Chris Hayes
At 00:05 24-2-2003, you wrote: trying to parse a URL and write html code to a file, then search the file for a string between ... how would I implement the fread function below, and regular expressions to read the specific conent. thx or is there a php function that can return the TITLE of a UR

Re: [PHP] update query not working

2003-02-23 Thread Chris Hayes
print ""; print ""; if ($_POST['Update']) { print "updated!!"; } I do not see the statement "updated!!!" printed, but I cannot see anything wrong with my syntax. Any help would be appreciated. You are looking for a value, where the array is of the form $_POST['form_element_NAME'='form_element

Re: [PHP] why this ?????????

2003-02-23 Thread Chris Hayes
hi Luis, I would like to ask you to _please_ (<--see i used the magic word so you have to do it! :) ) make your mails fitting to the generally accepted formats: 1) Keep the mail title the same if the question is the same. Use the reply button of your program, in such a way that in in replies we c

Re: [PHP] University researcher's question

2003-02-23 Thread Chris Hayes
At 09:21 23-2-2003, you wrote: [i] How or why do researchers adapt technology to their research projects? Should they adapt their projects to technology? Indeed, how often does the research assistant end up reinventing the wheel? [/i] 'Research' is an extremely broad field, with many places where

Re: [PHP] sending results by email

2003-02-22 Thread Chris Hayes
my friend Google told me this is explained at http://www.thickbook.com/extra/php_email.phtml ! how can i make the server email me the results of this form __ no

Re: [PHP] what's the matter?

2003-02-22 Thread Chris Hayes
At 14:36 22-2-2003, you wrote: index.php: choice your gender male female x.php: but at last it said that the gender had not been defined??? help me! "by your command." ( a 'please' would be nice, X!) Since PHP 4.1 form data are not automatically available as variables in the followup fi

Re: [PHP] Cannot add header information

2003-02-19 Thread Chris Hayes
At 15:33 19/02/03, you wrote: I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why?? Are you sure you did not edit a file? Take care that there is

[PHP] emptying jammed mailbox by PHP?

2003-02-17 Thread Chris Hayes
hi, maybe not the most professional way but my mailbox is jammed and i want to clear it. My ISP host is doing some office refurnishing and needs all his attention to pick the right color hues. So i thought maybe i can send a simple POP command to delete all mails in the mailbox? It's 14000 mails

Re: [PHP] Exotic Assign operators what do they do.

2003-02-13 Thread Chris Hayes
At 20:38 13-2-2003, you wrote: The PHP manual neglects to tell us what these assignment operators are, can somebody point me to what they mean? http://nl.php.net/manual/en/language.operators.bitwise.php please also chek the user annotations for examples &= |= ^= ~= <<= >>= just curious

<    1   2   3   4   >