Re: [PHP] Date (Year) .. adding..

2001-05-23 Thread Rob Hardowa
I like Tyler's solution. It is better to move the call to date() outside the loop. You only need to get the current year once, and then add one onto it each iteration. If you leave the call to date() inside the loop then it calculates the current date each time and that uses CPU power and t

[PHP] select the most repeated value in a field

2001-05-23 Thread Jacky
Hi people How do i query to select the most repeated values in a field, say if I hacve list of values as a,b,c,d,e to be submitted to a field call "result" in a table. And I want to know which value appear most in that "result" field amoung all records. cheers Jack [EMAIL PROTECTED] "There is no

[PHP] select the most repeated value in a field

2001-05-23 Thread Jacky
Hi people How do i query to select the most repeated values in a field, say if I hacve list of values as a,b,c,d,e to be submitted to a field call "result" in a table. And I want to know which value appear most in that "result" field amoung all records. cheers Jack [EMAIL PROTECTED] "There is no

[PHP] regex for dynamic highlighting in search results...need help

2001-05-23 Thread hopeless
Forwarded to the list for suggestions...my regex is pretty rusty... -- I've got a string full of HTML, and I'd like to highlight specific words in the text by surrounding it with tags. That's pretty simple: $strIn = eregi_replace("([^a-z'-])($highlight)([^a-z'-])", "\\1\\2

Re[2]: [PHP] Problem with PHP as CGI

2001-05-23 Thread Richard Kurth
Hello ..s.c.o.t.t.., I fixed the problem it seems there was something wrong with the file when it was uploaded to the server. It works now I am using shebang lines because this script has to run at root it runs other programs on the server that need to be run at root. php is set up to just run scr

RE: [PHP] two data base connections on one page

2001-05-23 Thread ..s.c.o.t.t..
look at the manual def's for both: mysql_connect and mysql_db_query if you have multiple database connections active, remember to *always* use the linkid of the database you want to talk to > -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 2

Re: [PHP] two data base connections on one page

2001-05-23 Thread David Robley
On Thu, 24 May 2001 15:23, Peter Houchin - SunRentals Australia wrote: > Hi, > > I'm playing around with phpwebsite that I down loaded.. and am creating > my own pageto add to it phpwebsite creates a database connection and > the page I am creating also needs a connection to a different databas

RE: [PHP] Problem with PHP as CGI

2001-05-23 Thread ..s.c.o.t.t..
im not sure that i understand the question, but the way i've got my apache/PHP configured, i dont ever see the actual path to the PHP binary. what type of problem are you having ?? PS: i never use shebang lines in my PHP scripts; i have apache configured to handle *.php files as PHP code.

Re: [PHP] php unpack function

2001-05-23 Thread php3
Addressed to: Chris Mattmann <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Chris Mattmann <[EMAIL PROTECTED]> Wed, 23 May 2001 18:05:27 -0700 (PDT) > > Thanks for your help Rick. > > The problem I was having was basically as you understood, except for the fact > that

RE: Re[2]: [PHP] Problem with PHP as CGI

2001-05-23 Thread ..s.c.o.t.t..
as a test, try removing the shebang line from your script and running the PHP binary from the shell: "/usr/local/bin/php myscript.php" i've used the CGI version for months now with apache for my website, and frequently use PHP from the shell to test out ideas and code snippets and i've never

Re: [PHP] include and include-virtual

2001-05-23 Thread David Robley
On Thu, 24 May 2001 10:00, Christian Dechery wrote: > At 22:23 23/5/2001 +0100, James, Yz wrote: > >Christian, > > > >Those are SSI calls (Server Side Includes, for use with .shtml files). > > I know what they are... I wanna know what's the difference between them That's really an apache-related

[PHP] two data base connections on one page

2001-05-23 Thread Peter Houchin - SunRentals Australia
Hi, I'm playing around with phpwebsite that I down loaded.. and am creating my own pageto add to it phpwebsite creates a database connection and the page I am creating also needs a connection to a different database ... this is possible to do and on the same page ... I know this is probably

RE: [PHP] Checking an URL

2001-05-23 Thread Jason Murray
> Don't suppose you have some example code on how to do that? if ($HTTPS) { // You're in secure mode } Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "What'll Scorpy use wormhole technology for?" 'Faster pizza delivery.' -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Checking an URL

2001-05-23 Thread YoBro
Don't suppose you have some example code on how to do that? "Christian Reiniger" <[EMAIL PROTECTED]> wrote in message 01052316371001.00599@chrisbig">news:01052316371001.00599@chrisbig... On Wednesday 23 May 2001 07:19, YoBro wrote: > Hello Everybody :-) > > I've been trying to figure something

[PHP] Indonesia Japan Business News

2001-05-23 Thread SuratkabarCom Online
Want to see the latest of Indonesia Japan Business News; just click; http://suratkabar.com -- 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] test

2001-05-23 Thread ..s.c.o.t.t..
why dont you just use an email program that works correctly? > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Subject: [PHP] test > > It wasnt a test my email program gets out of hand occassionally. trust me > i am trying very hard to control. i am sorry if it real

Re: [PHP] Problem with PHP as CGI

2001-05-23 Thread midget2000x
This is not an answer, but a further question on this subject. Do you (or anybody) know of a way to keep the path to PHP from showing up when the PHP CGI script is hit via HTTP? On Wed, 23 May 2001, Stuart J. Browne wrote: > "Richard Kurth" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED

Re[2]: [PHP] Problem with PHP as CGI

2001-05-23 Thread Richard Kurth
Hello Stuart, yes there is a Wednesday, May 23, 2001, 9:06:08 PM, you wrote: Stuart J. Browne> "Richard Kurth" <[EMAIL PROTECTED]> wrote in message Stuart J. Browne> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> >> I have php config as a cgi and I put this at the top of my script >> >> #!

Re: [PHP] Problem with PHP as CGI

2001-05-23 Thread Stuart J. Browne
"Richard Kurth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have php config as a cgi and I put this at the top of my script > > #!/usr/local/bin/php -q > > when ever I run this script at root in > telnet I get this message below. > > Error in argumen

Re: [PHP] Threaded discussion Phorum algorithm

2001-05-23 Thread Adeline Wong
sorry, should be http://www.phorum.org. - Original Message - From: Adeline Wong <[EMAIL PROTECTED]> To: Michael Stearne <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: php php <[EMAIL PROTECTED]> Sent: Thursday, May 24, 2001 12:22 PM Subject: Re: [PHP] Threaded discussion Phorum algorithm

Re: [PHP] Threaded discussion Phorum algorithm

2001-05-23 Thread Adeline Wong
Try this.. http://www.phorum.net. - Original Message - From: Michael Stearne <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: php php <[EMAIL PROTECTED]> Sent: Thursday, May 24, 2001 11:42 AM Subject: Re: [PHP] Threaded discussion Phorum algorithm > Here's a paper Jamie Zawinski did on

Re: [PHP] Threaded discussion Phorum algorithm

2001-05-23 Thread Michael Stearne
Here's a paper Jamie Zawinski did on threading, it might be of use, but probably a little more than what you were looking for. http://www.jwz.org/doc/threading.html Michael rodrigo wrote: > I need to implement a custom discussion phorum for a news site. I would > like to know what is the most

[PHP] test

2001-05-23 Thread Jon Yaggie
Dear Peter It wasnt a test my email program gets out of hand occassionally. trust me i am trying very hard to control. i am sorry if it really bothers you. if you want a real question no one has answered the one i posted last nite regarding strftime and why i cant pass the value %e to it.

RE: [PHP] ff

2001-05-23 Thread Peter Houchin - SunRentals Australia
is it possible to stop these sort of annoying posts? ie this one and the ones that just say test they annoy me lol sorry if seems harsh/selfish Peter -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 3:04 PM To: [EMAIL PROTECTED] Sub

[PHP] ff

2001-05-23 Thread Jon Yaggie
f

[PHP] Problem with PHP as CGI

2001-05-23 Thread Richard Kurth
I have php config as a cgi and I put this at the top of my script #!/usr/local/bin/php -q when ever I run this script at root in telnet I get this message below. I configured php like this ./configure --with-mysql make make install I have set this up on a number of servers Bu

[PHP] Threaded discussion Phorum algorithm

2001-05-23 Thread rodrigo
I need to implement a custom discussion phorum for a news site. I would like to know what is the most common algorithm to display the message list threaded and indented. This to accomplish one task: to show the reply to a post directly below the parent post and so on. Thanks in advance. -- *

Re: [PHP] PHP-Nuke vs. PHP-BB vs. ???

2001-05-23 Thread Clayton Dukes
Try PHPWebsite, it's a cleaned up version of Nuke and runs very well. http://phpwebsite.appstate.edu Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Tyrone Mills" <[EMAIL PROTECTED]> To: "

[PHP] bound variables and postgres

2001-05-23 Thread Phil Glatz
I've been using the PHP 4 postgres interface, but it does not support bound variables. Will it do so in the future, or are there any workarounds? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] Virtual Hosts document root directory.

2001-05-23 Thread Joseph Blythe
Richard Quadling wrote: > I assume there is a variable somewhere? > > Ideas/suggestions please. I think its the predefined apache variable $DOCUMENT_ROOT (look under predefined variables in manual), or try $SCRIPT_FILENAME, you may then parse the part you need. I use Linux so I am only guess

Re: [PHP] setting session.gc_probability

2001-05-23 Thread Joseph Blythe
Johnson, Kirk wrote: > I say that a value of "1" means garbage collection is launched on 1 out of > every 100 page requests, i.e., it truly is a percent. This has been discussed before try searching the list archives, although I believe you are correct in your assumption. Regards, Joseph

Re: [PHP] while statements output to variables

2001-05-23 Thread David Robley
On Thu, 24 May 2001 10:40, adam wrote: > i need to write a while statement to a variable that will later be > echoed again on another page after including this file to it. i need to > repeat a statement over and over in it and i do not know how. > > > > $variable = ' > > ' . > > do { > 'data

[PHP] PHP-Nuke vs. PHP-BB vs. ???

2001-05-23 Thread Tyrone Mills
Hello All, I'm looking for input and/or advice on selecting a Portal System like PHP-Nuke or PHP-BB. I haven't used any of these products, so I don't really have an opinion myself. Here's what I want to be able to do: - Modify the system, so it needs to be PHP based - Use MySQL as the backend -

RE: [PHP] Constantly running?

2001-05-23 Thread Chadwick, Russell
If safe mode is off you can keep setting the max execution time in a while loop and it would run forever. It will also use 100% cpu unless you call sleep. --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshe

[PHP] Constantly running?

2001-05-23 Thread Chris
Is there anyway to ALWAYS have a script running on the server without needing a browser to access it?

[PHP] while statements output to variables

2001-05-23 Thread adam
i need to write a while statement to a variable that will later be echoed again on another page after including this file to it. i need to repeat a statement over and over in it and i do not know how. ' . do { 'data to be outputted' }while ($something = mysql_fetch_array($query)); .' ';

[PHP] Session with PHP and MySQL--> hitory.back()...

2001-05-23 Thread Augusto Cesar Castoldi
I have a session that I control with a mysql table. But if the user press the back (to back a homepage of history) he can access the previews page without passing in the php session. How can I solve this problem? Something like happens when the internet explorer controls the session...

[PHP] trying to mimic a form

2001-05-23 Thread phpman
hello, I'm trying to use cURL to mimic a browser requesting data from UPS' web site. Here's the link (for getting a shipping rate)... http://wwwapps.ups.com/servlet/QCCServlet I try to fake sending all the post vars with cURL, however it doesn't work. Here's my code... // declare var vals here

Re: [PHP] doesnt work as expected

2001-05-23 Thread adam
an input tag of the type "image" cannot pass a name and value. therefore you will have to use a script to detect if both the button and hidden are passed or jsut the hidden. applying a hidden is helpful for this. '. $done2 . ' '; ?> -- PHP General Mailing List (http://www.php.net/)

[PHP] html_translation_table

2001-05-23 Thread Dennis Gearon
is the translation table supposed to have '&' => &3039; I wonder, because that is a single quote, and there seems to be no ampersand value in the table or a single_quote as a key. version 4.0.3pl1 running. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

[PHP] version numbers

2001-05-23 Thread Dennis Gearon
I wonder about the version numbers because of some of the alphanumeric values in them. Are the version numbers chosen such that ANY version higher can be checked for by the following code: if ( strcmp($ver_running_under, $min_version) > 0){ use feature; } else { use big nasty, ugly own versi

Re: [PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
At 22:23 23/5/2001 +0100, James, Yz wrote: >Christian, > >Those are SSI calls (Server Side Includes, for use with .shtml files). I know what they are... I wanna know what's the difference between them >Try: > >include("/path/to/filename"); >require("/path/to/filename"); no... I want SSI calls

Re: [PHP] Running Crontab on php script

2001-05-23 Thread mark
Richard Kurth <[EMAIL PROTECTED]> wrote: > > I have a php script that runs at root. I have php compiled as a cgi to > do this. > My question is what is the best way to run a crontab so that it does > not send a message every time it runs. This script runs every 5 min > and it can get pretty frust

[PHP] Running Crontab on php script

2001-05-23 Thread Richard Kurth
I have a php script that runs at root. I have php compiled as a cgi to do this. My question is what is the best way to run a crontab so that it does not send a message every time it runs. This script runs every 5 min and it can get pretty frustrating to get this email. The script runs only if ther

Re: [PHP] OT PHP Manuals

2001-05-23 Thread Joseph Blythe
Miles Thompson wrote: > My apologies to Joseph, and to the group at large. > > I didn't read his question carefully, and in retrospect, gave him a > pretty asinine answer. > > Braaay! - Miles Thompson Thanks all this is a great list, apology accepted :-) Joseph -- PHP General Mailing L

[PHP] doesnt work as expected

2001-05-23 Thread Chris Lee
$done2 "; ?> ok, type='submit' works like it should, the headers Packet ID (from_IP.port-to_IP.port): 208.181.210.98.3830-209.52.174.206.80 E . . . . . @ . . . ' . . . . b . 4 . . . . . P G . z . F . . k P . C P I % . . P O S T / t e s t 2 . p h p H T T P / 1 . 1 . . U s e r - A g

Re: [PHP] php unpack function

2001-05-23 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Chris Mattmann <[EMAIL PROTECTED]> Wed, 23 May 2001 13:28:36 -0700 > For instance, my file is basically just thousands of temperature > values, taken 4 times a day, over a period of 20 years. Let's > say I wa

Re: [PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
Hello Michael, You hit the nail on the head... Not sure how I missed that... In anycase, thank you. Mike [EMAIL PROTECTED] wrote: > please forgive me if your typo concerns only your posting, but you didn't close your >VALUES parenthesis. > Then, the order of the data in the second parenthes

Re: [PHP] printing a php/html page to the browser

2001-05-23 Thread mheumann
Usually, it should be enough to rename the file extension to .phps and the browser should handle it correctly, if the web server (i.e. apache) is properly configured. Michael. > If I had a mixed html/php page, i.e. where some of the strings had html > in them, other than setting the header to b

Re: [PHP] php unpack function

2001-05-23 Thread Christian Reiniger
On Wednesday 23 May 2001 22:28, Chris Mattmann wrote: > Hi there- > > I am using the PHP unpack function to take a binary formatted > file with 10's of thousands > of signed short integers stored in it, to take the file (which is in > PHP STRING form) > and extract the short integer values f

Re: [PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread mheumann
Hi, please forgive me if your typo concerns only your posting, but you didn't close your VALUES parenthesis. Then, the order of the data in the second parenthesis doesn't match that in the first one (which it has to). So the correct way to do it would be: $insert = mysql_query("insert into dbr

[PHP] printing a php/html page to the browser

2001-05-23 Thread Dennis Gearon
If I had a mixed html/php page, i.e. where some of the strings had html in them, other than setting the header to be of mime type 'text', how could I process this page to display it exactly like it was seen in a text editor, in html to the browser? -- PHP General Mailing List (http://www.php.net

Re: [PHP] outputting lines from file(file.php)

2001-05-23 Thread Christian Reiniger
On Wednesday 23 May 2001 17:47, Dennis Gearon wrote: > I have read in the lines from a php file into a $buff. > > Each line is set and the total corresponds to the number of lines in > the file. > > But trying to ouput the lines results in blank lines. > > do I have to pass the lines through somet

[PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
Hello, This is a really simple (looking) problem, but I can't seem to find the solution in the documentation. I want to insert today's date into a MySQL Date field. My first attempt was to use the following: $insert = mysql_query("insert into dbrss (Feed, Title, URL, Abstract, Old) VALUES ('

Re: [PHP] include and include-virtual

2001-05-23 Thread James, Yz
Christian, Those are SSI calls (Server Side Includes, for use with .shtml files). Try: include("/path/to/filename"); require("/path/to/filename"); I've never used these, but in PHP4 there are also: include_once("/path/to/filename"); and require_once("/path/to/filename"); (double check that I

[PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
What is the main difference between:

RE: [PHP] About Commit..

2001-05-23 Thread scott [gts]
postgres outperforms mysql on very high traffic sites where there are lots of INSERT and UPDATE commands issued, but for small sites where a majority of database calls are reading (SELECT), MySQL kicks postgres ass... there was a really good article on phpbuilder.com a few months back... check it

[PHP] php unpack function

2001-05-23 Thread Chris Mattmann
Hi there- I am using the PHP unpack function to take a binary formatted file with 10's of thousands of signed short integers stored in it, to take the file (which is in PHP STRING form) and extract the short integer values from it. The problem I am having is when reading all the docume

Re: [PHP] MySQL Select

2001-05-23 Thread Chris Lee
why not just simply it more while ($r = mysql_fetch_array($result)) { // do your thing here } -- Chris Lee [EMAIL PROTECTED] "Jon Haworth" <[EMAIL PROTECTED]> wrote in message 67DF9B67CEFAD4119E4200D0B720FA3F53FA57@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3F53FA57@BOOTROS... > So

Re: [PHP] About Commit..

2001-05-23 Thread Chris Lee
mysql does support transactions if used with berkely db. php does not support mysql transactions. in any sort of functions sence, you can try passing the commands to mysql with the mysql_db_query() command, but do not if this will work. if your looking for a completely new database, try postgres,

[PHP] strftime()

2001-05-23 Thread Jon Yaggie
Okay here is what I am trying strftime("%A, %B %e, %Y %H:%M:%S", $last); I have looked now at the manual and stared in amazement but it seems not to recognize %e at all. What i get is this Wednesday, May , 2001 12:44:08 Am i doing soemthing wrong?? %d works.

Re: [PHP] Site search engine suggestion.

2001-05-23 Thread ~~~i LeoNid ~~
On 20 May 2001 10:17:29 -0700 impersonator of [EMAIL PROTECTED] ("Alok K. Dhir") planted &I saw in php.general: >The best open source search engines I've seen/used are: > > ASPSeek http://www.aspseek.org > Mnogoseach http://mnogosearch.org/ > ht://dighttp://

Re: [PHP] Site search engine suggestion.

2001-05-23 Thread ~~~i LeoNid ~~
On 20 May 2001 09:54:53 -0700 impersonator of [EMAIL PROTECTED] ("Manuel Lemos") planted &I saw in php.general: >Hello elias, > >On 12-May-01 04:04:26, you wrote: > >>Hello guys, > >>I need that badly! I need a suggestion, advise, solution or whatever that >>might help! > >>I need a Site Search s

[PHP] tutorials

2001-05-23 Thread Jon Yaggie
Okay i am not expecting any heavy research here but if any one know of tutorials on these sujects it would really save me some time. thanks 1) useing php and xml 2) using perl and php together

RE: [PHP] php 4.0/win 2000/sql server

2001-05-23 Thread scott [gts]
what else is running on the Win2k machine? what kind of HTTP server? if you're running IIS/MS-SQL server, i'd hazard a guess that it's probably *those* programs that are slowing the computer down. i use Win2000/PHP/MySQL for local development (after which i upload the scripts to a linux machine

RE: [PHP] advice on 'Nusphere Mysql Package' appreciated

2001-05-23 Thread scott [gts]
Linux Mandrake (8.0) is extremely easy to install, (it's a complete linux distrib, based off of RedHat, so you can install it onto a clean machine) the install is *very* interactive and it comes fully loaded with almost everything you could want, and is free get the ISO's at : http://linux

Re: [PHP] session_unset() and session_destroy()

2001-05-23 Thread Yasuo Ohgaki
Arcady Genkin wrote: > I don't think that I grasp the difference between session_unset() and > session_destroy() functions. Would anyone explain? session_unset() frees session vars from memory. session_destroy() delete session from session storage. If you do session_unset(), it will results se

[PHP] setting session.gc_probability

2001-05-23 Thread Johnson, Kirk
OK, we're having an argument in our shop. This is what the manual says about garbage collection: "session.gc_probability specifies the probability that the gc (garbage collection) routine is started on each request in percent. Defaults to 1." Somebody here says that a value of "1" means 100%, i.

Re: [PHP] CVS problem

2001-05-23 Thread Yasuo Ohgaki
Nicholas wrote: > whenever i try to run this cvs command i get this > cvs -d >:pserver:[EMAIL PROTECTED]:/cvsroot/best-board/devel init > Protocol error: Root request missing > wtf am i doing wrong what do i do .. thanks (note this is FOR a php > program..) Why do you use init command? Unless

[PHP] Re: Can you help me with this: Bug #11055: segmentation fault & core dump during make

2001-05-23 Thread Markus Fischer
Sorry no, never touch sybase yet. - Markus On Wed, May 23, 2001 at 04:58:53PM +0200, [EMAIL PROTECTED] wrote : > > > From: [EMAIL PROTECTED] > > > Operating system: linux 2.2.14 (RH 6.2) > > > PHP version: 4.0.5 > > > PHP Bug Type: Sybase-ct (ctlib) related > > > Bug descri

Re: [PHP] OT PHP Manuals

2001-05-23 Thread Yasuo Ohgaki
All forms of PHP Manuals are created from XML source. DocBook and DSSSL is used for that. (It is described at the beginning of the manual.) You can get XML source from CVS, if you want. Joseph Blythe wrote: > Hey all, > > Just was wondering if anyone knew what was used to make the php manuals

Re: [PHP] ereg questions

2001-05-23 Thread Ker Ruben Ramos
hmm, got a little question. 1. what's that \\1 and \\2? got any info on where u got that from? 2. what if it's just href="anything.html" ? i mean.. something like it got lots of subdirectories or not. Thanks - Original Message - From: "Mark Maggelet" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

[PHP] MSSQL7

2001-05-23 Thread Daniel Guerrier
Is it possible to import one MSSQL7 DB to another if they were installed using different sort orders? If yes, how? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List

Re: [PHP] Web Server processing question

2001-05-23 Thread RockMonkey
Firstly, I narrowed it down to the following code: $Output = SimpleItem("$Heading","",true); foreach ($TopList as $Player => $Qty) {     $Output .= SimpleItem(WebLink("  $Player","csstats.php?id=" . $PlayerStats[DETAILS][ID][$Player],"bar' style='CURSOR:crosshair;"),$Qty); } print $Output; This

[PHP] ereg questions

2001-05-23 Thread Ker Ruben Ramos
How do i change all '' to '' any help out there?

Re: [PHP] writing to file quick and easy.

2001-05-23 Thread Chris Lee
sure this is not complicated, this is easy :) HTML in here, anything you put here, will goto the file too. Download "; $file = fopen("$DOCUMENT_ROOT$filename", 'w+'); fwrite($file, ob_get_contents()); ?> is this what you mean ? please get back to me. -- Chris Lee [EMAIL PROTECTED]

Re: [PHP] outputting lines from file(file.php)

2001-05-23 Thread Dennis Gearon
No, I am trying to make an online configuration/editor program. It reads in an XML formatted PHP file and ouputs the configuration of a state machine via a page on the web. With some simple mouse clicks, one will be able to program the desired behavior of the program. The XML formatting is transp

Re: [PHP] PHP & XML Parsing

2001-05-23 Thread Peter Dudley
> Interesting.. So to be consistent with proper XML formatting, > should the server hosting the XML file convert the & into > & ? It depends on the situation, I believe. The server that sends you XML should indeed provide you well-formed XML, which it's not doing. Probably what should happen i

Re: [PHP] Web Server processing question

2001-05-23 Thread RockMonkey
Ok. A simplified version of the subroutines (still with the same problem though): function SimpleList($Data,$MaxStats = "10",$Heading = " ") { if (is_array($Data)) { $Output = ""; $Output .= SimpleItem("$Heading","",2); foreach ($Data as $Player => $Qty) { $Outpu

[PHP] Virtual Hosts document root directory.

2001-05-23 Thread Richard Quadling
Hi. I am using Sambar Server on Win98SE, PHP 4.0.5. All is well. The server supports "virtual hosts". I am not sure of the terminology outside of Sambar, but effectively, I can go to my browser and enter ... local.site1.com local.site2.com etc. And get different sites. I have a set of PHP scr

[PHP] Virtual Host document directory.

2001-05-23 Thread Richard Quadling
Hi. I am using Sambar Server on Win98SE, PHP 4.0.5. All is well. The server supports "virtual hosts". I am not sure of the terminology outside of Sambar, but effectively, I can go to my browser and enter ... local.site1.com local.site2.com etc. And get different sites. I have a set of PHP scr

Re: [PHP] Problems with mail() function

2001-05-23 Thread Tolga \"thorr\" Orhon
I had smilar problems before and found out that I missed some "\n"s. It seems that you missed a "\n" at the end of headers. That might be a reason. Another solution might be replacing "\n"s with "\r\n". I heard in newsgroups and in some documentations that this might be problem in some systems. I

[PHP] [Call for Papers] International PHP conference 2001

2001-05-23 Thread Björn Schotte
Dear sirs / dear friends, The PHP-Center and Software & Support Verlag are pleased to announce the International PHP Conference that will take place from Nov. 5 to 7, 2001 in Frankfurt / Main, Germany. >>The dates are: Pre conference with whole day tutorials: Nov. 5, 2001 Conference: Nov.

Re: [PHP] outputting lines from file(file.php)

2001-05-23 Thread George E. Papadakis
hm.. Is include () or require () what you are talking about or I am wrong? -- GP > I have read in the lines from a php file into a $buff. > > Each line is set and the total corresponds to the number of lines in the > file. > > But trying to ouput the lines results in blank lines. > > do I ha

[PHP] writing to file quick and easy.

2001-05-23 Thread Christopher Allen
Hello: Lookin for a little advice here. I have a series of scripts that dynamically create web pages. The last page in the series I wish to be able to write out to a file. Is there a simple/quick way in which I can take the process(ing) script and write it to a file at the same time that it is d

[PHP] outputting lines from file(file.php)

2001-05-23 Thread Dennis Gearon
I have read in the lines from a php file into a $buff. Each line is set and the total corresponds to the number of lines in the file. But trying to ouput the lines results in blank lines. do I have to pass the lines through something like chop(), or html_spec_chars? How do you guys display php

RE: [PHP] sessions without trans_id

2001-05-23 Thread Johnson, Kirk
If the server has trans-sid enabled, you can disable it for your application using an .htaccess file, as given below. > -Original Message- > From: Dalyyla [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 23, 2001 2:14 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] sessions without trans

Re: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread James Holloway
*Shrug* Don't have time to test at the moment... That was taken from Chapter 9.3.4.7 of the MySQL manual http://www.mysql.com/doc/P/a/Pattern_matching.html Prior to MySQL Version 3.23.4, REGEXP is case sensitive, and the previous query will return no rows. To match either lowercase or upper

Re: [PHP] Using html templates

2001-05-23 Thread Tolga \"thorr\" Orhon
I am using libphp and quite satisfied with it. http://phplib.netuse.de/ -- Tolga 'thorr' Orhon ""Jamie Thompson"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > what is the best way of using html templates to display data from a database? > > -- > PHP General

[PHP] Problems with mail() function

2001-05-23 Thread Kevin Fogleman
The problems that I'm having with the mail function stem from the extra arguments that I'm trying to pass it. What I'm trying to do is write a script to mail links to interesting stories to other people. In doing this, I want to make the mail appear that it came from the e-mail address of the pe

Re: [PHP] PHP4/IIS/WIN2: Cookies are not sent. HELP!!

2001-05-23 Thread Michael Kimsal
IIS running anything as a CGI doesn't support standard cookie specs - you need to search on the microsoft site about CGI, IIS and NPH (non parsed headers). They admit they don't support the CGI spec, and offer a workaround, but I can't attest to it working or not. Diego Fulgueira wrote: > R

RE: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread Don Read
On 23-May-01 Bass¨Ð¦õªv wrote: > Hi , > By defualt , select rows from Mysql is case insenstive . > For exmaple , > select * from foo where name = 'PHP' > select * from foo where name = 'php' > is the same > > how can i do a queny which > select * from foo where name = 'PHP' > is success > but >

[PHP] PHP4/IIS/WIN2: Cookies are not sent. HELP!!

2001-05-23 Thread Diego Fulgueira
Recently, I reinstalled Windows 2000 (IIS 5.0) and PHP 4.03pl1. Since then, no cookies are being sent to the clients. No error is being reported. I change the PHP installation to 4.04, but I still have the same problem. I can't do session handling or anything without cookies. HELP PLEASE. Any clue

Re: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread Martín Marqués
On Mié 23 May 2001 17:56, you wrote: > Hey try this, though there are probably better ways, > > "SELECT * FROM foo WHERE name REGEXP '^[PHP]'"; This is not SQL compatible. This would be a correct SQL statement: SELECT * FROM foo WHERE name LIKE "[PHP]%" Saludos... :-) -- Cualquiera administra

[PHP] Can you help me with this: Bug #11055: segmentation fault & core dump during make

2001-05-23 Thread louigi600
> > From: [EMAIL PROTECTED] > > Operating system: linux 2.2.14 (RH 6.2) > > PHP version: 4.0.5 > > PHP Bug Type: Sybase-ct (ctlib) related > > Bug description: segmentation fauld & core dump during make > > > > downloaded free sybase-ct libs from link in faq from php site. >

Re: [PHP] How to select rows from Mysql with case senstive ??

2001-05-23 Thread James Holloway
Hey try this, though there are probably better ways, "SELECT * FROM foo WHERE name REGEXP '^[PHP]'"; James ""Bass¨Ð¦õªv"" <[EMAIL PROTECTED]> wrote in message 9egfot$cfu$[EMAIL PROTECTED]">news:9egfot$cfu$[EMAIL PROTECTED]... > Hi , > By defualt , select rows from Mysql is case insenstive . > F

Re: [PHP] Web Server processing question

2001-05-23 Thread Christian Reiniger
> In the following example, which is the one that I'm concerned about, > the same function is called multiple times in a row (with nothing > happening in between calls) for different "categories". Basically, the > function sorts an array and outputs the 10 elements with the highest > value. > > I

Re: [PHP] re: files

2001-05-23 Thread Christian Reiniger
On Wednesday 23 May 2001 17:03, Jon Yaggie wrote: > Okay thanks perhaps i am using an old manual. I think i downloaded it > about three months ago but this function is not present there . .. Bad excuse. That function has been in there since at least the early PHP3 versions. -- Christian Reini

Re: [PHP] notifier

2001-05-23 Thread Chris Lee
notified, like an email ? look at the mail() function. when the user logs on, email yourself. -- Chris Lee [EMAIL PROTECTED] ""Taline Makssabo"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone suggest where i could find a simple PHP code so

Re: [PHP] PHP AND SSI

2001-05-23 Thread Christian Reiniger
On Wednesday 23 May 2001 12:12, John Monfort wrote: > You should be able to just print it. The code won't matter to php, > but the browser will process it. > > > echo ""; "the browser will process it" What does "SSI" stand for? - "Sis Sounds Interesting" - "Server Side Includes" - "Se

  1   2   >