[PHP] ibase (firebird) localhost login ?

2001-01-10 Thread Chris Hayes
hi, I know it's slightly off topic but i hope you;ll forgive me. i'm testing interbase because someone on this list mentioned it would be a good offline database. Interbase ('firebird') wants to connect to the local server (i'm running WAMP - Windows, Apache, MySQL, PHP), and interbase needs

Re: [PHP] How to escape from a function?

2001-01-16 Thread Chris Hayes
say, I have a function like this function foo() { babababa...; /*at this point, I want to output a lot of html, can I use a ':' to escape from there?*/ echo 'html'; echo 'titlechris is great/title'; return; // would just stop the function OR if you want to call the

Re: [PHP] Strings??

2001-01-16 Thread Chris Hayes
Ade asked: I have a form which has 10 fields, is there any way in PHP to take the values once submitted and create a string for each?? Absolutely. Worse; it is already done for you! If you give the input box a name, and submit to a php page, the php page contains a variable with that name! If

Re: [PHP] (Newbie) String within a string

2001-01-18 Thread Chris Hayes
jalist: I'm trying to grab a string from within a string based on a matching word or phrase. Example... You say you want the middle, not two words before and two words after. I see several ways. 1. Explode into an word-array and use that: 1. prepare string

Re: [PHP] Can a PHP program recieve an e-mail and write it to a file???

2001-01-18 Thread Chris Hayes
-pretty.html?code_id=108 * http://px.sklar.com/code-pretty.html?code_id=139 PS there might be Perl codes around doing something similar to what you want. Chris Hayes -- C.Hayes Droevendaal 35 6708 PB Wageningen

RE: [PHP] (Newbie) String within a string

2001-01-19 Thread Chris Hayes
ot; [EMAIL PROTECTED] To: "PHP" [EMAIL PROTECTED] Date sent: Thu, 18 Jan 2001 16:12:31 - Subject:RE: [PHP] (Newbie) String within a string Excellent, thanks a lot Chris. Steve (jalist) [EMAIL PROTECTED] http://ls2k.org -Original Message- Fr

[PHP] force page exit with submit button

2001-01-19 Thread Chris Hayes
Dear group, i'm planning to change a javascript shoppingcart site to a PHP site. For the javascritp shoppingcart it was convenient to have an index so i made it with frames, menu on the left, content on the right, data automatically updated to the index as soon as some field was unfocused. I

[PHP] file selected in form changes in next php page?!

2001-01-21 Thread Chris Hayes
Dear group, in my first page i have a form selcting a file. The names i used were csvfile, csv_file, and my_file. After submitting the form the filename changed to a totally different file, likeC:\PHP\php72C3.TMP or C:\PHP\phpD2B4.TMP (windows, apache, php4, internet

Re: [PHP] |O:T| Can anyone translate for me this Perl code into PHP?

2001-01-24 Thread Chris Hayes
Hi Maxim, It is simple, I can see it, but I do not understand what is that RegEx for, what is $pid ( fork() ) and where does it actually send emails... right... you look like Blair and Clinton saying the Human Genome has been 'completely' discovered. Simple, but ## the first part is

Re: [PHP] Turning off scrollbar

2001-01-24 Thread Chris Hayes
(Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: Wac Can anyone tell me how to turn off the bottom scrollbar in both Wac IE and Netscape?? Open the page from another page using javascript to open a window with feature not to scroll. See FAQS on www.irt.org or the Netscape Javascript

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 IF tests

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 looking at the

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

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. It's

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 file I

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 the

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: A HREF="www.intc.com" target="_blank" intel connection /A * for 3.0+ browsers open a window with javascript (see www.irt.org window FAQ's) and

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 recognizes that all

[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

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

2001-02-01 Thread Chris Hayes
index.php: ? session_start read in $array from csv file ? frameset... menu content and now: how can i continue the session in the content pages? Chris

[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

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

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 #8220;PHP Manual#8221; (I downloaded it in php.net page, and I configured 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

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

[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

[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

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

2001-08-15 Thread Chris Hayes
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 PS Wageningen - NL- [EMAIL PROTECTED] -- PHP General Mailing List (http

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

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:

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

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 sure but

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] 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 coldfusion

[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

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

2001-08-21 Thread Chris Hayes
, there may be some hint in there as to the problems...usually/ program files/apache/logs rm --- Chris Hayes [EMAIL PROTECTED] wrote: 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

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

2001-08-21 Thread Chris Hayes
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 [EMAIL PROTECTED] wrote: hi, i am trying to install the thousands-of-lines big postnuke.com website

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

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

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

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;

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 global

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

[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

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

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.

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 >

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] 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 like

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 I

[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

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:

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

Re: [PHP] regular expression

2003-01-14 Thread Chris Hayes
preceded by a forward slash. Chris Hayes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

Re: [PHP] Dumping Tables from MySQL

2003-01-14 Thread Chris Hayes
/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 (http

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

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;

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

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

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

2003-01-17 Thread Chris Hayes
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] 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;

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

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,

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, see the

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

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 because

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

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

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

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

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-- It is a

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

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] 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] Using custom button form element instead of standardsubmit?

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,

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

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 to see

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] 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] 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. ? php; class first { var $age; var $name; function first($age, $name) { return $age.$name; } } //main script $first = new first;

Re: [PHP] I need a PHP alternative to Windows Scheduled Tasks

2003-07-23 Thread Chris Hayes
At 11:13 23-7-03, you wrote: I have concluded that Bill Gates is Satan! um, what about moving to linux and use cron? But if you want to try it on satanic Windows: SINC (http://sourceforge.net/projects/sinc/) can be used to start programmes but also to invoke PHP scripts. I was not so happy

[PHP] debug exhausted memory

2003-07-23 Thread Chris Hayes
dear php generalists, I must admit that i have a pretty heave cms. But now a pretty normal query leads to a memory exhausted (at 8MB) crash on the server, but not at home with the same database content. I tried setting the memory_limit even to 0.2 MB (and restarted apache) at home, but still no

Re: [PHP] first time using exec() - are getting parse error.

2003-08-17 Thread Chris Hayes
At 12:06 17-8-2003, you wrote: Hi, I'm trying to call mysqldump from within a php-script, like this: $backuptime = date(ymdHi); $backupfile = un . $backuptime . .txt; exec(mysqldump --opt -u$dbuser -p$dbpassword $dbdatabase $alltables /web/un/backup/$backupfile); It works fine on my local

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Chris Hayes
At 18:33 4-9-03, you wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( Location: page2.php??echo strip_tags (SID)? ) You are making a row of mistakes that suggest it is a good idea to read a bit on PHP syntax and how

Re: [PHP] Passing query parameter which has value ###

2003-09-08 Thread Chris Hayes
At 13:04 8-9-03, you wrote: I passed value main.php?name=$nameid=$idid1=$id1 to next page where $id has value ### In the next page I was not able to get the $id and $id1 values and I am able to get the two values $id1 and $name when I used main.php?name=$nameid1=$id1 What might be the problem?

Re: [PHP] Mail() question

2003-09-09 Thread Chris Hayes
At 09:40 9-9-03, you wrote: On Tuesday 09 September 2003 08:12, Ryan A wrote: I am trying to create a new newsletter software as the ones i found on hotscripts were just not good enough or mucho $$ which i dont have :-( Please note that i I intend to add a kind of word merge functionality

Re: [PHP] Re: PHP and Apache

2003-09-09 Thread Chris Hayes
At 16:58 9-9-03, you wrote: Hi After installing Apache then PHP, i was told by php that apache wasnt configured, so i followed the instructions in the install.txt file. But everytime i view the files through the local host but i only see the written code, So how do i get this to work, assuming

[PHP] email attachment cannot be opened

2003-09-12 Thread Chris Hayes
hi, I've made a form to send out emails with attachments, and the attachments look ok when they arrive but the content is somehow bad. I cannot open gifs nor can word open the documents. Looking at the content something may be wrong with the encoding: if i open the GIF file the normal one as

Re: [PHP] email attachment cannot be opened (solved)

2003-09-12 Thread Chris Hayes
I found the culprit! I copied the filereading part without checking too good, and it had an addslashes call which ruined the file content very professionaly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

2003-04-05 Thread Chris Hayes
=a print color. } 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
; else $trcolor=#a; print $trcolor. } Chris Hayes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >