Re: [PHP] Disable Back Button

2001-10-19 Thread AD
If you really need to, it would need to be done client side, e.g. JavaScript. But reconsider it, okay? please :) -AD "Chip Landwehr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > lol! > > True, so true... > > "Richard S. Crawford" <[EMAIL PROTECTED]> wrot

[PHP] Re:Date->TimeStamp

2001-10-19 Thread Daniel Harik
I've tried this code: $timea = explode(" ",$timepostsed); $timea1 = explode("-",$timea[0]); $timea2 = explode(":",$timea[1]); $timestamp = mktime($timea2[0],$timea2[1],$timea2[2],$timea1[1],$timea1[2],$timea1[0]); But it return "-1" -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Date->TimeStamp

2001-10-19 Thread Daniel Harik
Hello guys I store date in my dbase in folliwing format 2001-08-27 22:24:07, how can i convert this to timestamp and do manipulation Thank You very muc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP] Re: is js set?

2001-10-19 Thread Yasuo Ohgaki
Martín marqués wrote: > Is there a way to know if the web client has javascript enabled? Sure. You can redirect to page with javascript and if JavaScript is enabled, use JavaScript and load pages you want. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: "Deleting" HTTP auth...

2001-10-19 Thread Yasuo Ohgaki
Lic. Rodolfo Gonzalez Gonzalez wrote: > Hello list, > > Is it possible to "delete" the data from an Apache's HTTP authentification > directly from a PHP script?. I know that the username/password pair is > stored in two variables which are sent by the client to the server, > right?. is it possib

[PHP] Re: contstant in heredoc <<

2001-10-19 Thread Yasuo Ohgaki
Pierce wrote: > is it possibe to include defined constant in heredoc block? > for example: > define("_ACONST_","CONSTVAL"); > $str = << value is _ACONST_ > EOL; > echo $str; > > *Normal* variables usage in {} doesn't woks :(( > Heredoc treat string as if they are enclosed by "". So constant d

[PHP] Re: Variable & Configuration Problem

2001-10-19 Thread Yasuo Ohgaki
I guess you are using php.ini-optimized, right? Take a look at http://www.php.net/manual/en/language.variables.external.php I suggest to read PHP Manual :) -- Yasuo Ohgaki Patrick Quaedackers wrote: > Hello all! > I installed PHP 4.0.6 om my server (Winnt server, Apache), and I started testing

[PHP] Re: !!! URGENT [PHP] php mail() function Problem

2001-10-19 Thread Yasuo Ohgaki
If your sendmail is set up correctly, you should be able to send mail. Check your sendmail. Look for sendmail Manul, FAQ, etc, since it's not PHP problem. -- Yasuo Ohgaki Simos Varelakis wrote: > Hi to everyone > > i have problem with php4 mail() function. > > Os:mandrake 7.2 Mailprog:Sendm

[PHP] Re: Annotated PHP Manual

2001-10-19 Thread Yasuo Ohgaki
Khalid Hazmi wrote: > How I can download the current Annotated PHP Manual??? > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > There is no such thing... AFAIK. -- Yasuo Ohgaki -- PHP General

[PHP] Re: PHP 4.0.6 & Mysql 4.0

2001-10-19 Thread Yasuo Ohgaki
Jeroen Geusebroek wrote: > Hi there, > > Does the current stable PHP (4.06) support the use of the newly released > Mysql 4? No. Not even with CVS version AFAIK. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

[PHP] IRC Channel

2001-10-19 Thread Chip Landwehr
Is there a PHP IRC channel? -- PHP General Mailing List (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] Re: urlencode() and rawurlencode()

2001-10-19 Thread Yasuo Ohgaki
Olexandr Vynnychenko wrote: > Hello php-general, > > People, tell me please what's the difference between subj, except > that the 1st translates space into +. > > Generally, users are supposed to use rawurlencode(), since "+" for spaces is obsolete. If you curious, have a look at RFCs.

Re: [PHP] Disable Back Button

2001-10-19 Thread Chip Landwehr
lol! True, so true... "Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can you imagine the trouble you'd get into if you could? At 09:47 PM 10/19/2001, Chip Landwehr wrote: >Is there any way to do this in PHP4? Sliante, Richard S. Crawfor

Re: [PHP] Disable Back Button

2001-10-19 Thread Richard S. Crawford
Can you imagine the trouble you'd get into if you could? At 09:47 PM 10/19/2001, Chip Landwehr wrote: >Is there any way to do this in PHP4? Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart th

[PHP] Disable Back Button

2001-10-19 Thread Chip Landwehr
Is there any way to do this in PHP4? -- PHP General Mailing List (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]

Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy
arrh! I don't think I can say much else. Thanks so much for pointing that out David. ;-) .Brad "David Pearson" <[EMAIL PROTECTED]> wrote in message 003101c1591a$e00ec290$320110ac@david">news:003101c1591a$e00ec290$320110ac@david... > Could it be the semi colon at the

[PHP] Re: Mysql export

2001-10-19 Thread Nikhil Goyal
I've found the best way is to set up a MyODBC link. You can download MyODBC from http://mysql.com/downloads/api-myodbc.html It's a bit complicated, but you get excellent results! - Nikhil Roman wrote: > Please help me, how to export mysql table to the xls table ? > Thanks for all > >

RE: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread David Pearson
Could it be the semi colon at the end of the 'if' line, at '... $nChar = 45); { ...' ? Looks like the if statement ends there, the ' { print "OK."; } ' is a block on it's own and the 'else' is now out of context. -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Fri

RE: [PHP] Re: regular expresion

2001-10-19 Thread Mark Charette
> In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Richard) wrote: > > > Hi, I want to validate that a variable only contains numbers. I > came up with > > this code > I came up with this code: is_numeric($var) mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: regular expresion

2001-10-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Richard) wrote: > Hi, I want to validate that a variable only contains numbers. I came up with > this code > > $variable = "154545"; -> must give me true. > $variable = "$%54545"; -> must give me false > $variable = "$%54545"; -> must

[PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy
Hi All, I'm stumped. I've got the following code: 47 And $nChar < 58) or ($nChar > 96 And $nChar < 123) or $nChar = 45); { print "OK."; } else { print "Not OK."; } } } ?> What's got me beat is that this code fails on the ELSE statement. Now, if I comment out the ELSE sta

[PHP] XML: Expat or DOM?

2001-10-19 Thread Daniele Baroncelli
Hi guys, I would like to start the new development of my site in XML. Can anyone with experience tell me the real difference in speed between the Expat and DOM parser? Also, is it really risky to develop in DOM, considering the module is experimental, and in theory it could change ? Any up-to

[PHP] LINE BREAK HELL

2001-10-19 Thread René Fournier
This problem has been driving me insane. I have a little script that let's users enter data into a form, which then gets appended to a file (table) as a line (row). The adding part of the script works fine--and by remembering to add a "\n" at the end of each row, when the file (table) is read, P

[PHP] regular expresion

2001-10-19 Thread Richard
Hi, I want to validate that a variable only contains numbers. I came up with this code $variable = "154545"; -> must give me true. $variable = "$%54545"; -> must give me false $variable = "$%54545"; -> must give me false $variable = "4545;#"; -> must give me false $variable = "004545"

[PHP] Re: Windows 2000 Permissions error

2001-10-19 Thread Fredrik Arild Takle
I guess you have to set EVERYONE. (Don't now for sure) Fredrik A. Takle "Justin King" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... While trying to use dir() on a certain directory, I get the error "Warning: OpenDir: Invalid argument (errno 22) in c:\inetpub\

[PHP] Re: [PHP-DB] variable operators in queries

2001-10-19 Thread DL Neil
> Is it possible to put variable operators in queries? =I can see no reason why not - you're not actually putting the 'variable' in the 'query', just using a PHP-variable to build a PHP-string which will be sent to MySQL as a SQL query... > I tried this (the real variable comes from a form) > $

[PHP] Re: Articles on OO apps in PHP, also Object-Relational mapping in PHP?

2001-10-19 Thread Lucas Chan
This may be of some use to you? http://www.devshed.com/Server_Side/PHP/ExtensibleMenuClass/page1.html Regards, [ lucas ] "Chris Bailey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm wondering if there are any articles or other material describing ho

[PHP] contstant in heredoc <<

2001-10-19 Thread Pierce
is it possibe to include defined constant in heredoc block? for example: define("_ACONST_","CONSTVAL"); $str = <

[PHP] Re: How to change the newline () into "dot" and ?

2001-10-19 Thread c
$var = str_replace("\n", "", $var); sometimes \r\n , but Im not sure... :) c [EMAIL PROTECTED] (Manisha) wrote in news:[EMAIL PROTECTED]: > I am having the text fetched from mySQL database. I converted newline to > with nl2br function. > > I need to detect and need to put 'dot' in front of

Re[2]: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread WebDev
Hello Alex, www.visualphpstudio.com /Merle Friday, October 19, 2001, 6:19:30 PM, you wrote: AS> Where you find it? Why not show up the link? AS> Actually I have been always thinking of a php studio. I think at least AS> following AS> things could be integrated into such a studio: a php IDE b

Re: [PHP] Error on session_start()

2001-10-19 Thread p.whiter
Hi Be sure that you are placing the session_start() before the (html)head section of your script, best to put it right at the top of the page, also make sure there is no white space before opening php tags. HTH Paul - Original Message - From: "Zavier Sheran" <[EMAIL PROTECTED]> To: <[EMAI

[PHP] Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-19 Thread Philippe
Hi, A small update, the file is in 755 (otherwise Suexec don't let the script work) Philippe Philippe writes: > Hi, > My file end in .cgi, it's in 777 > It isn't handled by Apache because it don't work if I don't put > #!/usr/local/bin/php > It's in cgi-bin directory, and yes others cgi lan

[PHP] Error on session_start()

2001-10-19 Thread Zavier Sheran
When I try to start a session or authenticate with HTTP headers, I get the following error: Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in /usr/local/etc/httpd/vhosts/gar/english/login/login_2.ph

[PHP] Re: Help converting ASP->PHP

2001-10-19 Thread Curt A. Gilman
You should be able to do everything with PHP's date functions: http://www.php.net/manual/en/ref.datetime.php Pay particular attention to the mktime, date, and getdate functions. The script below might be helpful to you. __ Curt A. Gilman Richmond, Virginia, USA [EMAIL PROTECTED] "

[PHP] variable operators in queries

2001-10-19 Thread Sander Peters
Hello, Is it possible to put variable operators in queries? I tried this (the real variable comes from a form) $Date_Operator =(">="); sql="SELECT * FROM poeple WHERE age $Date_operator 20"; $result_id = mysql_query($sql); It doesn't work like this. I also tried: sql="SELECT * FROM poeple WHE

[PHP] Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-19 Thread Philippe
Hi, My file end in .cgi, it's in 777 It isn't handled by Apache because it don't work if I don't put #!/usr/local/bin/php It's in cgi-bin directory, and yes others cgi languages work well (I've already tested perl) Philippe Curt A. Gilman writes: > Philippe, > > Does the file name end in

[PHP] Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-19 Thread Curt A. Gilman
Philippe, Does the file name end in .php or something similar? If so, it is probably being handled by the Apache PHP module, since you have it installed, and not by the CGI. You could try changing the name to .cgi or something else and see what happens. Also, have you remembered to put the file

[PHP] "Deleting" HTTP auth...

2001-10-19 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello list, Is it possible to "delete" the data from an Apache's HTTP authentification directly from a PHP script?. I know that the username/password pair is stored in two variables which are sent by the client to the server, right?. is it possible to alter them from PHP¿?. Thanks a lot, Rodolfo

[PHP] Re: Help converting ASP->PHP

2001-10-19 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... >Goto yahoo and do a search for ASP2PHP - it is a script that converts >asp pages to php. Never used it so I can't say how good it works, but >I'm guessing it will do all the basic stuff really well, but db stuff >might get a bit messy.

Re: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread Alex Shi
Where you find it? Why not show up the link? Actually I have been always thinking of a php studio. I think at least following things could be integrated into such a studio: a php IDE bundled with a web authority tool, and port to SQL server and web server. Alex - Original Message - Fro

[PHP] test

2001-10-19 Thread Kurth Bemis
system test -- PHP General Mailing List (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] Help converting ASP->PHP

2001-10-19 Thread MrBaseball34
PHP Newbie, so please don't flame me ! I am converting an organizer example from an ASP book to PHP and need some help. Need some help with the following code : /* intMonth and intYear are variables passed into a function datCurrent, intCurrentMonthDays and intWorkDays are local variables *

[PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-19 Thread Pour Mailings Lists - pass huitre
Hi, I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 I've installed PHP in Apache, it works very well I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's the problem) but I've a problem. In CGI mode, the path of PHP is always written at the top of the result I'll take for exampl

[PHP] Re: why does trim() remove NUL?

2001-10-19 Thread John A. Grant
"_lallous" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I guess if strlen() fails it returns 0 and if string has no length then it > also returns zero. > > I don't think PHP's strings are zero terminated. > > $str = "abc\xab\x00defgh"; > echo $str; > outputs: abc½ defgh > > and

[PHP] Error compiling pdflib extension

2001-10-19 Thread Eric Thelin
I recently tried to recompile PHP-4.0.6 and my pdflib extension stopped working. I was building it in directly but the module wasn't being listed on phpinfo() and of course the pdf functions didn't work. So after many attempts I decided to try another approach and build it as a shared module. I

RE: [PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin
No that's not the issue either. I found out that the important thing to add to permissions with full control was "NETWORK". PHP in windows is smart enough to reverse slashes. It helps make things more cross-platform in php. -Justin -Original Message- From: Frewuill Rodriguez [mailto:[E

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Bill Rausch
George, Rasmus' suggestion is correct, but he was terse as usual :) and you might not have understood what he was saying. My solution is to present a list of the filenames available as LINKS (to non-existent files). Then the script does what you've already got. The problem is that some brows

[PHP] is js set?

2001-10-19 Thread Martín Marqués
Is there a way to know if the web client has javascript enabled? -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? - Martín Marqués |[EMAIL PROTECTED] Programador, Administrad

RE: [PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin
Well the code actually traverses a group of directories and errors on that directory (the only one I've changed the permissions to) so I'm pretty sure it's not the code. Here's a snippet of the traversing code.. -- function listDirs($startDir) { echo "Checking $startDir..."; $d = dir("$

[PHP] Visual PHP Studio--comments?

2001-10-19 Thread René Fournier
Just found this app, and wondered if anyone here is using it and could comment on it. I was just wondering how it might help me do basic PHP development more than a good editor alone. (I am a PHP newbie, so perhaps it's just overkill.) ...Rene --- Rene Fournier [EMAIL PROTECTED] ___

[PHP] A case of client that affects the speed of the server

2001-10-19 Thread Carlos Henrique Barbosa Gonçalves
Hello, people. I'm trying to configure Apache+PHP on a Linux Red Hat machine(Pentium III, IP 130.94.20.132) in order to leave the machine I'm currently using (Pentium II, www.etapa.net) To evaluate the difference in performance, I ran the same PHP script in both machines. Much to my surprise,

[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee
in php.ini session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 604800 ; after this number of seconds,

Re: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark
On Fri, 19 Oct 2001 12:17:48 -0700, Tom Beidler wrote: >Trying to use the solution without positive results > >First need to clarify, I'm actually trying to order the model. >Here's my >original query; > >$make_query = "SELECT make.make, model.model, application.make_id, >application.model_id FROM

[PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin
While trying to use dir() on a certain directory, I get the error "Warning: OpenDir: Invalid argument (errno 22) in c:\inetpub\wwwroot\search\update.php on line 71". I'm aware this is most likely a permissions error, but I've already given SYSTEM, SELF, and SERVICE full control over the direc

[PHP] Re: weird session problem

2001-10-19 Thread Chris Lee
create the variable then register it, not the other way around. also a great function for checking arrays is print_r() print_r($HTTP_SESSION_VARS); -- Chris Lee [EMAIL PROTECTED] "Ross Barefoot" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Summary:

[PHP] Re: Searching for a word in a string

2001-10-19 Thread Chris Lee
php.net/strstr if ( strstr($string, $search) ) echo "TRUE"; else echo "FALSE"; -- Chris Lee [EMAIL PROTECTED] "Brandon" <[EMAIL PROTECTED]> wrote in message 001e01c158b3$91579170$5a52a040@wi">news:001e01c158b3$91579170$5a52a040@wi... > Hello, > > How can I search for a certain wo

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Tom Beidler
Chris, Good solution but I should have mentioned we're running PHP 4.04 and I was getting an undeclared function with array_search. I tried using array_keys without luck. Here's as far as I got; while ($make_row = mysql_fetch_array ($make_result)) { if (in_array ("No model s

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Tom Beidler
Trying to use the solution without positive results First need to clarify, I'm actually trying to order the model. Here's my original query; $make_query = "SELECT make.make, model.model, application.make_id, application.model_id FROM application INNER JOIN make ON make.id = application.make_id I

Re: [PHP] array to string

2001-10-19 Thread R'twick Niceorgaw
try this $fupdatecontents=''; while ( list($key,$value) = each($fcontents) ) { $fupdatecontents .=$value; } $fcontents = $fupdatecontents; or just write $fupdatecontents into the file. You may need to add a \n after each line ( which I'm not sure);. If you need you can change the $fupdatecon

RE: [PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread MINI2
No, just make sure you configure the .php3 extension as you would .php, .phtml, etc. You could make it .MyWierdExtension as long as Apache knows that files of that type are PHP and need to be processed. Cheers Casey Swenson [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [

[PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread sgibbs
We just upgraded to php4 but many of our html files end with the extension .php3 - will this be a problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [E

[PHP] Articles on OO apps in PHP, also Object-Relational mapping in PHP?

2001-10-19 Thread Chris Bailey
I'm wondering if there are any articles or other material describing how to design PHP web applications in a highly object oriented fashion? Specifically, object relational mapping, using classes for nearly everything (as appropriate), etc. The articles don't have to be PHP specific, but PHP's OO

Re: [PHP] Dividing too integers...

2001-10-19 Thread R'twick Niceorgaw
try this.. $temp = ($foo%$bar); $this=$temp/$bar; - Original Message - From: "Seb Frost" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 6:20 AM Subject: [PHP] Dividing too integers... > Sorry for the stupid question... > > I want to do > > $this=$foo/$bar

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Christopher William Wesley
Splice the array at the point in your result array where "No make specified" is, for one element, then append it back onto the result array. Here ... $noMake = array_splice( $resultArray, array_search( "No make specified", $resultArray ), 1); // This should be one line, sorry :) $newResults = a

RE: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark Charette
Don't bother with doing it in PHP, do it in MySQL with a functional ordering: Select Make from your_db order by if(left(Make,7)='no make','',Make) -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 11:53 AM To: php list Subject: [PHP] h

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
George, your best bet is to have a table in your database which looks up the name of the file, based on a more friendly name. James . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Politicalia admin and editor e: [EMAIL PROTECTED] :: w: http://www.politicalia.com/

Re: [PHP] Re: mysql transactions/rollback

2001-10-19 Thread Heikki Tuuri
Hi! Job Miller wrote in message <[EMAIL PROTECTED]>... >yes, thank you though. >not in MyISAM tables, which is what mine are, and >again according the manual, you slow things down >significantly for transaction support. Transactional InnoDB tables are actually faster in many simple benchmarks t

[PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Tom Beidler
I'm running a query that pulls up automotive makes for a given year and orders them alphabetically. One of the options is "no make specified" which I would like to always move to the end of the mysql_fetch_array. So my while loop would pull up AMC Ford Volkswagon No make specified Instead of A

Re: [PHP] array to string

2001-10-19 Thread Steve Werby
"René Fournier" <[EMAIL PROTECTED]> wrote: > Just trying to convert an array to string before writing the whole thing > back out to a file. (Trying to do a simple database-less database, using > text files). > > $fcontents = file($name.".db"); // THE ENTIRE TABLE > $fcontents[$update] = $updated

[PHP] array to string

2001-10-19 Thread René Fournier
Just trying to convert an array to string before writing the whole thing back out to a file. (Trying to do a simple database-less database, using text files). $fcontents = file($name.".db"); // THE ENTIRE TABLE $fcontents[$update] = $updatedstring; // THE ROW TO BE UPDATED

RE: [PHP] how to know if email sent

2001-10-19 Thread David Pearson
By default you'll never know if the email you sent gets through. You could set up a bounced email tracking system. There is an "Errors-To" header in the email messages that you can have send to a specially set up account on your system. Then have a cron job process that looking for bounced emai

RE: [PHP] Searching for a word in a string

2001-10-19 Thread Boget, Chris
> How can I search for a certain word in a string? strpos() ereg() preg() and similar functions. Chris

[PHP] Searching for a word in a string

2001-10-19 Thread Brandon
Hello, How can I search for a certain word in a string? Thanks Brandon -- PHP General Mailing List (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] weird session problem

2001-10-19 Thread Ross Barefoot
Summary: when I write scripts using sessions and run them on my web host the session is created, a session file is opened, but the session file is 0 bytes and therefore the session variables are not being passed. When the tech support guys at the host run the same script they work, even when dial

[PHP] how to know if email sent

2001-10-19 Thread Alexander Jäger
hi everybody i'm making an automatic booking system in php. for the hotelier it's also possible to calculte offers and send them to his gasts. we send the email with @mail and although we put in a right-formated (with @ in it etc.) but wrong email adress the function results true. so we tried to

RE: [PHP] Timestamp math and format

2001-10-19 Thread Alfredeen Johan K
Thanks, That was just what I needed, ie: SELECT DATE_FORMAT(DATE_SUB(insert_date, INTERVAL 2 HOUR), '%b %e (%r)') Johan > On 17-Oct-2001 Alfredeen Johan K wrote: > > I store a timestamp in a database of when a record was > inserted. When I pull > > it out, I format it like this SELECT > DATE_F

[PHP] How to convert text/html mail into readable thing ?

2001-10-19 Thread Rafał Zawadzki
I am using PHP @ Red Hat. And i have got one big problem: I am writing interface for pop3 accounts. Everything is ok, when mail are normal, it means their has got attachments, or not. But when i am reading mail which has been written in html, and it has got also attachment, i got for example: --

[PHP] phpPgAdmin joins SourecForge

2001-10-19 Thread Dan Wilson
For full story, please visit http://sourceforge.net/forum/forum.php?forum_id=117841 It looks like a previous post didn't go through, so if this is a duplicate, please forgive me. -Dan [EMAIL PROTECTED] http://sourceforge.net/projects/phppgadmin -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Jon Farmer
> I'm running PHP v4.0.7RC3 (from package php4-cgi) on Linux 2.4.10-ac11. > Distribution debian unstable. I would recommend 4.0.6 compiled from source. Thats what I use and its very stable. Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP

[PHP] Problems with get URL from script (post without forms)

2001-10-19 Thread Silvia Mahiques
Hi I´m interested in launching an HTML page directly from another page. The former has php code and I´d also like to pass some arguments to it. I´m using the getURL code to do this job but I had some problems: After launched, the page looks quite weird. When I look at the source code, the var

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Yes, If I download the file as it is named, it is the file I expected, only not named the way I wanted. George "MrBaseball34" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > And the php page which is fileaccess.php: > > > > > $fp1 = "D:\\Pdf\\" . $fp;

Re: [PHP] sscanf() question...

2001-10-19 Thread Christian Reiniger
On Wednesday 17 October 2001 23:25, Uchendu Nwachukwu wrote: > I am trying to write a script to convert a MySQL timestamp > (MMDDhhmmss) to a unix timestamp. SELECT UNIX_TIMESTAMP(timefield) AS MyTime FROM xy -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) "These are the peo

[PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Alexander Deruwe
Hey all, When running PHP scripts from the command line, I get this error: "Content type: text/html PHP Fatal error: Unable to start session mm module in Unknown on line 0" The script doesn't run, or so it seems. I also get this error when I run generic stuff such as 'php4 --help', or just 'ph

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread MrBaseball34
> > And the php page which is fileaccess.php: > > $fp1 = "D:\\Pdf\\" . $fp; > $len = filesize($fp1); > header("Content-Type: application/pdf"); > header("Content-Disposition: inline; filename=$fp1"); > header("Content-Length: $len"); > readfile($fp1); > ?> Have you CHECKED the value of $fp? -

[PHP] Re: kindly help adding days on a date

2001-10-19 Thread _lallous
you can use it like that: see the mysql's date_add() usage: SELECT DATE_ADD(NOW(), INTERVAL 5 DAY) or 5 YEAR or n MONTH "Krushna Kumar R" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have 2 fields on a table as shown below 1. period int

[PHP] session ID does not delete itself

2001-10-19 Thread Peter
Hi, I have been experimenting with PHP4 using sessions and one of my books says that session ID's are created in the /tmp directory so I take a look in there and I find are about 10 sessions that have not been deleted dated earliest to about being week old ie. sess_5b30ccebb1d098c37a5e46efd770

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
James, I can. The text in square brackets is a pdf filename referenced in full from a Filemaker database using Lasso. And the php page which is fileaccess.php: HTH George - Original Message - From: "James Cox" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]>;

Re: [PHP] Mysql export

2001-10-19 Thread Andrey Hristov
PhpMyAdmin (on http://www.phpwizard.net") has the capability to export mysql table ot CSV, then import the CSV or maybe this will help you too(on small tables, otherwise the HTML code is big) $dump=''; $separator=','; $the_query="select * from $table;"; $res=mysql_query($the_query); if ($res){

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
can you paste the full text of the code as you have it? I don't see anywhere where you define the name of the file. James Cox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Politicalia admin and editor e: [EMAIL PROTECTED] :: w: http://www.politicalia.com/ Today's

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Thanks for the [non] suggestion. I will not host these in a web-accessable directory. They are copyright materials. I've done this type of hosting previously using Frontier on a Mac and it worked fine. I thought that php was better than Frontier, though. George - Original Message - Fro

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Sebastian, Just tried it - it dosn't work for me. George - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: "'George Pitcher'" <[EMAIL PROTECTED]>; "'Php-General" <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 12:19 PM Subject: AW: [PHP] Delivering NAMED pdf files Hi Ge

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread speedboy
> Thanks for the suggestion but it didn't change anything. It won't. Put them in a web accessible directory and don't use custom header calls because they do not work reliably. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] kindly help adding days on a date

2001-10-19 Thread Krushna Kumar R
Hi, I have 2 fields on a table as shown below 1. period int- we enter no of days as number/integer 2. lastdatedate - here i'll have to add period to todays(current) date and store in the table i used dateadd it was working on mysql prompt, but when i used it with PHP, it doesnt

AW: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Sebastian
Hi George I had the same problem a while ago. The only solution i found was to change the link to : www.blabla.com/pdffile/test.pdf test.pdf does not exist, but in /pdffile/ there is a .htaccess which redirects the 404 to the php script that reads/generates the pdfs. And for my purpose checks if

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Arpi, Thanks for the suggestion but it didn't change anything. George - Original Message - From: "Arpad Tamas" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 11:13 AM Subject: Re: [PHP] Delivering NAMED pdf files > On

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Rasmus, Thanks for the suggestion but it didn't change anything. George - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 10:54 AM Subject: Re: [PHP] Delivering NAMED pdf files

RE: [PHP] Dividing too integers...

2001-10-19 Thread Seb Frost
Cheers Rich! I had $numrows instead of $num_rows - Doh! I said "too" instead of "two" - double Doh! - seb -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: 19 October 2001 11:30 To: Seb Frost; PHP General Subject: Re: [PHP] Dividing too integers... I don't see

[PHP] Mysql export

2001-10-19 Thread Roman
Please help me, how to export mysql table to the xls table ? Thanks for all Roman -- PHP General Mailing List (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 P

Re: [PHP] Dividing too integers...

2001-10-19 Thread Richard Baskett
I don't see why that doesnt work... I would echo your values first to make sure the values you want in $foo and $bar are the right ones... It looks to me that your expression is correct... Rick > Sorry for the stupid question... > > I want to do > > $this=$foo/$bar; (All are integers.) >

Re: [PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Richard Baskett
Did you check out?: http://www.php.net/manual/en/ref.pfpro.php These functions are only available if PHP has been compiled with the --with-pfpro[=DIR] option. You will require the appropriate SDK for your platform, which may be downloaded from within the manager interface once you have registered

  1   2   >