Re: [PHP] need help with a table please - sorry

2003-02-12 Thread Chris Hayes
woops i did not finish that line: If you imagine to walk through your code, with every step $i increases. If you start the second row, then the counter is at 8 and will never be 7 again. And some bad english: Besides, your second print '' for every cell, which will break your table, and p

Re: [PHP] need help with a table please - sorry

2003-02-12 Thread Chris Hayes
At 15:43 12-2-03, you wrote: Hello friends. Sorry I sent the wrong code in my last mail. Here is my correct code. I want the output of my query to be formatted such that after every 7th output, the 8th one should start on a new row in the table. I have written the following code but does not w

RE: [PHP] Echo # problem

2003-02-12 Thread Chris Hayes
At 13:46 12-2-03, you wrote: The code I am trying to get working is shown below however, as the # is interpreted as a comment the header function is only redirecting to ./itemadmin.php3?submittedby=$submittedby&cat=$cat $head = "./itemadmin.php3?submittedby=$submittedby&cat=$cat#$edit"; header (

Re: [PHP] Regex Help

2003-02-11 Thread Chris Hayes
At 07:47 11-2-2003, you wrote: I am new to regex and broke my head on it the other day...in vain... Can any one tell me a place to get a step by step tutorial on it or help me out on how to work it out ? Some tutorials: http://codewalkers.com/tutorials/30/3/ Codewalkers - Using PCRE http://sam

Re: [PHP] Newbie recursive directory

2003-02-11 Thread Chris Hayes
At 23:28 10-2-2003, you wrote: G'day all I've been trying for a day or so to get a script to traverse all the levels of a directory. did you see the first user comment on http://nl.php.net/manual/nl/ref.dir.php ? may help! With help from list archives and web sites I've come up with this: ";

Re: [PHP] PHP error page not redirecting

2003-02-10 Thread Chris Hayes
At 10:59 10-2-2003, you wrote: I'm having a dispute with an ISP (surprise) about the non-functioning of a PHP error script. Currently, the error script is at http://www.touristguides.org.uk/error.php - a direct click on that link will redirect you, using: header("Location: http://www.touristg

[PHP] Re: [PHP-GTK] Word Documents

2003-02-10 Thread Chris Hayes
Is it possible to "embed" a Word document with-in a PHP-GTK app (Windows)? I'm thinking of the way Internet Explorer does it. Then to have a button to Save the document to the harddrive, or a Print button which would somehow cause the Word Doc to be printed. Any thoughts? some tuppences: - fro

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Chris Hayes
I need to write some data to a text file but when I use $this->ao_file_handle = fopen($this->ao_file_name,"ab"); $str_txt.= "\n"; fwrite($this->ao_file_handle,$str_txt); It does not display the new line. I saw somwhere that for DOS files you need to use ASCII LF and CR. Which I did. It still

Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread Chris Hayes
At 09:27 10-2-2003, you wrote: hi there, i'm having a small problem, wondering if anybody can help // a line in my script defining $url $url = $directory . '/main.php?id=' . $id; // a line later on in the frameset calling this $url echo ''; this gives me a paring error on the last line ple

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Chris Hayes
At 23:09 9-2-2003, you wrote: you may find the following link interesting http://www.tek271.com/articles/JavaOrPhp.html David Eisenhart I cannot suppress the feeling that someone out there has a slight prejudice in favour of Java! -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Re: Static functions

2003-02-09 Thread Chris Hayes
At 22:49 9-2-2003, you wrote: yes, you can call a static method on a class by specifying the class name, then 2 colons and finally the function name: classname :: functionname([arg,.]) (of course properties can not be accessed by such methods) ah ok, cool -- PHP General Mailing List (http

Re: [PHP] Static functions

2003-02-09 Thread Chris Hayes
At 22:18 9-2-2003, you wrote: Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++ but I'm having a few problems finding info on this issue. Does PHP support something like static functions in Java? afaik the answer is no, but please do not rely on my pitiful opinion. I only us

Re: [PHP] PHP and Serach Engines...

2003-02-09 Thread Chris Hayes
At 22:00 9-2-2003, you wrote: Hello, How do search engines react to PHP pages? If every page of a site has a .php extension will search engines not react well to that? If it does, is there a possible way to handle tracking sessions with php, without being punished by the search engines?

Re: [PHP] Problem When Linking Array Element To Itself

2003-02-08 Thread Chris Hayes
I have an array called $array_of_files. I want to echo each element of that array as a link to itself. That way when I click on an element I can send it as an actual value /usr/local/plesk/apache/vhosts/myserver.com/httpdocs/php/categories/links1.txt Once I place the variable $category inside th

Re: [PHP] need help with preg_match

2003-02-08 Thread Chris Hayes
At 17:21 8-2-2003, you wrote: Hi I have to alter this code: http://www.whatever.ee/', 'r'); for ($src = ''; !feof ($fp); $src .= fgets ($fp, 1024)); fclose ($fp); if (preg_match ('/\([^<]*)\<\/font>/i', $src, $matches)) echo'Match: '.$matches[1].''; else echo'No match !'; ?> It

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Chris Hayes
At 00:25 9-2-2003, you wrote: Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: Any ideas how to do this in PHP? one way would be: $color_toggle=true; $color1='red'; $color2='white'; $output=""; for ($i=0;$i<10;$i++) //or any other way to w

Re: [PHP] regex

2003-02-07 Thread Chris Hayes
i have to check if there's a dot in a string, and i need nothing but the regex pattern for this... tryed a lot, but the dot itself means to matches all. you can read a little and not very clear introduction here: http://nl.php.net/manual/nl/pcre.pattern.modifiers.php and http://nl.php.net/manua

Re: [PHP] getting javascript string values

2003-02-05 Thread Chris Hayes
How can I get the value of an javascript string and pass it to a php variable? var x = "test"; Well as you know, but just as a reminder, when you make a page with both php and javascript in it, the PHP code is executed on the server and then the resulting html plus javascript is send

Re: [PHP] Creating associative array

2003-02-05 Thread Chris Hayes
At 13:28 5-2-03, you wrote: Try: $image_array = array(); $image_array[$file_name] = $image_url; PHP wrote: I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push("$file_name"=>"$image_url"); i agree with the suggestion, but maybe (this may

Re: [PHP] Is there a way to retrieve an entire source code from a phpfile?

2003-02-05 Thread Chris Hayes
There is a php file that retrieve the source code from the url www.url.com and this source is treated and you get content from this file and show it on the response page. Is this possible? Can anyone show me the right direction? yes, codeword is 'ripping', i found some hits on google with php

Fwd: Re: [PHP] Function to make a select box

2003-02-04 Thread Chris Hayes
Date: Tue, 04 Feb 2003 22:02:12 +0100 To: "Leonard Burton" <[EMAIL PROTECTED]> From: Chris Hayes <[EMAIL PROTECTED]> Subject: Re: [PHP] Function to make a select box Could anyone offer any suggestions? The following function prints a blank select box. $result= "

Re: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Chris Hayes
At 21:51 4-2-2003, you wrote: hi.. posted a message about what the code was to test an update query to see if it was successfull using mysql and i tested my code and for some reason even if none of the fields were updated it still reports the success message... heres the code i have: $query=mysql

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Chris Hayes
Apparently it does not like the function name to be the same as the class name. So change one of them. first(35, "chris"); print $test; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need to check whether a param exists!

2003-02-03 Thread Chris Hayes
At 17:54 3-2-03, you wrote: if (is_object($_REQUEST['page'])) for me if (isset($_REQUEST['page'])) works. I often add a check against an empty value after this check. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safe mode problem

2003-02-03 Thread Chris Hayes
At 11:39 3-2-03, you wrote: what you did should work (you must be root to change owner). You can use -R switch to change owner recursively Gurvinder Singh wrote: hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script

Re: [PHP] any change to see php source?

2003-02-01 Thread Chris Hayes
At 21:36 1-2-2003, you wrote: > I am studying on php. And the book say, when the server see php extension it > is running php file and giving results to the visiting browser. > > But as I see related directories are normal directory, doesn' t like cgi-bin > directories. > > Is there any change t

Re: [PHP] Exclusion in Regex not working

2003-01-31 Thread Chris Hayes
At 14:11 31-1-2003, you wrote: So I'm using ereg(pattern, input) to see if the pattern matches or not. SO for exclusion I build the following pattern [^$] and pass it to ereg above. So if the input includes a $ the ereg should return false and the processing shouldn't take place. Well the thin

Re: [PHP] reading attachmentsl

2003-01-31 Thread Chris Hayes
At 11:11 31-1-2003, you wrote: hi all I'm writing a mail client and I got problem with attachments. I have no idea how to read and save attachments. Mayby someone already did something like that a can help me with some advice or giving me link to some resourses. Maybe it helps to see how an

Re: [PHP] problem with header

2003-01-30 Thread Chris Hayes
can it be related to the double slash in that path? /usr/local/php/bin//php At 15:42 30-1-2003, you wrote: i have an script, it send a header response: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using custom "button" form element instead of standard"submit"?

2003-01-30 Thread Chris Hayes
At 12:18 30-1-2003, you wrote: sure this would work but it'd be VERY inefficient in my application. It's a file browser application so i have hundreds of folder icons on a page .. the 'submit' element will pass back the name of the button clicked and it would be available immediately/directly, wh

Re: [PHP] SQLqry in PHP

2003-01-30 Thread Chris Hayes
At 12:14 30-1-2003, you wrote: I try to use a SQLqry in PHP, but i get this anwser in my browser: FATAL: emalloc(): Unable to allocate 1073741824 bytes Somthing i can do to fix it in PHP? (I have no rights at the server) could you add some code, this is far too cryptic. also tell us what php

Re: [PHP] Use Pop3

2003-01-30 Thread Chris Hayes
At 07:49 30-1-2003, you wrote: Hello, Is it possible via PHP to : - join a pop3 server - make a "query" to recover mails header, subject, date, sender, to create a list. - we I have the list when I click on an element of the list recever the email content (text and attachment) and why not see

Re: [PHP] chat rooms

2003-01-29 Thread Chris Hayes
At 20:33 29-1-03, you wrote: Does anyone have any suggestions for a good small FREe chat room to add to a family site? A friend here at work is hosting a site from home and is looking to add a chat room. Some of his site is php so if it is php based, that would be great. We even talked today a

Re: [PHP] A way to break up the string????

2003-01-29 Thread Chris Hayes
At 15:52 29-1-03, you wrote: Just curious, is there a PHP function that will break up the string for us? Here's the example --clip-- //Original $name = "Jennifer B Cuff"; //Whatever is to be end result of the original $first_name = "Jennifer"; $middle_name = "B"; $last_name = "Cuff"; --clip--

Re: [PHP] Getting a value back from POST (not the built-in return)

2003-01-28 Thread Chris Hayes
At 01:38 29-1-03, you wrote: Using a fairly simple fsockopen and POST I'm sending form data to a script which populates fields in a database. Everything works fine, however I've been trying to figure out how to send a value set on the other machine (database) back through the open socket (note:

Re: [PHP] parsing ini files

2003-01-28 Thread Chris Hayes
I have a file which contains the following syntax: ; Events listings [event] month = january day = 23 year = 2003 venue = some club description = this is an event [event] month = january day = 12 interesting function, i had not seen it yet. You could have a look at the alternative function m

Re: [PHP] Need Guru's Help

2003-01-28 Thread Chris Hayes
At 07:52 28-1-03, you wrote: Hi All Guru's here, Sorry, i am not a guru. I do have visions to become the enigmatic leader of a sekte but i think that's slightly out of scope here. (Actually i have 500 html files containing this table struction,and need to read all 500 files and convert the

Re: [PHP] PHP vs Perl for system scripts (non-web)

2003-01-28 Thread Chris Hayes
I'm more comfortable writing stuff in PHP. I use PHP alot more, and I find the resultant code more readable and easier to maintain. Aside from Perl's ubiquity and the dubious advantage of future flexibility by using Perl's DBI interface to talk to different SQL servers (I'm using MySQL at the m

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Chris Hayes
>Re: [PHP] Found a PHP bug! uh oh... I don't see why a string wouldn't work when I use "08" (string) and match it against the integer 8, or 08. They're just different types. Normally PHP is veeery flexible with types, like javascript, but it just can't be flexible for you here becau

Re: [PHP] Minor email problem

2003-01-23 Thread Chris Hayes
At 00:48 24-1-2003, you wrote: hello friends, I am hosted with an ISP called Apexon. I have written php scripts to send mail from a webpage. When I send this mail, the from address becomes [EMAIL PROTECTED] . Their website says that the variable sendmail_from is [EMAIL PROTECTED] . I want t

Re: [PHP] backslash t

2003-01-22 Thread Chris Hayes
At 20:19 22-1-03, you wrote: Hi, I want php to print " \tab" but when I do, I only get "ab" as output. How do I keep the \t? Jan, between "double quotes", several things are translated this becomes \t a tab \r a carriage return \n a newline \" " \\ \ There are more,

Re: [PHP] A Licensing Question

2003-01-22 Thread Chris Hayes
At 17:17 22-1-03, you wrote: I was wondering what the licensing issues for app frameworks (or any included PHP classes/libs) are. I'm creating a rather large PHP application for a company, and they'd like to potentially resell it to some of their customers. Can I safely use GPL'd libraries, clas

Re: [PHP] opening tex file

2003-01-17 Thread Chris Hayes
At 14:05 17-1-2003, you wrote: On Friday 17 January 2003 20:59, Artur Bereœniewicz wrote: > how can I open text file and start reading in the middle of it? AFAIK it's not possible to jump directly into the middle of a file and start reading. You would have to read it line-by-line until you ge

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Chris Hayes
At 13:11 17-1-2003, you wrote: > I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours. It has to do with the $cols[$i++%2] part. When I try to print $i++%2 the outcome varies between 1 and none. Somehow the

Re: [PHP] Making alternate rows of different colour

2003-01-17 Thread Chris Hayes
At 09:05 17-1-2003, you wrote: > I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. > > Can someone please help me with the code? $cols = array('#ff','#00ff00'); $i = 0; while(your_loop_to_output_each_

Re: [PHP] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-17 Thread Chris Hayes
n please try to explain it again.... Chris Hayes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Chris Hayes
At 00:41 16-1-2003, you wrote: Hello all, Newbie here I need to know if there is a way I can get my dynamic IP address for use in a php script? -- There are loads of variables in the arrays $_SERVER and $_ENV, dump these arrays and see if there is something in it that you can use. Maybe y

Re: [PHP] All Request to the same script

2003-01-15 Thread Chris Hayes
At 15:39 15-1-03, you wrote: Hello Is it possible to send all incoming requests to the same script within PHP? In other words: How can I get http://mysite/script.php to point to the same script as http://mysite/anotherscript.php ? And is it possible to do send a request like http://mysite/someext

Re: [PHP] update more "same" fields at the same time

2003-01-15 Thread Chris Hayes
At 14:29 15-1-03, you wrote: > not with the same data > You can put your data and the primary keys in arrays and exec a loop but the data[0] must be the data for the id[0], data[1] must be the data for id[1] etc. The loop should be something like this: for (int $i=0; $i<=total_records_select_re

Re: [PHP] Question about $_GET

2003-01-15 Thread Chris Hayes
At 11:57 15-1-03, Marek Kilimajer wrote: "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id]"; - removed single quotes I think that that is a really bad advice. Let me explain. For one, the single quotes are not in the way here because the query is written between double q

Re: [PHP] update more "same" fields at the same time

2003-01-15 Thread Chris Hayes
At 10:07 15-1-03, you wrote: I have table with six records in it. I can use "while" to display them all, but in form. Is there any way I can edit all six records, and update them all with one submit. One of the many ways to do it: When writing the form, number the fieldnames with the ID's of the

Re: [PHP] Dumping Tables from MySQL

2003-01-14 Thread Chris Hayes
ackup/backup.php.txt Pick out what you need. I would like to get a copy of what you do with it. In case it turns out you do not have access to mysqldump i have made a hack on PHPmyAdmin to make it email the database as an atachment at a mouseclick. Chris Hayes -- PHP General Mailing List

Re: [PHP] globals off in function

2003-01-14 Thread Chris Hayes
in function i call to $smarty variable " function showLoginForm(){ global $db, $smarty; // $smarty = new Smarty in main code Fatal error: Call to a member function on a non-object in Are you sure $smarty = new Smarty is in the main code? Can it be in another function? Try setting globa

Re: [PHP] regular expression

2003-01-14 Thread Chris Hayes
CTED] This seems to work: $text = preg_replace("/([^\/a-z0-9_])(([a-z0-9_]|\\-|\\.)+@([^[:space:]<>]*)([[:alnum:]-]))/i", "\\1mailto:\\2\";>\\2", $text); I did not check the entire regexp but it seems to do what you need. Um, the NOT thingy in a regexp is the

Re: [PHP] Pre-built CMS - Anyone recommend one?

2003-01-12 Thread Chris Hayes
I'm looking for a *free*, pre-built CMS with PHP/MySQL. I've looked at ezpublish but I'm having trouble installing. Criteria: * Must have SE friendly urls (example.com/4/34/) * Must allow different 'sections' for articles * Must be easy to fix templates for the html/css I happen to kno

Re: [PHP] I can't code today to save my life! :(

2003-01-04 Thread Chris Hayes
At 22:21 4-1-2003, you wrote: completely failed, the results were wrong every time: if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php } try if (!strpos($REQUEST_URI, "register.php") === FALSE) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] tool to organize & design a project?

2002-12-21 Thread Chris Hayes
dear list, I've noticed that the longer i work on a project, the more i use my 'organic' way of adding features and filter, and the less i understand what my own code is doing. Now I do have some projects of, say, 5000 lines and i started very organized with flow diagrams and function descripti

[PHP] email of listowner?

2001-11-01 Thread Chris Hayes
hi, i know it is very ungrateful but i am trying to stop my subscription to this list. I cannot confirm the unsubscribe because my ISP changes my email on the go and so the confirmation mail is not accepted, even if i try to mess with the sender address. The php-general-owner@ does not seem t

Re: [PHP] Searchengine friendly URLs

2001-10-30 Thread Chris Hayes
I heard google does follow links with the ?var=value part, others don't. So some people now work with page.html/var/value/var2/value2 don't ask me how it works though -- C.Hayes Droevendaal 35 6708 PB Wageningen the

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Chris Hayes
Jeez michael, i'm sorry but i am not going to go through all of your code. I do have a suggestion for you, without looking at the code. As you know. php has flexible variables. I mean, if you say $a=1 then $a is an integer, if you say $b='i' then $b is a string. Very easy to make code qui

Re: [PHP] I NEED HELP WITH PWS AND W98

2001-10-24 Thread Chris Hayes
> poor english. I need informacion about how configure Personal Web Server > under W98 to use with PHP 3.0 I downloaded the BIN code of PHP version > 3.0.17 for W32 and I followed the instructions on the manual “PHP > Manual” (I downloaded it in php.net page, and I configured the PHP.ini

Re: [PHP] RE: This is SOOOO FREAKY!!! Laughed like HELL !!! :-)

2001-10-04 Thread Chris Hayes
> > According to him, if you add > > '?=PHPE9568F36-D428-11d2-A769-00AA001ACF42' http://www.phpbuilder.com/mail/php4-beta/24/0796.php --- - -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --

[PHP] cookie not set anymore by IE5 (localhost)

2001-10-03 Thread Chris Hayes
hi, i'm having a cookie problem. Maybe you know Postnuke, anyway it requires cookies for users and the admin. At first it worked fine, i tried to add functionailty, testing it on postnuke. Then i deleted some cookies, even deleted the windows/cookies/index.dat , installed some extra versions o

Re: [PHP] Script that logons and grabs some pages (while beeingauthenticated)

2001-09-17 Thread Chris Hayes
hi, if you are just doing it to read emails my first idea is: get some email program and make a pop connection. Then you can email offline fine. (duh) But that can hardly be the reason for you to want to do this. If it is to read email, there is a POP class around, by Manuel Lemos, 1999. Wit

[PHP] independent PHP4 on shared Apache?

2001-09-06 Thread Chris Hayes
hi, we have an account with an ISP which is not extremely up to date (PHP3) but we are allowed to install MySQL. Ourselves. (But not on the default space, which is a disaster. Luckily there is a very experienced man, he even used to work for that ISP doing this for us. :-) Still took him 40 h

[PHP] this newsgroup via newsgroup program?

2001-09-06 Thread Chris Hayes
hi, from http://www.php.net/support.php i get the impression that i can subscribe to this group via news.php.net. Indeed i can collect a zillion newsgroups via that server but i cannot find php.general. Neither on news.xs4all.nl. I am using 'Agent'. Chris

[PHP] Re: Stripping line break characters

2001-08-25 Thread Chris Hayes
Hi! > $sql2=str_replace("","\n",$sql2); > $sql2=str_replace("","\r",$sql2); well that was easy: manual: string str_replace (string needle, string str, string haystack) and you did: str_replace (string str, string needle, string haystack) So better try $sql2=

[PHP] relative filename /home/www... in stead of /www/.....

2001-08-25 Thread Chris Hayes
dear group, I use the $DOCUMENT_ROOT to make a complete file name. $fpname=$DOCUMENT_ROOT.'/includes/blocks/dynmenu.php'; It does not work on one site: the document root misses the /home/ start. I could just hardcode this but i'ld rather have a function that would work everywhere. W

Re: [PHP] global variable again?

2001-08-25 Thread Chris Hayes
Look in the manual: language.variables.scope.html 'global' is meant to use inside a function for accessing vars that are not in a function (the main part). > I use global in this form: > > global $a; > $a=strtotime('now'); > . > . > . > echo $a; but in this line dont echo $a Using globa

Re: [PHP] always last

2001-08-24 Thread Chris Hayes
Van:"Andrey Hristov" <[EMAIL PROTECTED]> Aan:<[EMAIL PROTECTED]> Datum verz. Thu, 23 Aug 2001 18:33:53 +0300 Onderwerp: Re: [PHP] always last > Use a counter when fetching from the DB > if you use while the > $counter=0; > while(l

Re: [PHP] Dynamic check boxes...

2001-08-24 Thread Chris Hayes
Datum verz. Thu, 23 Aug 2001 14:17:28 -0400 Onderwerp: [PHP] Dynamic check boxes... > I have a form where users can enter a link (kind of a free for al links = > When I load an admin script I can check all of the ones that have a 0 in = > that field. I want to have chec

Re: [PHP] always last

2001-08-24 Thread Chris Hayes
Hi Jeremy, it's always easier for us if you tab/organize the code a bit so we get the overview. like this: $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); while ($row = mysql_fetch_array($result)) { $uid = $row['uid'] $team = $row['team'];

Re: [PHP] I get "headers already sent by" error each time I use setcookie function

2001-08-24 Thread Chris Hayes
> Datum verz. Thu, 23 Aug 2001 12:20:52 +0200 > I don't know why I get : > "Warning: Cannot add header information - headers already sent by (output > started at c:\windows\bureau\cookie1.php:2) in c:\windows\bureau\cookie1.php > on line 6" message each time I use setcookie function. S

Re: [PHP] path to php

2001-08-24 Thread Chris Hayes
look for HTTP_ENV_VARS["SCRIPT_FILENAME"] it may show up when you ask for it and for sure in the list the phpinfo() results in. Chris Van:"ReDucTor" <[EMAIL PROTECTED]> Aan:<[EMAIL PROTECTED]> Datum verz. Thu, 23 Aug 2001 11:35:00 +1000 Ond

Re: [PHP] how to discover cause of php crash under win98?

2001-08-21 Thread Chris Hayes
s > > > I assume your running apache, if so...take a look at > > the apache error.log file, there may be some hint in > > there as to the problems...usually/ program > > files/apache/logs > > > > rm > > > > > > --- Chris Hayes <[EMA

Re: [PHP] how to discover cause of php crash under win98?

2001-08-21 Thread Chris Hayes
5.0; Windows 98; DigExt)" Does that mean anything to you??? 304 must be something ok, but what is this 200 4063 code? Chris > I assume your running apache, if so...take a look at > the apache error.log file, there may be some hint in > there as to the problems...usuall

[PHP] how to discover cause of php crash under win98?

2001-08-21 Thread Chris Hayes
hi, i am trying to install the thousands-of-lines big postnuke.com website thingie. Unfortunately it won't start and the community does not seem to recognize the problem. I get this message: PHP caused an invalid page fault in module PHP4TS.DLL at 015f:1008e884. (PHP4 on win98)

RE: [PHP] Function to Build Trees

2001-08-21 Thread Chris Hayes
Antwoord naar: <[EMAIL PROTECTED]> Van:"Dan Harrington" <[EMAIL PROTECTED]> Onderwerp: RE: [PHP] Function to Build Trees > Or you could just buy from http://www.plumbdesign.com/ > or write a PHP SDK for them. > :-) sorry? what does that horrible coldf

Re: [PHP] Function to Build Trees

2001-08-20 Thread Chris Hayes
> Onderwerp:[PHP] Function to Build Trees A most interesting question! > Given a multidimensional array with words as keys, I want to match > the values of each array with the keys of the array and build a new > array that reflects these relationships as a sort of tree. So, in

Re: [PHP] Problem with a query? or Syntax?

2001-08-16 Thread Chris Hayes
> $num_de_rows = mysql_num_rows ($r); > this line <-if ( $num_de_rows > 0 ) { (i create some html > tables here) } > The error im getting is: > Warning: Supplied argument is not a valid MySQL result resource in > /home/passive-/public_html/pic_archive.php on line 172 I am not su

[PHP] Re: PHP within .html files

2001-08-16 Thread Chris Hayes
> It's not very usual for the simple reason that many people who have access > to a PHP web server don't use it, they just use normal HTML. The problem > with having HTML execute as PHP is that it uses the PHP module when it > mightn't need to. On my webserver the extensions which are parsed as PH

Re: [PHP] Problem with updating

2001-08-15 Thread Chris Hayes
hi martin, Could you send the code again and now include - the part where you get the $id_voorspelling from - the part where you make the $t1 - which variable goes wrong? $t1 or $t01? Can you check the table in mysql to see whether the error is in the update or in the print? Chris Van:

Re: [PHP] need real expert (geting outer files) *english/german*

2001-08-15 Thread Chris Hayes
hi Patrick, your question is not entirely clear. > I try to get a URL like: www.server.com?var=xyz i would recommend www.server.com/x.php?var=xyz as with a link as www.server.com you are relying on the server (by the way, which server do you use and is the error only at home or only online o

Re: [PHP] different PHP platforms

2001-08-15 Thread Chris Hayes
> I was wondering about > using PHP on WIndows and IIS 5.0. Could somebody using the Windows version > of PHP on IIS (preferably the ISAPI version) drop me a line and let me know > how you like it? How is it different from the Linux vesion? How is it's > COM support? Anything I should look out

Re: [PHP] a bottle in the sea...

2001-08-15 Thread Chris Hayes
auses everywhere. That makes them modest. Economists don't have that problem - they always think about single cause-single result. It is very important that economists also learn to understand the concept of multiple causes. Toos van Noordwijk-van Veen Chris Hayes - Droef 99 - 6708

[PHP] security with email data entries

2001-08-15 Thread Chris Hayes
Hi group! i have this script to read data in POP emails and put them in a database. I would like to know if anybody knows how people would try to get around the tests I've build in. - normal registration by web form (password scrambled), with confirmation through email response - the first hea

RE: [PHP] poor HTML syntax crashing (!) netscape

2001-07-03 Thread Chris Hayes
> I have an interesting situation at the moment... my (slightly sloppy) HTML > is obviously missing a closing tag here or there but displays fine in opera, > ie etc however when I try and view it netscape (4.x, windows, linux, any > platform) netscape just nice and cleanly crashes!! you mean lik

Re: [PHP] Convert

2001-06-29 Thread Chris Hayes
implode see manual/function.implode.html Chris Date sent: Thu, 28 Jun 2001 17:34:41 +0530 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:[PHP] Convert > Hi > > How do I convert arrays to string ??. > > ~ Karthick > >

Re: [PHP] Events Listings

2001-06-24 Thread Chris Hayes
From: "Rick Proctor" <[EMAIL PROTECTED]> > > I have a script that does TV/Tour listings for artist, I need it to sort the > list automatically so that it goes in date order but I have absolutely no > idea. I have put together the script with little to no PHP skills so it look > prett

Re: [PHP] PHP && mySQL

2001-02-08 Thread Chris Hayes
Hello Yui, I do not really understand your question. > initial condition > 1) three are many *html in my SQL ex:xxx.html,and yyy.html > 2)I have domain ex: abc (ex: http://www.abc.com) > 3)database name : aaa > 4)table name :bbb How is xxx.html in the SQL? > I want to try next step. > when

[PHP] rephrasing: start session in frame-index, continue in pages

2001-02-01 Thread Chris Hayes
index.php: http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] sessions with frames

2001-02-01 Thread Chris Hayes
hi! i would like to read in a txt file in the frame index page and use it through a session in pages. It does not work if index.php starts the session and succesfully registers a var, because a php page in a frame does not recognize the var. Chris

Re: [PHP] email headers!

2001-01-30 Thread Chris Hayes
> On Tuesday kaab kaoutar wrote: > > how can i add Bcc Cc and others to my email? > > i use > > $headers="Bcc:[EMAIL PROTECTED]\nCc:[EMAIL PROTECTED]"; > > mail($email,$subject,$body,$headers)) > > but i receive it only once ? > > I guess your mail server is simply too intelligent - it recogniz

Re: [PHP] Resize the pop-up window

2001-01-29 Thread Chris Hayes
> I have a link, which will pop up a new window, but the problem is: I don't > know how to resize the new popped-up window. > > My code is like this: > > intel connection * for 3.0+ browsers open a window with javascript (see www.irt.org window FAQ's) and set size in window features * for

Re: [PHP] Win32 - Mail & SMTP ???

2001-01-29 Thread Chris Hayes
a listmember claiming to be Jon Shoberg wrote: > I have PHP-4.0.1 running on my Win200 Pro devel box though the IIS DLL and > SMTP services running. I have SMTP enabled on this machine and have outlook > express configured to send mail though the local SMTP service. I simply told > O.Express t

Re: [PHP] include_path in windows

2001-01-26 Thread Chris Hayes
Shane McBride: > I am trying to get my php.ini file configured correctly. > I have a script that calls the require function/command( I'm not sure which > it is..) > > Here's what the .ini file is: > include_path=d:\sites;d:\sites\merchantpower\setup > > According to the notation in the .ini fil

Re: [PHP] URGENT:Passing input type file

2001-01-26 Thread Chris Hayes
> Hi, how can I pass an input type of file? I can get the value & I am able to > open the specified file when I pass it from the original form to the second > form but when I pass the value from the second form to the third form using > the hidden type, the file cannot be found... please help.

Re: [PHP] Greek PHP mailing list

2001-01-26 Thread Chris Hayes
> The options: Get a graph-link cable (which I can't find ANYWHERE), or make > your own during study hall, making them sufficiently stupid that the code can > be compressed down to a screenful: > > kyk():Prgm:Local a,b,c:13->a:"|+|"->b:ClrIO:Output > 0,-1,left(b,a)&"¥"&righ

Re: [PHP] Greek PHP mailing list

2001-01-26 Thread Chris Hayes
> kyk():Prgm:Local a,b,c: 13->a: "|+|"->b:ClrIO:Output > 0,-1,left(b,a)&"¥"&right(b,a):While abs(13-a)<13:getKey()->c:If abs(50-c)=1 > Then:a+c-50->a:Output 0,-1,left(b,a)&"¥"&right(b,26-a):EndIf:EndWhile:EndPrgm > > Play with the 1 and 3 keys. Guess what it does by just l

Re: [PHP] easy question.

2001-01-24 Thread Chris Hayes
proposed IF: >> if(($fname) && ($lname) && ($email)) Alex: > if (isset($fname) && isset($lname) && isset($email)) { > echo "test"; > I believe the parens in your code don't do anything. anyway, best o' my > knowledge that's the way to do it. First IF tests whether the vars are 'true', Alex's

<    1   2   3   4   >