[PHP] Problem with fopen()

2002-04-30 Thread Ben Turner
I am trying to complete an email application which will send messages to lists. Problem is, I am trying to write the messages out so that they will be available to a server application which actually sends the messages and does all the dirty work but I am getting the error that I cannot create

Re: [PHP] Problem with fopen()

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, Ben Turner wrote: I am trying to complete an email application which will send messages to lists. Problem is, I am trying to write the messages out so that they will be available to a server application which actually sends the messages and does all the dirty work but I

[PHP] Re: Problem with fopen()

2002-04-30 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ben Turner) wrote: I am getting the error that I cannot create the file in the directory. I have tried chmod and chown on the directory but nothing is working for me. I have even gone so far as to make the owner of the directory apache and

[PHP] error_reporting()

2002-04-30 Thread Boaz Yahav
Hi This function keeps amazing me. What is the highest possible value that i can give it to show all possible errors / warnings etc...? Thanks berber

Re: [PHP] error_reporting()

2002-04-30 Thread Michal Dvoracek
Hi, error_reporting(E_ALL); BTW: RTFM! Regards Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regular expressions help please

2002-04-30 Thread Ed Lazor
I've been banging my head against regular expressions all night... help would be greatly appreciated. Could you give me examples on how to do the following? Pull everything except a specific word from a sentence. For example, pulling everything except the word run from the water run was

RE: [PHP] build array dinamicaly

2002-04-30 Thread Tim Ward
Be careful - I fell into this trap when I first started doing this sort of thing. This code will produce an extra element on your array with value logical false. You need to do ... While ($array = mysql_fetch_array($result)) $myarray[] = $array; ... to avoid this Tim Ward Internet Chess

[PHP] If value is divisible by 2

2002-04-30 Thread Craig
I am trying to write an if statement that says if the value $foo is divisible by 2 then echo text i have tried mod but it isnt recognised any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Marius Ursache
if(($i % 2)==0) { $bg_color = $bg_color1; } else { $bg_color = $bg_color2; } $i++; Craig a écrit : I am trying to write an if statement that says if the value $foo is divisible by 2 then echo text i have tried mod but it isnt recognised any ideas?

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 16:05, Marius Ursache wrote: if(($i % 2)==0) Or simply: if ($i % 2) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* To thine own self

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Neil Freeman
if (($foo % 2) == 0) { echo text; } Neil Craig wrote: * This Message Was Virus Checked With : SAVI 3.54 Feb 2002 Last Updated 24th April 2002

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 15:51, Ed Lazor wrote: I've been banging my head against regular expressions all night... help would be greatly appreciated. Could you give me examples on how to do the following? Is this for a programming assignment/exercise? Do you /have/ to use regex? Other

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Marius Ursache
what e-mail client do you use jason? i like that are fortunes in your signature. i supose that they are automaticly set... Jason Wong a écrit : On Tuesday 30 April 2002 16:05, Marius Ursache wrote: if(($i % 2)==0) Or simply: if ($i % 2) -- Jason Wong - Gremlins Associates -

[PHP] regular expressions help please

2002-04-30 Thread John Fishworld
I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I' m having problems with the correct regex At the moment I've

[PHP] Re: regular expressions help please

2002-04-30 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ed Lazor) wrote: I've been banging my head against regular expressions all night... help would be greatly appreciated. Could you give me examples on how to do the following? Pull everything except a specific word from a sentence. snip

[PHP] STILL having Troubles getting GD support with jpegs, possiblity:PHP with GD jpeg support prebuilt?

2002-04-30 Thread Peter Revill
= CC all Replies to [EMAIL PROTECTED] = Ok, im STILL having problems, im close to tears here that this is not working, its INFURIATING so basically, I was hoping php 4.2 has support for Jpeg GD OR if someone has a prebuilt GD with JPEG

[PHP] Re: PHP4.2.0 + Apache2 prints code

2002-04-30 Thread Yasuo Ohgaki
James Stuart wrote: I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and both yield the same result. When the test.php page is accessed it returns ?php phpinfo(); ? instead of actually processing it. I have the lines: LoadModule php4_modulemodules/libphp4.so

Fw: [PHP] Null character as field seperator in a string.

2002-04-30 Thread The_RadiX
- Original Message - From: The_RadiX [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Dave MacRae [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 10:05 PM Subject: Re: [PHP] Null character as field seperator in a string. Hey.. yeah I might.. I don't know if I am right or just

Fw: [PHP] lookin for a Menuing System...

2002-04-30 Thread The_RadiX
Yes too true.. Quite well put.. That's why. I haven't read the rest of the posts on this topic yet as there are heaps.. but when I started working on my project with my graphics man we discussed the issue of using JS menus very thoroughly as yes Netscape and IE both have very different

[PHP] Ask for Simple Databases and PHP

2002-04-30 Thread Kalpin Erlangga Silaen
Hi all, I am looking for some aplication which use php and mysql for example only. For Your information, i am working to make databases aplication with PHP as Interface. And there is must have several function like : Search, Add, Checking if New data has been exist, Insert, Display and Update.

Re: [PHP] STILL having Troubles getting GD support with jpegs, possiblity: PHP with GD jpeg support prebuilt?

2002-04-30 Thread Tom Rogers
hi Looks like you need -ljpeg ... your missing the l somewhere Tom At 06:35 PM 30/04/2002, Peter Revill wrote: = CC all Replies to [EMAIL PROTECTED] = Ok, im STILL having problems, im close to tears here that this is not working, its

[PHP] argh please help! starting PHP error: Cannot load into server, uncompressis undefineed symbol

2002-04-30 Thread Peter Revill
I just finished recompiling PHP, and attempt to start the webserver agian, but i get the following error: Setting up Web Service: Syntax error on line 58 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol:

[PHP] Re: Please CC all replies to arevill@bigpond.net.au for my last (andbelow) msg

2002-04-30 Thread Peter Revill
Peter Revill wrote: I just finished recompiling PHP, and attempt to start the webserver agian, but i get the following error: Setting up Web Service: Syntax error on line 58 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server:

[PHP] Book: Web Database Applications with PHP and MySQL

2002-04-30 Thread Mark Harwood
Hi All, Has anyone got a copy of this book yet? If so, what do you think of it? Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Book: Web Database Applications with PHP and MySQL

2002-04-30 Thread David Garcia Aristegui
I like it, i think it's the best for beguinners, and it's fine try to work withreal examples... At 10:41 30/04/2002 +0100, Mark Harwood wrote: Hi All, Has anyone got a copy of this book yet? If so, what do you think of it? Mark -- PHP General Mailing List (http://www.php.net/) To

[PHP] ext/sockets: httpd waiting for TIME_WAIT

2002-04-30 Thread guido.d.berger
hello everyone, sorry for the long post, but i am stumped and i want to be as precise as possible. this is my setup: php 4.2.0 with the socket extension, as a dynamically loaded module in apache 1.3.23. it is running on is a red hat 7.0 box with kernel 2.2.19. this is was i am trying to do:

RE: [PHP] windows development - linux production

2002-04-30 Thread Ford, Mike [LSS]
-Original Message- From: Lee P Reilly [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 22:06 Just a quick question. I'm developing on a Windows machine right now, and will later move it onto Linux. Should I expect to run into major difficulty at all? I anticipate a few problems -

RE: [PHP] Insert in database

2002-04-30 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: 30 April 2002 00:04 instead of echo(Hi ,$_POST['fname'],nbsp;,$_POST['lname'],Thank You For Registering !!!); try echo Hi .$_POST['fname'].nbsp;.$_POST['lname'].Thank You For Registering !!!; You

Re: [PHP] Insert in database

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 18:15, Ford, Mike [LSS] wrote: echo(Hi ,$_POST['fname'],nbsp;,$_POST['lname'],Thank You For Registering !!!); You don't need to go as far as that. Just removing the parentheses from the original statement would have done the trick -- the commas are

RE: [PHP] regular expressions help please

2002-04-30 Thread Ford, Mike [LSS]
-Original Message- From: John Fishworld [mailto:[EMAIL PROTECTED]] Sent: 30 April 2002 09:32 I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones

[PHP] Re: If statement leading to another php page

2002-04-30 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello all, How can i force a transfer to another php page from an if statement? I have been trying: if (condition){ echo A HREF=3Dwww.link.comLink/A; echo 'A HREF=www.link.comLink/A'; the parser will get confused with all the

[PHP] Page Numbers

2002-04-30 Thread Craig
Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page Numbers

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 18:41, Craig wrote: Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next Yes. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html -- Jason Wong - Gremlins Associates -

[PHP] Re: STILL having Troubles getting GD support with jpegs, possiblity:

2002-04-30 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... = CC all Replies to [EMAIL PROTECTED] = Ok, im STILL having problems, im close to tears here that this is not working, its INFURIATING so basically, I was hoping php 4.2 has

Re: [PHP] Page Numbers

2002-04-30 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Craig declared Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next Not certain as to what you mean but I'm pretty sure there is a good article on building next/prev links on

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 16:31, John Fishworld wrote: I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif Perhaps you should clarify your problem. First of all does your array contain just gif files (ie *.gif) or does it contain all sorts

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
Okay right I'm experimenting with an i-mode parser ! I copy the file (url entered) to a local location ! Then read through the whole file line at a time and change/replace the things that need replaceing ! On of the things that I need to replace is the links to the pictures so that they still

[PHP] Re: Page Numbers

2002-04-30 Thread Manuel Lemos
Hello, Craig wrote: Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next This class does exactly what you asked: http://www.phpclasses.org/browse.html/package/130.html Here is a sample page:

[PHP] populating textboxes list boxes from database fields

2002-04-30 Thread Denis L. Menezes
Hello friends, Can someone please tell me where I can find sample scripts for populating textboxes and listboxes on a form(when the form opens) using the data from fields in a table? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 19:17, John Fishworld wrote: Okay right I'm experimenting with an i-mode parser ! I copy the file (url entered) to a local location ! Then read through the whole file line at a time and change/replace the things that need replaceing ! On of the things that I need to

RE: [PHP] populating textboxes list boxes from database fields

2002-04-30 Thread John Holmes
Pull your data from the database, assign it to a variable, and echo it's value to the text box. input type='text' name'whatever' value='?=$DB_Row[Column]?' For drop down boxes, it's a little different. You have to check each value to see if it equals your DB value, and if it does, echo

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
$imode_code = file($url_file); $file_name = basename($url_file); $path = dirname($url_file); $stripped_path = eregi_replace(^(.{2,6}://)?[^/]*/, , $path); $next_path = eregi_replace($stripped_path, , $path); $next_path_1 = eregi_replace(/$ , , $next_path); // create and open a file to write to

[PHP] String check

2002-04-30 Thread David Orn Johannsson
Is ther any function that I could use to check if a string beguins wiht a certin set of numbers, like if string starts_w “324” { do some stuff; } Regards, David http://www.atom.is/ Davíð Örn Jóhannssson Vefforritari Atómstöðin hf.

Re: [PHP] populating textboxes list boxes from database fields

2002-04-30 Thread Justin French
If you're familiar with getting data out of a table, then I don't believe you really need any examples. Consider the following over view or what you might do with a CD store: Get a product row from a data base into an array. it might look something like: $myrow[id] (55) $myrow[artist] (Nine

Re: [PHP] String check

2002-04-30 Thread 1LT John W. Holmes
if(substr($string,0,3) == 123) { //do some stuff } ---John Holmes... - Original Message - From: David Orn Johannsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 8:03 AM Subject: [PHP] String check Is ther any function that I could use to check if a string

Re: [PHP] String check

2002-04-30 Thread Justin French
eregi() is the go... whilst the documentation is pretty thin on the actual expressions, '^' checks for the pattern at the begining of a string. ? if(eregi('^324', $string)) { // // it did begin with 324 // } else { // // it didn't // } ? Justin French

Re: [PHP] String check

2002-04-30 Thread 1LT John W. Holmes
I wouldn't recommend ereg() unless you have some complex pattern matching to do. If you're always looking for the same string, in the same spot,then just use substr(). Now...if you want to match _any_ 3 numbers, etc, then that's when ereg() comes into play. ---John Holmes... - Original

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Alexander Skwar
»Craig« sagte am 2002-04-30 um 09:00:33 +0100 : I am trying to write an if statement that says if the value $foo is divisible by 2 then echo text i have tried mod but it isnt recognised if ($foo % 2){ echo foo is divisible by 2; } else { echo it is not; } Alexander Skwar --

Re: [PHP] Page Numbers

2002-04-30 Thread Pekka Saarinen
At 4/30/2002, you wrote: Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next Here's a very simplified demo of dropdown+arrows paging code I did for my gallery software. It might not be the most clever code around, but it works, and scales well.

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 19:43, John Fishworld wrote: $imode_code = file($url_file); $file_name = basename($url_file); $path = dirname($url_file); $stripped_path = eregi_replace(^(.{2,6}://)?[^/]*/, , $path); On Tuesday 30 April 2002 19:17, John Fishworld wrote: Okay right I'm

Re: [PHP] Page Numbers

2002-04-30 Thread Pekka Saarinen
At 4/30/2002, you wrote: At 4/30/2002, you wrote: Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next Here's a very simplified demo of dropdown+arrows paging code I did for my gallery software. It might not be the most clever code around, but

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
Duh ! lol sorry ! Example 1 html head meta http-equiv=content-type content=text/html;charset=iso-8859-1 meta name=generator content=Edit Plus titleLocations/title /head body bgcolor=#6699FF div align=center pfont color=blackWelcome tobr /fontfont color=redimg src=lg_imode.gif alt=

Re: [PHP] Database Duplication

2002-04-30 Thread Liam Gibbs
Maybe I should explain myself a little better. Sorry for leaving out what turned out to be crucial details. What is happening is I want to make a test user so that, whenever I log in with that user, I can muck up the database and not worry about what others will see or permanent changes. In the

[PHP] Session Authentication etc...

2002-04-30 Thread Troy Lynch
I'm currently rewriting a website in PHP and something I'm looking to do is login and logouts but also have a page to view who is logged at the present time. I've kinda made some login code which basically checks the database and then sets a cookie which I think I will change cause it looks like

[PHP] Strange Form Action Type

2002-04-30 Thread Jack
Dear all I had saw a form which is quite strange, because it look some as below: form name=o_form, action=deposit_admin.php?save=yes method=post as the deposit_admin.php is actually itself, but the ?save=yes is represent what meaning? Can someone pls tell me? -- Thx a lot! Jack [EMAIL

Re: [PHP] Strange Form Action Type

2002-04-30 Thread Justin French
That's just something the programmer has put in there for the next script to recognise. It could have been ?shoe_size=14, and it could have also been done with INPUT type=hidden name=save value=yes Justin French Creative Director http://Indent.com.au

Re: [PHP] Database Duplication

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 21:57, Liam Gibbs wrote: Maybe I should explain myself a little better. Sorry for leaving out what turned out to be crucial details. I think someone asked in response to your original post what db are you using?. You still haven't told us! -- Jason Wong - Gremlins

Re: [PHP] Database Duplication

2002-04-30 Thread Richard Emery
I'm going to guess you are using mysql. Before starting a test, dump your database with the mysqldump command. Edit this file to create/use your test database. Load your test database with this file. This is too obvious and too easy...therefore, I assume you already did this and it did not

Re: [PHP] Session Authentication etc...

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 22:57, Troy Lynch wrote: I'm currently rewriting a website in PHP and something I'm looking to do is login and logouts but also have a page to view who is logged at the present time. Assuming that you do not require a user to logout, there is no reliable method to

Re: [PHP] Database Duplication

2002-04-30 Thread Liam Gibbs
I'm going to guess you are using mysql. Dagwood. I always leave details out. Doesn't matter what it is. Yes, it's MySQL, and I'm forwarding this to the list because you're not the only one that caught my oversight. Sorry about that again. Before starting a test, dump your database with the

[PHP] Problem with array

2002-04-30 Thread Carlos Fernando Scheidecker Antunes
Hello All, I've got a form that creates checkboxes based on the number of rows on a table. The user has to check some of the boxes and then click submit. The boxes are named RG1, RG2, RG3, If there are 4 checkboxes and the user selects them all or selects the first, second and fourth,

Re: [PHP] Problem with array

2002-04-30 Thread Richard Emery
show the form. - Original Message - From: Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] To: PHP-GENERAL [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 10:11 AM Subject: [PHP] Problem with array Hello All, I've got a form that creates checkboxes based on the number of rows

[PHP] Announcement: Smarty template engine 2.1.0 released

2002-04-30 Thread Monte Ohrt
Homepage: http://www.phpinsider.com/php/code/Smarty/ Most notable new features are block functions which act on blocks of text {func}{/func}, and output filters which act on the output of the templates. Version 2.1.0 - - introduced output filters. (Andrei) - changed the

[PHP] Parsing XML

2002-04-30 Thread Fredrik Arild Takle
Hi, this might be a silly question, but I really haven't used XML alot with PHP. I've parsed som XML, when I do xml_parse it outputs the html-codes. I want to make a variable out of it.. I've tried $output = xml_parse(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] RE: Problem with array

2002-04-30 Thread Tim Ward
Try some diagnostics to tell you what's going on In the page you're submitting to try Foreach($HTTP_POST_VARS as $key=$value) echo($key=$valuebr); Part of your problem may be that you're using the number of form elements returned to control the for loop. It doesn't really have any significance

[PHP] PHP 4.2.0 + Apache 2.0.35 (W2KSP2)

2002-04-30 Thread Kirk Babb
I have copied these three lines from the php install.txt file into httpd.conf: LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php and php4ts.dll is in winnt\system32. Apache freezes unless I comment out those lines. When I test php

[PHP] Specify php.ini location in windows

2002-04-30 Thread Patrick Lynch
Hi, I am having a small problem with PHP/Windows. [config] Windows 2000 Server IIS 5 PHP 4.0.6 I have a server with a php.ini in the c:\winnt directory and a site running fine with that configuration. I need to set up a new site, using a different php.ini. The new site is set up in IIS

[PHP] Files sorted by date?

2002-04-30 Thread Randum Ian
Hi there, I got a number of files in the directory /reviews/txt which are reviews. They are submitted by people all over the world. Can someone please tell me what I need to do so that I can display them in date order, newest at the top on a webpage? Cheers, Ian. --- Randum Ian DJ / Reviewer /

[PHP] php command line

2002-04-30 Thread Ezra Nugroho
I was trying to compile php command line and got some problem. Maybe some of you can help. version: 4.1.2 I did: ./configure --with-ldap --with-oracle --with-oci8 --with-mysql=/usr/src/mysql-3.23.43-pc-linux-gnu-i686 --enable-track-vars --disable-debug --prefix=/usr/local/apache/php

Re: [PHP] Files sorted by date?

2002-04-30 Thread heinisch
At 30.04.2002 17:24, you wrote: Hi there, I got a number of files in the directory /reviews/txt which are reviews. They are submitted by people all over the world. Can someone please tell me what I need to do so that I can display them in date order, newest at the top on a webpage? Cheers,

RE: [PHP] _SERVER variable insd prnt sttmnt

2002-04-30 Thread Andrew Chase
For the sake of legibility you could always assign the contents of $_SERVER['PHP_SELF'] to another variable before using it in the print statement: $PHP_SELF = $_SERVER['PHP_SELF']; print LIA HREF='$PHP_SELF?letter=$chars[$cnt]'; Shouldn't be a problem security-wise as long as register_globals

[PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Joshua E Minnie
Can anyone tell me the best way to check that a DELETE query was successful. I have tried using mssql_num_rows() and mssql_rows_affected() but it is always telling me that the DELETE was successful, even when it shouldn't have been. Here is the code that I am trying to work with right now. ?

RE: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Steve Bradwell
Try this, $query = DELETE FROM [users] WHERE [user] = '$user'; $result = mssql_query($query) or die(Unable to delete user); if ($result) //delete worked. else //delete failed. -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30,

[PHP] XML to HTML?!

2002-04-30 Thread Fredrik Arild Takle
Hi, this might be a silly question, but I really haven't used XML alot with PHP. I've parsed some XML, when I do xml_parse it outputs the html-codes. I want to make a variable out of it, so I can write it to a file. I've tried $output = xml_parse(); -- PHP General Mailing List

Re: [PHP] Files sorted by date?

2002-04-30 Thread Jason Wong
On Wednesday 01 May 2002 00:24, Randum Ian wrote: Hi there, I got a number of files in the directory /reviews/txt which are reviews. They are submitted by people all over the world. Can someone please tell me what I need to do so that I can display them in date order, newest at the top on

[PHP] mail() errors and alternatives

2002-04-30 Thread John Hughes
For the second time in less than a week, the commercial Web service provider where I have four domains hosted has managed to break PHP. In particular, I get this message: Warning: mail() is not supported in this PHP build I'm not interested in what causes the PHP mail() function to become

[PHP] Re: PHP 4.2.0 + Apache 2.0.35 (W2KSP2)

2002-04-30 Thread Julio Nobrega Trabalhando
Load the experimental apache2filter.dll instead. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Kirk Babb [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Database Duplication

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, Liam Gibbs wrote: Before starting a test, dump your database with the mysqldump command. Edit this file to create/use your test database. Load your test database with this file. Hmm. No I didn't do this. Not too familiar with all the intricacies of MySQL (or SQL).

Re: [PHP] regular expressions help please

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, Ed Lazor wrote: Pull everything except a specific word from a sentence. For example, pulling everything except the word run from the water run was steep. $str = 'the water run was steep'; print preg_replace('/(\s*water)/', '', $str); Pull all words from a string

[PHP] SQL Query (Group By)

2002-04-30 Thread Andrew Brampton
Hi, This is more a SQL question that a php one, but here goes: I have a table with 3 fields, Date, IP, ISP. Basically I have written some php to store the following in the table each time someone hits a page on my site. Now I want to display some info about the users currently on my site, but

Re: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Joshua E Minnie
I tried that already, it always returns true. The reason is because it will always return true since it is only deleting if the user exists. This means that the query will run and successfully complete. But if the user does not exist it still runs and completes successfully, but the user was

Re: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, Joshua E Minnie wrote: I tried that already, it always returns true. The reason is because it will always return true since it is only deleting if the user exists. This means that the query will run and successfully complete. But if the user does not exist it still

Re: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Joshua E Minnie
That was exactly what I needed. Thanks, this group has been so helpful. .:. Josh .:. Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 30 Apr 2002, Joshua E Minnie wrote: I tried that already, it always returns true. The reason is because

[PHP] parse error

2002-04-30 Thread Jule
Hey guys, i'm writing this guestbook script for my site, and i'm getting a random parse error where i think everything is normal, it gives it on line 26 which is echo Your entry will be posted!; my script follows Jule --SCRIPT-- ?php $Guestbook[dateadd] = date(F j, Y H:i:s);

Re: [PHP] XML to HTML?!

2002-04-30 Thread Alexander Skwar
»Fredrik Arild Takle« sagte am 2002-04-30 um 18:48:37 +0200 : I've parsed some XML, when I do xml_parse it outputs the html-codes. Wrap into a output buffer. ob_start, ob_get_contents Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

[PHP] PHP Secure Connection: Alternative to Curl ?

2002-04-30 Thread [-^-!-%-
Hello everyone, I have host that does not support Curl. I was wondering, if there was another program I can use to make a secure connection (in PHP). I need to make an ADC Connection to Authorize.net. Pleae let me know. FYI: Do those of you who use Dreamweaver Ultradev Phakt, Dreamweaver

[PHP] Re: Best BBS

2002-04-30 Thread Austin Marshall
R wrote: Hey all, This email is not for any questions/suggestions etc but a thank you note. Some time back i posted an email asking if anyone had any recomendation for a BBS system and I got a lot of replies. I thank each and every one of you who wrote in, after checking out the links or

Re: [PHP] parse error

2002-04-30 Thread Miguel Cruz
You're missing a closing quote on the assignment for $Query2. Come on people, keep your eyes open. This is basic stuff. Doesn't take any special genius to count quotes and braces. miguel On Tue, 30 Apr 2002, Jule wrote: Hey guys, i'm writing this guestbook script for my site, and i'm

RE: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Steve Bradwell
I agree, try using a select after the delete. -Steve. -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 1:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checking to see if a DELETE was successful from MSSQL I tried that already, it

[PHP] Re: Best BBS

2002-04-30 Thread Michael Kimsal
Austin Marshall wrote: To bring balance in the force, there is www.phpbb2.org. It has a few arguments of why it is BAAADDD... I know i will never use phpbb2 It's a pretty lame page/site that amounts to someone whining about the fact that 1. The phpbb website looks good,

[PHP] PHP Editors

2002-04-30 Thread Liam Gibbs
Does anybody know of any PHP project editors, something that will group together all the PHP, INC, HTML, CSS files together into one logical project? Preferrably freeware/shareware, obviously. __ Do You Yahoo!? Yahoo! Health - your guide to health

Re: [PHP] parse error

2002-04-30 Thread Steve Cayford
Looks like your problem is on line 24. See below. -Steve On Tuesday, April 30, 2002, at 12:48 PM, Jule wrote: Hey guys, i'm writing this guestbook script for my site, and i'm getting a random parse error where i think everything is normal, it gives it on line 26 which is echo Your

Re: [PHP] parse error

2002-04-30 Thread Jule
Thanks for that, yeah i should be more carefull before going to the list.. i'll watch out for it next time. Jule On Tuesday 30 April 2002 13:54, Miguel Cruz wrote: You're missing a closing quote on the assignment for $Query2. Come on people, keep your eyes open. This is basic stuff. Doesn't

[PHP] Hex2Bin??

2002-04-30 Thread Joshua E Minnie
I know that there is a built-in function for bin2hex(), but does any body know have any code to do just the opposite, convert hex2bin? -- Joshua E Minnie/CIO [EMAIL PROTECTED] Phone: 616.276.9690 Fax: 616.342.8750 Nextel: 616.862.2847 Don't work for recognition, but always do work worthy of

Re: [PHP] Hex2Bin??

2002-04-30 Thread Miguel Cruz
On Tue, 30 Apr 2002, Joshua E Minnie wrote: I know that there is a built-in function for bin2hex(), but does any body know have any code to do just the opposite, convert hex2bin? Check the first comment in the manual under bin2hex. miguel -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 21:09, John Fishworld wrote: Duh ! lol sorry ! img src=/db/imodeklein/edgar-IMODE-1-.gif vspace=2br#59091;nbsp;a href=imode.fpl?op=imodecardprefix=IMODEnummer=1suffx=uid=55%2eFAGAEpa Unfortunately, no. Could you post say 20 lines of this file you're talking

Re: [PHP] Hex2Bin??

2002-04-30 Thread Joshua E Minnie
Although the first comment was not what I needed, I did find another built-in function that converts between any base, base_convert($number, $frombase, $tobase) worked wonderful for what I needed. Josh Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] parse error

2002-04-30 Thread Richard Emery
When constructing $Query, end each line with a period (.) not a comma(,). Same applies to $Query2. $Query = INSERT into $TableName values('0', '$Guestbook[dateadd]'. '$Guestbook[name]', '$Guestbook[town]', '$Guestbook[email]'. '$Guestbook[website]','$Guestbook[favsong]', '$Guestbook[comments]');

Re: [PHP] parse error

2002-04-30 Thread Miguel Cruz
The commas were inside the string enclosed by . If changed to periods, that would create a SQL error. miguel On Tue, 30 Apr 2002, Richard Emery wrote: When constructing $Query, end each line with a period (.) not a comma(,). Same applies to $Query2. $Query = INSERT into $TableName

Re: [PHP] PHP Editors

2002-04-30 Thread r
Hey, I use MacroMedia's ultra dev for my JSP/ASP pages but i know it supports PHP. The only problem i see is that it sure as hell aint free, you can use it for the first 30 days of course... after than i've heard that SOME people crack it and use it illegallybut i dont know much about

  1   2   >