RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Jay Blanchard
[snip] In my case, I've created a function called mkdirs that recursively checks and does a mkdir on a given path. So, if any of the folders in a given path don't exist, then they will get created. I include this at the top via "include('func/mkdirs.php');". I've used this mkdirs function in oth

RE: [PHP] how to trap eval error?

2003-11-18 Thread Jay Blanchard
[snip] eval('$return = $function($input);'); [/snip] The problem is the quotes...the string is not truly being eval'd. Change to double quotes eval("$return = $function($input);"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] I have installed linux/apache/php (again) recently on my machine. When I run an application off my server, fill out a form, submit it and then click back to edit some entries, the form comes up blank. This happen for apps running off my server only. Is it something with my php.ini, or is it

RE: [PHP] Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] I don't think you understood my question. Off course you have to store data in a database or a session var if you want to retrieve them later on. My problem is not there. I hava a form, I click submit and right after that I hit back. Usually in most cases the form will be prefilled with

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Jay Blanchard
[snip] I don't want to debate this topic though... There's always going to be those who'd rather write PHP code, and those who want to use pre-made systems. [/snip] +1 It's a matter of choice, and even those that use templating systems do not use them 100% of the time. -- PHP General Mailing Lis

RE: [PHP] Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] I am suspecting a php.ini setting that I have set or set off or an apache conf detail that is causing this. Bowser setting is a possibility but why then is it not behaving this way with other sites? [/snip] PHP, being a server side language, probably has nothing to do with this. Have you c

RE: [PHP]{OT} Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] > Have you consulted an Apache list? Googled for > answers? Anything like > that? No, this sounded like a basic thing. I can't believe I having to deal with it. See even if I submit this email and then click back I will see exactly what I typed. If that form was originating from my server

RE: [PHP] I cannot run a .php file on a IIS

2003-11-19 Thread Jay Blanchard
[snip] I was going to ask you how can I run a .php file using IIS. IIS and PHP, and a virtual directory are already installed. [/snip] I was going to give you an answer. Have you read and followed the directions here http://us2.php.net/windows ? -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Forms

2003-11-19 Thread Jay Blanchard
[snip] This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on the form tag to window

RE: [PHP] PHP Mail handler?

2003-11-19 Thread Jay Blanchard
[snip] Is there a mail function or object that I can use on my PHP sites that does the same as the CDONTS object in ASP? Where can I find some tutorials on this subject? [/snip] The manual works fine for most http://www.php.net/mail -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can be clicked on like below: A B C etc... [/snip] Create an alphabet array and loop through it ... $arrayAlphabet = ('A', 'B', 'C', , 'Z'); for(

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] for ($letter = 'A'; $letter++; $letter <= 'Z') echo "$letter\n"; [/snip] I tested this and found two small problems. The code works if you do this (I was myself amazed that letters would increment) for($letter = 'A'; $letter < 'Z'; $letter++){ echo $letter . "\n"; } The problem s

RE: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Jay Blanchard
[snip] I think I can remember semi-colon is not allowed in apache logins or passwords... >But the above is not working when the $username contains a trailing >semicolon >or when the $password is starting with a semicolon, >Ex: what if the $username ="chandu:" [/snip] Or colons. It is a Bad Pract

RE: [PHP] Counting elements in an array

2003-11-19 Thread Jay Blanchard
[snip] How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value is "orange"? [/snip] http://www.php.net/array_keys -

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] 'Z'+1 is defined to be 'AA' (it says that in the manual, too!), so your loop has to be: for($letter = 'A'; $letter <= 'AA'; $letter++){ echo $letter . "\n"; } [/snip] Run this, you'll be surprised at what you get. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] OK, my bad -- I let my fingers do the talking without proper monitoring from my brain. This is what I actually use in more than a few scripts: for ($c='A'; $c!='AA'; $c++): echo $c; endfor; I just forgot to change the comparison from <= to != I guess this

RE: [PHP] mailing multilple addresses...?

2003-11-19 Thread Jay Blanchard
[snip] if ($action == 'send') { $fimail[] = explode(",", $list); $count = count($fimail[]); $show = "Users that have been mailed:"; $i = 1; while ($count > $i) { mail($fimail[], "Subject", $message, $headers); $show .= "$fimail"; $i++; } }

RE: [PHP] Counting elements in an array

2003-11-19 Thread Jay Blanchard
[snip] >> $fruit = array(orange,orange,apple,bananna,orange,apple,pear); >> >> How could I get the number of elements from $fruit where the value is >> "orange"? [/snip] >From http://www.php.net/array_keys with additions; $array = array("blue", "red", "green", "blue", "blue"); $countArray = coun

RE: [PHP] Memory Size Help Please

2003-11-19 Thread Jay Blanchard
[snip] Can anyone spot the problem here and point me in the right direction? [/snip] Nope, not enough info to spot the problem. I could point you in a direction, but that wouldn't help I am afraid. Wait, hold that thought, I have a direction to point you in. Please provide us with relevant detail,

RE: [PHP] PHP-Only Polling Script?

2003-11-20 Thread Jay Blanchard
[snip] Can anyone recommend a good, simple PHP-only polling script? [/snip] I found this by using Google http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=267&lngWId=8 http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=PHP+voting+script -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Javascript question

2003-11-20 Thread Jay Blanchard
[snip] Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? [/snip] I found Jason's reply to be humorous! You yourselef said that your request was off topic. What did you expect? Here is somet

RE: [PHP] Javascript question

2003-11-20 Thread Jay Blanchard
[snip] My kitchen sink always gets clogged when we clean out the fridge. Does anyone know of a way I can fix that? ;) [/snip] $strSinkTrap = fopen("/under/the/cabinet/", "w+"); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed == TRUE){

RE: [PHP] array_search

2003-11-20 Thread Jay Blanchard
[snip] I've been using array_search in my scripts for a while now, but have come across a problem. My new page has a textarea field. If I enter any new lines in the textarea, array_search returns false. I have tried using html_encode, addslashes, serialize and nothing yet has worked. My only other

RE: [PHP] PHP to create Printable format

2003-11-21 Thread Jay Blanchard
[snip] > Right now, I am trying to do generation of report using PHP in which the > report should be in a printable format later on. How do you define a "printable format"? Ideally, you want to do this in CSS. The "print version" would just load a differnet style sheet than the main format. Yo

RE: [PHP] Search File

2003-11-21 Thread Jay Blanchard
[snip] I'm trying to find a way to search text files in a directory using php. I've done some researching under the filesystem section on php.net but seem to have come up empty handed. Is there a way to do keyword searches on a txt file in a directory hopefully with some type of relevance ranking?

RE: [PHP] system("traceroute host"); not working with new apache upgrade

2003-11-21 Thread Jay Blanchard
[snip] I'm sorry if this is the wrong place to ask this question but I am new to these newsgroups. We have found that servers using php 4.3.3 that were happily running this command: system("traceroute "); have now ceased to work since the last apache upgrade. Ping still works fine. Does anyone have

RE: [PHP] strpos() act funny when searching for "]]>"....

2003-11-21 Thread Jay Blanchard
[snip] strpos() is acting a little bit funny. When I do this... --snip-- $a = strpos($data,"]]>"); --snip-- Problem is there are "]]>" characters in the $data string and it just doesn't see it. Anyone know why and what is the workaround to it? [/snip] Does it need to be escaped? *shootin' from

RE: [PHP] strpos() act funny when searching for "]]>"....

2003-11-21 Thread Jay Blanchard
[snip] I thought about that also, so I took your suggestion and tried it. Still doens't work... I tried those... "\]]>"; "\]\]>"; [/snip] I tried Curt's solution...no problem. What are you expecting from strpos()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] Adding X days to a time string...

2003-11-21 Thread Jay Blanchard
[snip] Storing a date in seconds (Unix timestamp) in a database and want to add X number of days to this. So I want to extend a time by say 5 days, what is the best method to handle this? It's always stored as a timestamp for a day not an exact time. So dates are stored as day (March 5th, 2003).

RE: [PHP] basic auth question

2003-11-24 Thread Jay Blanchard
[snip] Please CC me, I am on digest -- If I have a directory like: $HOME/www/ (document root) It has a auth section in the .htaccess file $HOME/www/.htaccess another directory like: $HOME/www/want_to_be_public/ How can I defeat the auth section in the $

RE: [PHP] Securing PHP code..

2003-11-24 Thread Jay Blanchard
[snip] I'm pondering on a problem here. Being a C/C++, Java and Visual Basic developer, the aspect of reverse engineering code from (compiled) programs, hasn't occupied my mind that much. Now, developing PHP scripts on large scale I have started to think otherwise. How do you all secure your code?

RE: [PHP] file delimited

2003-11-24 Thread Jay Blanchard
[snip] i want the vertical bar '|'. [/snip] http://www.php.net/explode $theLine = fgets($theFile, 1024); $arrayLine = explode("|", $theLine); Now each item from the line is in $arrayLine[0] $arrayLine[n] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] Excel Table & download it

2003-11-24 Thread Jay Blanchard
[snip] I want generate an excel table & download it as a file (not view in IE), what HTML mimetype should i use? [/snip] header("Content-Type: application/vnd.ms-excel"); header("Content-Disposition: inline; filename=\"excel.xls\""); header("Expires: 0"); header("Cache-Control: must-revalidate, p

RE: [PHP] String display issue

2003-11-24 Thread Jay Blanchard
[snip] I am writing an application where users will input information such as 6' section of 3/4" pipe How can I get the whole line to show up on the screen when both single and double quotes are contained in the text string. [/snip] addslashes going in stripslashes coming out http://www.php.net

RE: [PHP] Apache 2.*

2003-11-24 Thread Jay Blanchard
[snip] Forgive me if you've already addressed this, I'm trying to post some variable to a php sript and they just arn't registering if i use the code below it get's the variable and it's contents "; reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { echo "$key =>

RE: [PHP] Technical Architecture Diagram

2003-11-24 Thread Jay Blanchard
[snip] I would be very grateful if someone could point to some resources on designing a technical architecture diagram for a PHP - MySQL web application. [/snip] Google for UML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] First Day of Week

2003-11-24 Thread Jay Blanchard
[snip] Given any particular date, how can I find out what the first date of that week is i.e. the Monday of that week? [/snip] http://www.php.net/date Also, this has been explored in the archives on numerous occasions. The archives are located [FROM THE NEWBIE GUIDE] 3. Glancing through the list

RE: [PHP] Locking mysql tables with PHP

2003-11-25 Thread Jay Blanchard
[snip] is there a way I can get a number and increment it all in one query then? [/snip] UPDATE tblFoo SET value = (value+1) WHERE conditions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Locking mysql tables with PHP

2003-11-25 Thread Jay Blanchard
[snip] is there a way I can get a number and increment it all in one query then? UPDATE tblFoo SET value = (value+1) WHERE conditions [/snip] OR (forgot the PHP part) $sqlUpdate = "UPDATE tblFoo SET value = (value + $variable) WHERE conditions "; if(!($dbUpdate = mysql_query($sqlUpdate, $connect

RE: [PHP] Locking mysql tables with PHP

2003-11-25 Thread Jay Blanchard
[snip] > [snip] > is there a way I can get a number and increment it all in one query > then? > [/snip] > > UPDATE tblFoo SET value = (value+1) WHERE conditions > Hmm.. my bad - I get that bit, but can I do: SELECT value WHERE conditions UPDATE tblfoo SET value= (value+1) [/snip] Essentially tha

RE: [PHP] Problems with a simple page

2003-11-25 Thread Jay Blanchard
[snip] Hi php-fans... here's a simple question for you I have this HTML page in WIN (Busqueda.htm) the page contains a textfield (textfield3) and a button (submit1) which calls a php file Buscador.php in a Linux server (RED HAT 8) well, my php file which doesn't read anything when I write this

RE: [PHP] Locking mysql tables with PHP

2003-11-25 Thread Jay Blanchard
[snip] > is there a way I can get a number and increment it all in one query > then? > > UPDATE tblFoo SET value = (value+1) WHERE conditions > Hmm.. my bad - I get that bit, but can I do: SELECT value WHERE conditions UPDATE tblfoo SET value= (value+1) [/snip] I see where the confusion may be

RE: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Jay Blanchard
[snip] If you would stop using M$ Outlook and switch to a better mail client that supports mailing lists, your problem would be solved. [/snip] As has been said several times, not all can do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Jay Blanchard
[snip] > If you would stop using M$ Outlook and switch to a better > mail client that supports mailing lists, your problem would > be solved.[/snip] > > As has been said several times, not all can do this. True. But maybe instead of *switching* they can just use *another* mail client for mailing

RE: [PHP] FLAG

2003-11-26 Thread Jay Blanchard
[snip] Well, so is there any online resource whereby I can read up on "FLAG" ???Or any idea how should I go about creating the memory location to store the binary-ish information (e.g. true/false, yes/no, 1/0)? Hope to get some help soon...thnx. [/snip] You're not likely to find something specif

RE: [PHP] PHP script that fills forms ?

2003-11-26 Thread Jay Blanchard
[snip] I was just wondering if it's possible to get a PHP script to fill a form for you? You see, I'm trying to make PHP fetch a password protected website for me and there's a form with username and password that protects it. Can anyone help me? Perhaps give me another sollution? [/snip] Use cUR

RE: [PHP] FLAG

2003-11-26 Thread Jay Blanchard
[snip] You're not likely to find something specific on FLAG, but maybe the following demonstration can help $niceWeatherFLAG is that 'memory location' (variable) where the FLAG information is stored. Now, what is the precise nature of your problem? List citizens would certainly be glad to h

RE: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread Jay Blanchard
[snip] (ii) All PHP arrays are 1-dimensional. Some elements of an array may themselves contain arrays, but that only makes them nested arrays, not multi-dimensional. If what you want to know is the deepest level of nesting, then, no, I don't believe there's a built-in function for this. [/snip]

RE: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread Jay Blanchard
[snip] Just because they *call* them multi-dimensional doesn't *make* them true multi-dimensional arrays -- they're still *nested* 1-dimensional arrays. Both types have advantages and disadvantages, but they are not the same thing. [/snip] Curious, how is it that you define multi-dimensional? --

RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip] Fatal error: Call to undefined function: mysql_connect() in /home/abcde/dfdfdfd/incfiles/db.inc on line 24 [/snip] Strange indeed. Can you show the code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip] I just upload a simple file containing ... mysql_connect("localhost","username","password") thtst it ... [/snip] Try mysql_pconnect("localhost","username","password"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip] i tried mysql_pconnect() also ... but same problem.. [/snip] As the others have suggested, what does it say when you run phpinfo() ? Is this server under your control? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip] it says --without-mysql -- i don know .. how suddenly this can happen [/snip] Do you own the server or control it? If not, someone else has recompiled PHP without MySQL support and it needs to be re-compiled. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Jay Blanchard
[snip] Sorry for the reply to the reply, but OExpress won't let me reply to newsgroup posts... [/snip] Had to laugh... :) AND BTW Happy Thanksgiving to all of our folks who celebrate that holiday! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] Two Actions in a Form?

2003-11-26 Thread Jay Blanchard
[snip] have the PHP script that receives the post to distinguish between which button the user clicked. Name your submit button different names, then use print_r($_POST) or print_r($_GET) - depending on whether you use POST or GET, and I thinkyou'll see what you need to be checking. [/snip] Anot

RE: [PHP] site down have question

2003-11-26 Thread Jay Blanchard
[snip] what is the function that takes Dan McCullough and makes it McCullough, Dan? Anyone, cant seem to get php.net to load [/snip] Try http://us2.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Jay Blanchard
[snip] If you use the date function in PhP you can get the date and it will not change in the cache since the actual code is not on the page that generated it. My question is how do I get the answer that I have in a PHP variable back to an HTML page and give it lets say to JavaScript to display. [

RE: [PHP] Export data

2003-12-01 Thread Jay Blanchard
[snip] Is it possible to export some data to MSOffice format ( .doc and .xls ) , OOffice ( .sxw and sxc ) or .rtf format with PHP [/snip] Yes, it is. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n o-answers.html -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] String construction help required please

2003-12-01 Thread Jay Blanchard
[snip] > I need to display : "$_POST[$var]," > > Including the "" and the , . > > I have tried : \"\"$_POST[\".$var.\"]," but that is very wrong. > > Could one of you kind list members show me what it should be please ? You have a couple of options... just pick the one that suits you... [/snip]

RE: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Jay Blanchard
[snip] When I do this script, I didn't get a ":" and numbers in second. --snip-- date("Y-m-d H:i:s"); --snip-- [/snip] When I cut and paste your code (PHP v 4.3.n) it works OK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Jay Blanchard
[snip] Well, "SELECT email FROM table WHERE id = " . $array . ")"; [/snip] $arrayUser[1] = 'bob'; $arrayUser[2] = 'cindy'; $arrayUser[1] = 'mark'; $countUser = count($arrayUser); for($i = 0; $i < $countUser; $i++){ $sql = "SELECT email FROM table WHERE id = '" . $arrayUser[$i] . "

RE: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Jay Blanchard
[snip] > $arrayUser[1] = 'bob'; > $arrayUser[2] = 'cindy'; > $arrayUser[1] = 'mark'; > $countUser = count($arrayUser); > for($i = 0; $i < $countUser; $i++){ > $sql = "SELECT email FROM table WHERE id = '" . $arrayUser[$i] ."' "; > } Is this method faster than just using IN and implode()? ie, "WHER

RE: [PHP] Doubts With Select Queries

2003-12-03 Thread Jay Blanchard
[snip] What if within these 30 days, student John actually decided not to withdraw anymore and to continue to study in the school? Is there any way whereby I can set the status to "0" again n then John will not be deleted from the DB?? Wonder if this would be possible??>? [/snip] Yes, it is poss

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] I have a webpage that needs to use some specific php.ini settings different from other php applications on my web server. I have created a .htaccess file with the following content: php_flag register_globals 1 php_flag error_reporting "E_ALL & ~E_NOTICE" It works fine, but only on Mozil

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] >Put a page in that directory called test.php with only > > >phpinfo(); > >?> It doesn't work at all if I put AddType application/x-httpd-php .php [/snip] Did you try the test.php above? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] can mail() function send emails to any email account?

2003-12-03 Thread Jay Blanchard
[snip] Hello.. it's me again. Trying to use mail() function to send emails to hotmail accounts. It seems that it's not working. Tried the same function on my own email account, it worked. Tried on some other, it doesn't. What determines if the mail() function works? [/snip] Whether or not it i

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] > >Did you try the test.php above? > > > Yes, I have. Doesn't work. [/snip] Then your httpd.conf in not configured properly. It would appear to me that PHP is not working at all. I went to the URL inquestion and did not find this test page, so it will be hard for me to help you. Does PHP

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] It doesn't work. After all a script that contains only phpinfo() (e-technics.com/dorna/info.php) works OK, but the webpage, which is a PhpNuke doesn't work. [/snip] Actually info.php works in IE and reports register_global is ON locally (within that directory). Therefore, as I stated ear

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] If I create an PHP environment such that I don't need to override register_globals and error_reporting with a .htaccess file it works just fine, so I guess the problem is in the .htaccess file. I posted my httpd.conf file at http://e-technics.com/dorna/httpd.conf. If I comment the lines

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] > Actually, according to the info.php page for that directory > register_globals is ON as you desire...correct? Correct, the .htaccess file overides just fine register_globals and error_reporting but somehow Internet Explorer and Konqueror does not load the page. [/snip] But IE and Konqu

RE: [PHP] register_globals problem

2003-12-03 Thread Jay Blanchard
[snip] > But IE and Konqueror both load the info.php correctly from my end. It is > the index.php for Nukemods.com that gets hosed in those browsers. So you're saying that index.php is broken? Then why it gets loaded fine if I delete the .htaccess file? [/snip] That is exactly what I am saying.

RE: [PHP] copy_file() files

2003-12-03 Thread Jay Blanchard
[snip] I recently upgraded PHP and now have two sites that use copy_file() that no longer work. I have safe_mode=Off in my php.ini. Also, the files and directories Furthermore, the file and directories Im trying to copy files to are owned by user nobody and group nobody (My Apache server runs as us

RE: [PHP] copy_file() files

2003-12-04 Thread Jay Blanchard
[snip] > What is the chmod of those files/directories. [/snip] You had already stated the owner/group...I want to know what the read/write permissions are. For 'nobody' to be able to write to a directory that directory must be owned by 'nobody' drw--- (chmod 600) If the group is 'nobody' it

RE: [PHP] BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-04 Thread Jay Blanchard
[snip] 2) Is there any advice for or against storing images as blobs in a database? Or is it better to store them on the web server file system? [/snip] Never store images as blobs, never. The read/write operation to the database for these is expensive and unnecessary. Store a reference to the im

RE: [PHP] [OT MySQL] Syntax for selecting within a range of time from database

2003-12-04 Thread Jay Blanchard
[snip] SELECT date(?) FROM table WHERE DATE_ADD(now(?), INTERVAL 72 HOURS) [/snip] careful of keywords SELECT dateThing FROM table WHERE dateThing BETWEEN NOW() AND DATE_ADD(NOW(), INTERVAL 72 HOUR) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Jay Blanchard
[snip] I need to know how to run a php script without it popping open a browser window. $cmd = 'start http://www.somedomain.com/somedir/somefile.php &' exec( $cmd ); I have tried using exec & system with '&' at the end of the command but that does not seem to work. It always opens a browser window

RE: [PHP] CHMOD...

2003-12-04 Thread Jay Blanchard
[snip] > exec("chmod 0777 /directory/*"); > > You still cannot set all sub directory and files within those > permissions. Best to loop through and set each as needed, don't forget > to cahnge them back. > Yes, you can: exec("chmod -R 0777 /directory/*"); [snip] *slaps forehead* Duh me! Of cou

RE: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Jay Blanchard
[snip] >Even if php is an Apache module there still should be a path to the PHP >executable (type 'which php') and you will not need the http://foo Sorry but no : when php is an apache-module, there's no executable (only a .so library) [/snip] Depends on the installation and method of installati

RE: [PHP] How to display a "waiting page" while a CGI is running ?

2003-12-04 Thread Jay Blanchard
[snip] I need to have a "waiting page" displayed, with an animated GIF, while a CGI is running. As soon as the CGI has finished running, the waiting page should be replaced by a page displaying the results of the CGI. I had no problem to do this in Windows, but it is not working in Linux. Any idea

RE: [PHP] copy_file() files

2003-12-04 Thread Jay Blanchard
[snip] Of course, user nobody had read/write permission and the group too. As an administrator with 15 years experience of Unix, I think I understand this! ;-) [/snip] Glad you solved your problem. Sorry for making an assumption about your lack of knowledge or experience. -- PHP General Mailing

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] What do you say to someone who says: "PHP is just a kiddie language"? (Source: http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=19373) [/snip] Lack of knowledge begets statements like that. (On a DHTML board at that *snicker*) The only thing that you can say to them is this...when th

RE: [PHP] CHMOD...

2003-12-04 Thread Jay Blanchard
[snip] Is there anyway to use CHMOD: chmod ("/somedir/somefile", 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply? E.G. : chmod ("/so

RE: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Jay Blanchard
[snip] I am running php as an apache module, which is why I used 'START' in exec("START http://blablalga";. Not sure if this is the correct way of doing it but I cannot use -q with start. [/snip] What is it that you are trying to accomplish? Then perhaps I can better help. Even if php is an Apach

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] (It's foolish to get into blind religious wars over languages, so I won't take this any further, but it's also foolish to be wilfully ignorant of the strengths and weaknesses of the tools you use.) [/snip] ...or to make statements based on willfull ignornace of others tools. :) -- PHP Gene

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] > I'm byting my tongue off... I have to resist... I've signed a do not > tell anybody thingy... It is huge, as in database with a million > records, huge... But... ARGH! I understand. :( [/snip] We process millions of records each day for a billing system based on PHP and MySQL. Gives

RE: [PHP] hmm.. anyone else get a "friendly" message from Kenneth Uzzi?!

2003-12-04 Thread Jay Blanchard
[snip] Hmm.. I swear I get more spam and crap-mail thanks to posting to this list than from anywhere else! Did anyone else get a wonderfully abusive message from one bonehead "kenneth uzzi <[EMAIL PROTECTED]>"? as a result of posting here? [/snip] Nope, but I am getting some bounces from others -

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] There are several large complex projects using PHP as the language, jsut as there are several large projects out there using C++, JAVA, Fortran, Cobol etc.etc.etc. I'm cringeing! Did you just compare C++, Java, PHP, Fortran and ... COBOL? [/snip] Not so much comparison as is "lumping in

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Jay Blanchard
[snip] ...ton's o thoughts [/snip] I am making an assumption that you are using sessions for your shoppers. If this is the case then the cart would be abandoned if/when the session expires. If you are not using sessions then I think 24 hours would be on the longish side of acceptable. In another

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-05 Thread Jay Blanchard
[snip] > Of course, now you have to deal with putting inventory back on the > shelf when the session expiresand you have no way of knowing when > that would happen unless you're storing *something*. A good point, if that's the way he wants to do things... In which case, SC needs to be store

RE: [PHP] What do you say to someone who says...

2003-12-05 Thread Jay Blanchard
[snip] > > "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] com... > > There are several > large complex projects using PHP as the language, jsut as there are > several large projects out there using C++, JAVA, Fortran, Cobol

RE: [PHP] goto label

2003-12-08 Thread Jay Blanchard
[snip] I was wondering, if there's any way to achieve 'goto "label":' using PHP [/snip] Are you trying to go to a section of code to perform some operations on current variables? If so use functions http://us3.php.net/manual/en/ref.funchand.php . If you have some sort of decisive mechanism use swi

RE: [PHP] Re: post an array into another site

2003-12-09 Thread Jay Blanchard
[snip] ...wow... [/snip] All of this an no one mentioned cURL? ;) http://www.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] for statement weirdness, no echo

2003-12-09 Thread Jay Blanchard
for($i = 2; $i < 0144; $i++){ echo $i . "\n"; } does not echo anything. Even put the numbers in quotes (single and double). What has being brain-dead caused me to miss this morning? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] for statement weirdness, no echo SOLVED

2003-12-09 Thread Jay Blanchard
[snip] for($i = 2; $i < 0144; $i++){ echo $i . "\n"; } does not echo anything. Even put the numbers in quotes (single and double). What has being brain-dead caused me to miss this morning? [/snip] I found it...one too many zeros in initial $i (I wanted to say "one two many..")

RE: [PHP] Date Listing

2003-12-10 Thread Jay Blanchard
[snip] Let's see if you can help me with this odd function i want to do. Imagine i have to dates,for example: $date1="2002-10-01" $date2= "2003-12-10" I want a function to list all the dates that are between these two. "2002-10-01" "2002-10-02" "2002-10-03" . . "2003-12-09" "2003-1

RE: [PHP] Uploaded images

2003-12-11 Thread Jay Blanchard
[snip] I would like to know how to insert uploaded file(image) into database (mysql) into Blob column type. As I upload the file, convert it into string by using file_get_contents function, there are many aphostrophes in it and inserting is not possible. Is there some way to solve this problem? For

RE: [PHP] Comments and Form Variables

2003-12-12 Thread Jay Blanchard
[snip] Greetings! First time posting. Hope this is the right place. Feel free to email directly or CC. [/snip] Welcome! Always reply to all so that the list can see the answers unless you asked specifically to reply off-list. [snip] Some FYI Howard. Please do not post large chunks of code lik

RE: [PHP] not parsing php files, giving us a save dialog.....

2003-12-12 Thread Jay Blanchard
[snip] We were running php files prefectly well a little while back, then we restarted apache and now the php files are not executing, instead its giving us a save dialog box... What to do and what do you think is wrong. [/snip] Why did you restart Apache? Is your php.ini intact? -- PHP General

RE: [PHP] (0/T) executeing script below public

2003-12-12 Thread Jay Blanchard
[snip] #!/bin/sh start (or) stop [/snip] It is a shell script. They are usually placed in /usr/local/bin/ and chmod'd to execute. To run it you type this at the command line; scriptname start (or) scriptname stop This script accepts one argument, either 'stop' or 'start' -- PHP General Maili

RE: [PHP] The best way ...

2003-12-12 Thread Jay Blanchard
[snip] what is the best way to remove extra \'s from strings ... would be ? [/snip] http://www.php.net/stripslashes but depends on how many extras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    5   6   7   8   9   10   11   12   13   14   >