Re: [PHP] cookie expiring with session

2002-12-13 Thread John Nichel
Set it without a expire time, then it will expire whenever the user closes their browser windows. If the jsp that needs to read the cookie on the same domain for wich it's set, it shouldn't have any problem reading it, but yes, you won't be able to use php's $_SESSION in jsp. Andrea wrote: I u

[PHP] AIM and PHP

2002-12-15 Thread John Meyer
does anybody know of a class or a PEAR module to check the status of an AIM user and see if they are online or offline. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] if question

2002-12-17 Thread John Fishworld
Help ! Can anyone tell me why this doesn't seem to work ?? if (($stelle_who != '1') OR ($stelle_who != '2') OR ($stelle_who != '3') OR ($stelle_who != '5') ) { and what can i use as an alternative syntex ?? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] if question

2002-12-17 Thread John Fishworld
DUH ! Thanks all ! Obviously a slight case of brain death there ! > Hi John, > > > Can anyone tell me why this doesn't seem to work ?? > > It probably is working, but it's obviously not doing what you want :-) > > > if (($stelle_who != '1') OR ($s

[PHP] RegExpres Prob

2002-12-19 Thread John Wards
ught this would do it: ereg_replace("src=\"(^http)","src=\"http://www.domain.com/";, $string); but it didn't... Argh... Cheers John Wards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RegExpres Prob

2002-12-19 Thread John Wards
On Thursday 19 Dec 2002 11:25 am, Wico de Leeuw wrote: Preg_Replace('~src="(?!http://)~iS', 'src="http://www.domain.com/', $string); Ha! Ta I am all for quick fixes but I am new to RegExpresions...so could someone explain what its all doing for me.

[PHP] One php returning several htmls

2002-12-19 Thread John Hinton
ng about simple links and alternatives. -- John Hinton - Goshen, VA. http://www.ew3d.com Those who dance are considered insane by those who can't hear the music -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Resource limit/performance questions

2002-12-20 Thread John Hinton
this testing on a 550 mhz processor, but will be running the ap on a dual 500s. Am I getting totally out of hand in thinking I can do this? TIA -- John Hinton - Goshen, VA. http://www.ew3d.com Those who dance are considered insane by those who can't hear the music -- PHP General Ma

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread John Hinton
mming > > Check us out on the web at http://www.phparch.com! > > > > Subject: [PHP] Resource limit/performance questions > Date: Fri, 20 Dec 2002 15:31:58 -0500 > From: John Hinton <[EMAIL PROTECTED]> > To: "[EMAIL PROTECTED]" <[EMAIL PRO

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread John Hinton
nthly magazine dedicated to the world of PHP programming > > Check us out on the web at http://www.phparch.com! > > > > Subject: Re: [PHP] Resource limit/performance questions > Date: Fri, 20 Dec 2002 1

[PHP] Loading modules not compiled in php

2002-12-21 Thread John Nichel
Hello gang, I have a site hosted at JTL Networks, and I'm looking into setting up a spell checker for my message boards. The problem is, JTL doesn't have pspell compiled in with their php build, and it may be some time before they do (if they ever do). Does anyone know of a way to include

Re: [PHP] Loading modules not compiled in php

2002-12-21 Thread John Nichel
This is what I'm looking fordo you know if you can load it in a .htaccess file? I have a couple of files that are included in on every page, so I could do it in my config file, but there's no reason for me to load the module on the whole site, when I need it just in the forum section. I'm

Re: [PHP] Forms

2002-12-23 Thread John Nichel
How did you install php? RPM, from source? Check in /etc, or do a... find / -name php.ini as root. Vicente Valero wrote: I'm having problems using variables from a html form. I've been reading, and it seems that I have register_globlas=off in php.ini. But I've tried to find this file in my Li

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
Try... $_SERVER['HTTP_REFERER'] John Taylor-Johnston wrote: The deal is my ISP does a redirect from www.delete.compcanlit.ca to www.delete.compcanlit.usherbrooke.ca. I'm trying to if statement the redirect. Again, I find no variable in phpinfo(). John -- By-Tor.com It'

Re: [PHP] REMOTE_HOST

2002-12-23 Thread John Nichel
Did you try $_SERVER['HTTP_REFERER'] ? John Taylor-Johnston wrote: What happened when you tried that? Nothing. Nothing showed. In fact nothing for getenv('REMOTE_HOST') in the else either. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP G

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
What do you get with this... echo ( "\n" ); print_r ( $_SERVER ); echo ( "\n" ); John Taylor-Johnston wrote: But something does appear when you click on the links in this post, but not on a blank page nor from the server redirect?? Oh well. Any other avenues? I thought so

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
Like John said, REFERER isn't always set, and that looks to be the case here. One thing I did notice is that the redirect comes thru on a different port. If this is consistant, you may be able to use this. John Taylor-Johnston wrote: echo ( "\n" ); print_r ( $_SERVER ); echo

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
ked on a link from another page, it was set. I'll look at it a bit longer to see if there is anything out there to tell it was redirected, but it's not looking good. John Taylor-Johnston wrote: [SERVER_PORT] => 80 Server port does not change. Will it do anything to change my

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
All session.referer_check does is make sure that the referering page is from within your host, and from what I'm reading, it seems that HTTP_REFERER would have to contain something. Couldn't hurt to try, but I don't think it will help you achieve the desired results. John

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
REDIRECT_* variables will tell you that, but again, this has nothing to do with the referer. If you want to know where something was redirect from, try REDIRECT_URL. -Rasmus On Tue, 24 Dec 2002, John Taylor-Johnston wrote: John, CC: a copy of your next posts. I'll be back on Friday. J

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread John Nichel
, but his phpinfo() does show REDIRECT_* vars as it is the server doing the redirect. An external redirect (HTTP Location header) is not going to show anything as it has nothing to do with the server. -Rasmus On Tue, 24 Dec 2002, John Nichel wrote: He's looking to see if there is a redi

Re: [PHP] forum?

2002-12-24 Thread John Wards
www.google.com www.hotscripts.com - Original Message - From: "Fatih Üstündað" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Tuesday, December 24, 2002 2:51 PM Subject: [PHP] forum? > do you know freeware forum in php I can easly use? > > thanks. > fatih ustundag > > --

Re: [PHP] Apache

2002-12-26 Thread John Nichel
http://httpd.apache.org/docs/misc/FAQ.html#set-servername Mantas Kriauciunas wrote: Hey! I'm using FreeBSD 4.5 as my server and I have loaded Apache 1.3.2 and PHP 4.x . hare goes the question, sorry it isn't about php but still maybe you can help me. When I type Http://www.example.com/~user the p

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
Post the include statements from your header.php file. Mike Bowers wrote: Isnt this supposed to be a friendly place where people who are having problem with PHP can ask questions without people like u throwing insults? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
A couple of items which will help you get a better / friendlier response here. Don't send mail to the list in HTML format, and don't request a return reciept. HTH Mike Bowers wrote: Isnt this supposed to be a friendly place where people who are having problem with PHP can ask questions without

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
nclude("editable/my_header.php"); -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:58 PM To: Mike Bowers Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Include Problems Post the include statements from your header.php file. Mike Bowers wro

Re: [PHP] Session changes from version 4.06 to 4.22 ??

2002-12-28 Thread John Nichel
Show some code. Chances are, register globals is off. Phil Schwarzmann wrote: I just switched from a web host who used version 4.06 to a web host who is using version 4.22 - Now none of my PHP scripts will start sessions properly. Did something change from version 4.06 to 4.22 concerning sessio

Re: [PHP] Populating a list box from a database - The code

2002-12-28 Thread John Nichel
$Organisation[1] is always going to be empty because you're only selecting one item per row from the DB SELECT OrgName If you want the same output in both places, just do this... echo ( "$Organisation[0]\n" ); Denis L. Menezes wrote: $link = mysql_connect("localhost","lod

Re: [PHP] Populating a list box from a database - The code

2002-12-28 Thread John Nichel
Closing parenthesis...remove it. Denis L. Menezes wrote: Thanks Maciek. With the code that you gave me, I am getting the error : Parse error: parse error in /usr/local/www/virtual2/66/184/35/184/html/findresults.php on line 114. My lines are as follows : $content.= "".$orgData['OrgName']."\n")

Re: [PHP] 4.2.3 and XML...

2002-12-28 Thread John Nichel
The only error I see is a call to an undefined function (xmldocfile), which isn't a native php function. That doesn't have anything to do with php's xml functions. Russell P Jones wrote: My sysadmin just complied 4.2.3 on my Apache web server but is out of town for the next few weeks. Problem i

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread John Nichel
I went to it in Netscape 4.x, 6 & 7, and got this /* Not Found The requested URL /index-old.php was not found on this server. Apache/1.3.20 Server at dynamix-tn.com Port 80 */ In IE, I got /* The page cannot be found The page you are looking for might have been removed, had its name ch

[PHP] MySQL Join

2002-12-31 Thread John Hinton
ield0, (DISTINCT field1, field2) FROM table? Sure would make this easy! or SELECT field0 WHERE DISTINCT field1, field2 FROM table? There seems to be very little information anywhere on DISTINCT -- John Hinton - Goshen, VA. http://www.ew3d.com Those who dance are considered insane by those w

Re: [PHP] Running PHP on Windows OS

2002-12-31 Thread John Nichel
I don't do Windows all that often, so I'm not sure this will work, but I seem to remember this problem a while back. You may want to try putting the php4apache.dll in the same directory as all the dll's that came with Apache, and load it like this LoadModule php4_module php4apache.dll HTH

Re: [PHP] How to get folders names in a dir

2003-01-01 Thread John Nichel
http://www.php.net/manual/en/ref.dir.php http://www.php.net/manual/en/function.is-dir.php Alexander Guevara wrote: i need to get in a select box all the dirs inside a folder.. how can i do that? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (htt

Re: [PHP] parse error

2003-01-02 Thread John Nichel
You have numerous errors in that code. Your DB connection line is messed up, the username and password either need to be a quoted string, a variable representing that string, or a constant. Your database selection needs to be quoted. You need to escape out the double quotes that you want to

Re: [PHP] email/time question

2003-01-02 Thread John Nichel
Running Linux / UNIX? man crontab Make a php script for command line use. Randy Johnson wrote: Here is what i need to do. I have a form where a user will submit, email address, email text and a time like 11:15pm and at 11:15pm the email is supposed to be sent out. any ideas on how i can

Re: [PHP] Javascript broken!

2003-01-03 Thread John Nichel
You may want to try a JavaScript mailing list. Adam Wilson wrote: I am beginning a tidy-up of a very messy site i am now managing. I have started splitting repeated sections into single header and footer files, for inclusion via php. Unfortunately the javascript no longer works, i.e. rollovers et

[PHP] array help please

2003-01-05 Thread John Fishworld
can someone give me a bit of help / walthrough the following for me ! this first bits is okay $mysql query1 result array[cityid][cityname] mysql query2 result array[cityid][cityname] now what i want to do is kick out any doubles in my array and resort them alphebetically by cityname ?! help !

[PHP] Zend IDE vs. PhpEd

2003-01-05 Thread John Wells
's anything you know that could make my decision easier, please forward it on. They seem pretty comparable, with the exception of PhpEd's db browser. Thanks! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend IDE vs. PhpEd

2003-01-05 Thread John Wells
both editors is the inability to autocomplete on arrays of object references...but I suppose that's a little difficult with a dynamically typed language. Thanks! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend IDE vs. PhpEd

2003-01-06 Thread John Wells
I've tried phpEdit, but unfortunately it's a Windows-only IDE and has quite a few reproduceable bugs (I get an access violation almost everytime I use the latest version. I do all my development in Linux, so it won't cut it. Thanks! John -- PHP General Mailing List (htt

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread John Wells
transactions, look at the InnoDB table type, which is fully ACID compliant. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Designing in PHP4 with PHP5 in mind...

2003-01-06 Thread John Wells
P5's new object handling efficiencies. I've read varying reports of whether syntax will be different. Is there anything I should watch for, add, or specifically avoid while coding this application to make the transition as easy as possible? Thanks! John -- PHP General Mailing List

Re: [PHP] Suggestions on FAQ application?

2003-01-11 Thread John Nichel
Maybe y'all should take your flame war off list? Just a friendly little suggestion. Jeffrey B. Ferland wrote: Why re-invent what is already written? I'm well aware that it's easy to write but there may be something out there already that suits my needs and has some features that I hadn't thought

Re: [PHP] Windows - PHP.INI

2003-01-13 Thread John Nichel
.htaccess isn't a Linux only thing...it's an Apache thing. Just put a file named .htaccess in the document root of the site you want to prepend the file too. Inside the file, put this php_value auto_prepend_file "/path/to/included/file.php" Naqashzade, Sadeq wrote: Hi, I'm using Win2K Pro

[PHP] Gotchas with Php and Postgresql?

2003-01-14 Thread John Wells
t it's just as easy to work with via PHP as is MySql, I'm looking for any hardened, trenches-earned wisdom anyone would like to bestow. Thanks very much. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Speed concerns with OOP and PHP4

2003-01-16 Thread John Wells
p *that* much, or consume memory like a pack of hungry piranhas? Thanks for the input, guys. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini: how to load different ini file depending on host?

2003-01-19 Thread John Nichel
I don't think you can load a different ini based on virtual host. However, you can override most php.ini values in either the httpd.conf or in a .htaccess file. I'm running about 10 vhosts on one box, all with the same IP, and I just use .htaccess, ie... php_value include_path ".:/webserver/vh

Re: [PHP] PHP and Sessions?

2003-01-20 Thread John Nichel
But he said that it's working in 4.2.2 (default off), but not working in 4.1.2 (default on). If I remember correctly, $HTTP_POST_VARS['whatever'] worked before 4.2.x, right? What about things like $_POST $_SERVER, etc. did those work prior to 4.2.0? Sean Burlington wrote: Tim Thorburn wrote:

Re: [PHP] pop-up problem

2003-01-20 Thread John Nichel
Right, Mozilla set it up to block pop-ups that were not requested by the end user. I don't know why Netscape 7 didn't include this with their build. Chris Shiflett wrote: --- Mark McCulligh <[EMAIL PROTECTED]> wrote: I wish people won't miss use features for people start blocking them. I am u

[PHP] File upload problem

2003-01-21 Thread John M
Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an echo which can I read. But after choosing a file and press a submit nothing happens. Why is if(isset( $Submit )) always false? Maybe my apache or php config is wrong? I use Win

[PHP] PHP App Frameworks

2003-01-22 Thread John Wells
Ramping up on a large project and was wondering if there are any freely (as in speech) available app frameworks or toolkits for PHP that would save me from recreating the wheel. I'd prefer something relatively mature and well documented. Thanks for any input! John -- PHP General Ma

[PHP] A Licensing Question

2003-01-22 Thread John Wells
ing up? Thanks guys! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
ass in my own scripts, does that make my code in violation of the GPL? Damn, I need a law degree ;-). John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
licensed under licenses like the LGPL or PHP would make it safe for me to redistribute with my proprietary app? 4. How do the above change if/when I decide to encode my self-written files with Zend Encoder? Thanks very much for all your input. Very helpful. I really appreciate it. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
your program, you must release the program in a GPL-compatible way, regardless of the license used in the Perl or Java interpreter that the combined Perl or Java program will run on. " That answers my question. If following the scenario I described previously, my code would have to be GPL&#x

[PHP] Browser language problem

2003-01-22 Thread John M
Hello, I have the code below, but it doesn't work. I see the message "It is an array" but nothing else. What can be the problem? How can I get the actual browser language? I use WinXp Prof, Apache 2.0.43, PHP 4.2.3, safe_mode is on. Thanks! -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] NEED HELP URGENTLY

2003-01-22 Thread John Wells
AND PLEASE STOP YELLING HiTCHO said: > Global Variables are turned off!!! check php.ini!! > > > > Timothy Hitchens (HiTCHO) > Open Source Consulting > e-mail: [EMAIL PROTECTED] > >> -Original Message- >> From: Dale [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, 23 January 2003 10:02

[PHP] Jasper Reports and PHP

2003-01-22 Thread John Wells
nyone else with experience in this area. Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ? in URLS.

2003-01-22 Thread John Nichel
Everything after the question mark is a query string. Say you have this... http://www.mydomain.com/index.php?var1=value1&var2=value2&var3=something-else to access these values in your script... $_GET['var1'] $_GET['var2'] $_GET['var3'] In other words, if I want to print out the value of var2 o

Re: [PHP] php performance

2003-01-23 Thread John Wells
Chris, Can we see your test code? John arch said: > Nope. It's tested with a typical client/server setup, as in a real use > case. > > > "Chris McCluskey" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED].. > . &

Re: [PHP] Who is foo & what is bar?

2003-01-23 Thread John Wells
Ummm...and this has what to do with PHP? http://www.catb.org/~esr/jargon/html/entry/foobar.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php support for Java

2003-01-24 Thread John Wells
ted to hear "lessons learned" from others on the list. Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Java problem...need advice.

2003-01-25 Thread John Wells
Trying to get java working so I can make native calls. I've got php.ini setup and it seems to work (i.e., I can use the online (php.net) example and create a java.lang.System object, and access properties from it). However, created my own class in a directory I specified in my java.class.path dir

[PHP] A Date and Time Library for all seasons

2003-01-25 Thread John Lim
Download: http://php.weblogs.com/adodb_date_time_library PHP native date functions use integer timestamps for computations. Because of this, dates are restricted to the years 1901-2038 on Unix and 1970-2038 on Windows due to integer overflow for dates beyond those years. This has been frustrating

[PHP] Java call on object causes segfault.

2003-01-26 Thread John Wells
Working on getting Java integration going. I was able to get it to work with the online example and can create an object of java.lang.System and print various properties returned from there. However, if I create my own class, I can instantiate it, but if I call a method on that class it causes a

Re: [PHP] Java call on object causes segfault.

2003-01-26 Thread John Wells
back because I use the Zend Debug Server, and it doesn't support 4.3.0 just yet. But, it will soo, so might as well. Thanks! John Philip Olson said: > > Whenever you get a segfault, try the latest > stable release and during compile be sure to > use --enable-debug > : &

[PHP] PHP Crashing on iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0

2003-01-29 Thread Dilts, John
>\n"; $headers .= "Content-Type: text/html"; // Display Header Content $Message ="\n"; $Message .="\n"; ...Other $Message Code Ommitted to save space //Mail function (variables are passed from the from on the previous page) Globals are set to on mail($TEML, $

[PHP] Best PHP db wrapper?

2003-01-29 Thread John Wells
. All input is *greatly* appreciated. Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reporting tools for PHP?

2003-01-30 Thread John Wells
available. HTH, John Denis L. Menezes said: > hello Friends? > > Is there any reporting toold for PNH/MySQL like there is Crystal Reports > etc? > > Thanks > denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reporting tools for PHP?

2003-01-30 Thread John Wells
Makes no sense. Just support the OS projects...make a donation. John Tyler Lane said: > On Thu, 2003-01-30 at 08:57, Denis L. Menezes wrote: >> hello Friends? >> >> Is there any reporting toold for PNH/MySQL like there is Crystal >> Reports etc? > Do you mean PHP/MySQ

Re: [PHP] Introduction

2003-01-31 Thread John Nichel
Julie, What version of PHP? Where is $custemail coming from, form on another page/same page, database? Global variables on or off in your php.ini? Julie Williams wrote: Hi Jason, Sorry, I'm very new to this. Since my code is not huge, I have included it below. I removed some of the text so

Re: [PHP] Introduction

2003-01-31 Thread John Nichel
get all types passed to the page, ie. $_REQUEST['some_variable'] You may want to take a look here for a better explanation of variables and scope... http://www.php.net/manual/en/language.variables.scope.php http://www.php.net/manual/en/language.variables.external.php Julie Williams wrote

Re: [PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread John Nichel
Put empty square brackets (NAME='in_task_descr[]') after the name of your select element. Then all the slections will be in an array called... $_POST['in_task_descr'] or $_GET['in_task_descr'] Depending on your form method. James Kaufman wrote: I am displaying a form using values obtained from

[PHP] Ringtones and php

2003-02-02 Thread John Nichel
Has anyone used php to send ringtones to cell phones? I've been to sites that are doing this in ASP, so I'm pretty sure it can be done in php. I've tried just sending headers like this... header ( "Content-Type: audio/midi" ); header ( "Content-Name: By-Tor's Song" ); header ( "Content-Version

Re: [PHP] index.php

2003-02-02 Thread John Nichel
Can you hit it by typing the actual filename? http://www.mydomain.com/index.php If yes, check you httpd.conf file, and make sure that you have added "index.php" as a valid index file. Justin French wrote: Strange -- can u change it to foo.php and execute it, or do you get a 404 error (not found

Re: [PHP] Help with include path

2003-02-02 Thread John Nichel
Make a php file with nothing but this in it phpinfo(); ?> ...and hit that in your browser. It will tell you the location of the ini that it is using. César Aracena wrote: Hi all, I'm sorry for this re-post, but I do need help with this URGENT... I just finished loading the OS to my PC

Re: [PHP] PHP Framework

2003-02-03 Thread John Wards
phorum.org, yes its a message board. But phorum 5 which is not pre alpha yet has its own built in templating system which I thnk with a bit of tweaking could be used as a full blown templating system. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML if no PHP

2003-02-04 Thread John Nichel
if ( !@include ( "myfile.php" ) ) { // do this if file cannot be included ...code... ...code... } Bob Lockie wrote: I want to display an HTML page if PHP can't load an include file or otherwise has an error or just doesn't work. How do I do this? -- PHP General Mailing List (h

Re: [PHP] How to remove the html Tags?

2003-02-04 Thread John Nichel
SearchGooglethe PHP manual http://www.php.net/manual/en/function.strip-tags.php The New Source wrote: Hi guys, is there a function that will remove all the Html tags from a file? How should I do it? Thanks for any clues, Rodrigo -- PHP General Mailing List (http://www.php.net

Re: [PHP] Redirecting to PHP

2003-02-05 Thread John Nichel
You can do it with JavaScript or a Meta refresh, but why? If both the pages are the same, why even use the HTML one? Alberto Brea wrote: Dear list, My home page is index.html, that doesn't run PHP. I also have index.php which shows the same content with PHP. Can I do to automatically redirect a

Re: [PHP] Redirecting to PHP

2003-02-05 Thread John Nichel
Put a .htaccess file in your document root for your website with this line DirectoryIndex index.php Alberto Brea wrote: My ISP tells me that the home page must be index.html. However, I cannot make PHP scripts run on this page, so I made an index.php page with the same content, and thought

Re: [PHP] reading CD information

2003-02-05 Thread John Nichel
Guess it's not on Linux, eh? :) Adam Williams wrote: Thanks Tom, that works perfect! Adam On Thu, 6 Feb 2003, Tom Rogers wrote: Hi, Adam TR> You could try the vol command using exec{} and parse out the volume name TR> -- TR> regards, TR> Tom This should do it: '

Re: [PHP] PHP or MySQL problem?

2003-02-05 Thread John Nichel
Your answer is in the error message. You have been denied access to the database. Are you connecting to the db before you run your query? If not, php is going to try to connect with the default user/password. César Aracena wrote: Hi all, I'm uploading a new web site and when doing some testi

Re: [PHP] empty and isset

2003-02-06 Thread John Nichel
It's fairly easy. isset returns true if the VARIABLE itself exists, like if it's been declared, or set by a form. isset isn't checking the VALUE of the VARIABLE, just if it exists. In Jason's example below, isset returns false because the VARIABLE was never declared in some way, shape or for

Re: [PHP] 3 tier web development

2003-02-07 Thread John Wells
Hardik Doshi said: > 1. How one can seperate HTML and PHP (or any other > programming code). Is there anything in PHP so i can > seperate Interface layer and programming logic layer? http://smarty.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] ImageJPEG?

2003-02-07 Thread John Wards
e begining. I tried this: $uploadpath = "/images/1000/"; $temp = "t_".$imagefilename; $imagefilename = $temp; $dest = $uploadpath.$imagefilename; ImageJPEG($image_thum,$dest); but that did nothing. What am I doing wrong? Cheers John Wards -- PHP General Mailing List (http:

[PHP] Problems with sessions

2003-02-07 Thread John Almberg
nset) at random times. I've tried to see some pattern, but there doesn't seem to be one. It can happen on any page at any time. It doesn't seem to correlate to times of heavy usage, either. I'm really at a loss for this. Any ideas would be mucho appreciated! -- John

Re: [PHP] ImageJPEG?

2003-02-07 Thread John Wards
On Friday 07 Feb 2003 9:26 pm, you wrote: > Other than that you're > code looks good to me. Arrrgh! Bl*0dy cacheing in my ftp programgr Cheers for looking though! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test

2003-02-08 Thread John Nichel
Just checking to see if there's a problem with the list, or my STMP server. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Username and Passwords

2003-02-09 Thread John Nichel
Did you reload MySQL after you added the new user? Stephen Craton wrote: It's me again, trying to get some more help. My boss is hosting sites now for games and I need some help with setting up phpMyAdmin privelages for certain MySQL users and such. Right now, my problem is setting up a new MySQ

Re: [PHP] Object In a class

2003-02-09 Thread John Wells
Justin Mazzi said: > Can anyone tell me how to use an object within an object. Example > > > class blah { > var $test; > var $test2; > > function test() { > $this->do(); > } > > } > > > then you want to use that class in a new one. > > > class blah2 { > v

Re: [PHP] passing a query string to a popup window problems

2003-02-11 Thread John Nichel
What's the value of $_GET['formuser'] and $_GET['formpassword'] in your pop up window? Brad Esclavon wrote: I am trying to pass 2 variable values(username and userpassword) to a popup window to display those values when a button is clicked. When the window pops up, the variable names aren't displ

[PHP] Classes, global objects, and pointers

2003-02-11 Thread John Hughes
script should, by my understanding work, only it craps out in test2's constructor: "$o = &$tester;". Any help would be greatly appreciated. (Please cc me on your replies) John Hughes a = 10; } function doit() { $this->a = 20; } } global $tester; $tester = ne

Re: [PHP] PHP & JavaScript

2003-02-12 Thread John Nichel
document.forms[0].elements['select1[]'] Assuming the form is your first form on the page, reference the element in JavaScript as above. Greg wrote: I have a problem with 2 select multiple boxes in my PHP pages. In order for PHP to pass multiple values to a page that it is posted to, the name o

[PHP] Pspell

2003-02-12 Thread John Nichel
Hi guys, Having a problem here getting php4.3 to compile with pspell. I have the new aspell (aspell-0.50.2) installed, and according to the aspell site, aspell and pspell are now one. Php configures fine, but durning make, I get these errors -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o

Re: [PHP] Simple PHP script

2003-02-13 Thread John Nichel
Sigh if ( $_POST['submit1'] ) { echo ( "Hello $_POST['vname']" ); } http://www.php.net/manual/en/language.variables.scope.php http://www.php.net/manual/en/language.variables.external.php Poon, Kelvin (Infomart) wrote: Hi, I am new to PHP and had just written a simple php script to get thi

[PHP] [Fwd: Delivery Status Notification (Failure)]

2003-02-14 Thread John Nichel
Could one of the admins of this list take this email address off? Everytime I send an email to the list, I get one of these. Thanks. Original Message Subject: Delivery Status Notification (Failure) Date: Fri, 14 Feb 2003 08:01:31 +ACs-0100 From: postmaster+AEA-belair.nl To: jnic

Re: [PHP] geek fishing stuff

2003-02-14 Thread John Nichel
Don't know if they have one, but you could try http://www.thinkgeek.com/ Anthony Ritter wrote: Jason Wong wrote in message: Try the mysql website or the mysql list? . Yep. I went to the mysql site and they didn't have any promo material like t-shirts, visors

[PHP] PHP Style Conventions

2003-02-15 Thread John Wells
ed dir structure for large projects (i.e., does efficiency decrease with greater numbers of include directories)? Is there anything out there that will answer my questions? Anything driven by php.net? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >