RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
uh, could it be... http://us3.php.net/manual/en/function.chmod.php -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] create a chmod'd file I have a script that creates a php file based on user input.

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
[snip] I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these permissions so that it can be changed later on. [/snip]

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
le? Does it have the proper permission and does it 'own' the file? Most web interfaces/scripts operate as 'nobody' and therefore do not have permission to set file permissions...if you'll permit me to say so. HTH! Jay -- PHP General Mailing List (http://www.php.ne

RE: [PHP] File lsiting exec(ls... using variables.

2003-06-13 Thread Jay Blanchard
[snip] I'm trying to add a variable to the end of a directory listing. This will give me the root directory and show me all the files exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/', $filelist); [/snip] Have you thought about using http://us4.php.net/manual/en/function.opend

RE: [PHP] mysql_errno codes

2003-06-16 Thread Jay Blanchard
f you want to do this via PHP there is a fine example at http://us3.php.net/manual/en/function.mysql-errno.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] cron job

2003-06-17 Thread Jay Blanchard
[snip] Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. [/snip] You could run a looping script with a sleep statement in it, not a good idea though. Jay -- PHP General Mailing List (http

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Jay Blanchard
[snip] If I use this on index.html, it does nothing. If I use it on index.php I get: Parse error: parse error, unexpected '=' in /path/to/file_named/main.php on line 3 What am I doing wrong On Tuesday 17 June 2003 02:11 pm, Ralph wrote: > > if(strstr = ($HTTP_USER_AGENT, "Mozilla/4")){ >

RE: [PHP] AOL and PHP

2003-06-18 Thread Jay Blanchard
. Anyone see this before? [/snip] Since PHP and MySQL are server-side technologies there should be no browser conflict. I would suggest looking closely at your HTML, CSS, JavaScript, and anything else that you may be using client-side for code. HTH! Jay -- PHP General Mailing List (http

RE: [PHP] Session filesize limit

2003-06-18 Thread Jay Blanchard
ssion information on the user's system the filesize limit is 4k...and it is called a cookie. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X Windows Machine

2003-06-18 Thread Jay Blanchard
Remove the '@' signs and you should go just fine if your user has permissions to create tables; HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine

2003-06-18 Thread Jay Blanchard
line to the top of the script.... error_reporting(E_ALL); Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine

2003-06-18 Thread Jay Blanchard
[snip] I have tried it on a different machine and it is working... so maybe its something to do with the setup of my computer? [/snip] Check your php.ini as Adam suggested...I strongly suspect that the ;extension=php_mssql.dll line is still commented out. Jay -- PHP General Mailing List

RE: [PHP] Connecting to MSSQL Using PHP on Apache2.X.XWindowsMachine

2003-06-18 Thread Jay Blanchard
[snip] It appears don't have a extension_path line in my ini file [/snip] it may say extension_dir Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] My Problem

2003-06-18 Thread Jay Blanchard
chine SOLVED and perhaps be somewhat verbose, stating the changes made to solve the problem? It helps others who might be looking in the archives for solutions. And remember..."It's hip to snip!" Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Random CGI Errors

2003-06-18 Thread Jay Blanchard
ns of PHP would be my first thing to try but that is not currently an option. [/snip] JTMS...you are running PHP in the CGI mode? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Why Fatal Error ?

2003-06-19 Thread Jay Blanchard
Unknown on line 0 In PHP.INI memory_limit id 60M. [/snip] Because there is not enough memory to allocate to? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Call Servlet Java from PHP

2003-06-20 Thread Jay Blanchard
[snip] I'm trying to call a Servlet Java from PHP and it doesn't works.. I tried CURL, but no works, I tried put code Java inside PHP, but no works too. Does Somebody can give a light? [/snip] Can you show us the code? Jay -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] Standalone PHP Client?

2003-06-20 Thread Jay Blanchard
[snip] Is there any kind of standalone PHP/MySQL engine that could be reasonably installed from a CD and run on most Windows machines? [/snip] Check out the PHP-GTK http://gtk.php.net/ . I am not sure if there is a 'portable' data source to go with it, but it sounds like what you&#

[PHP] Seating chart registration system?

2003-06-20 Thread Jay Fitzgerald
seat will be available. I would like to have as much control as possible and I do know a minor bit of php and mysql. Any help or guidance is appreciated. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing Variables

2003-06-21 Thread Jay Fitzgerald
I have been searching for an answer to this for a couple of hours now and cant find anything. I believe that there is a secure way of doing this but I think my brain is having a momentary lapse... I have these variables: $eventid = "1"; $age = "15"; Is there a way to pass these variables to the

RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jay Fitzgerald
ssword for each user. I have played with sessions but I don't know if I am doing them correctly or how to do sessions without authentication. Jay At 03:14 PM 6/21/2003 +0100, George Pitcher wrote: Nabil, That is one way but it means that Jay would have to use a form and not a link. You cou

[PHP] correct session format?

2003-06-21 Thread Jay Fitzgerald
I am trying to learn...If anyone would like to help off-list, my ICQ is 38823829 Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] correct session format?

2003-06-21 Thread Jay Fitzgerald
what about for version 4.3.1?? Jay At 01:41 PM 6/22/2003 +1000, you wrote: Yes, for PHP >= 4.1 Justin on 22/06/03 12:22 AM, Jay Fitzgerald ([EMAIL PROTECTED]) wrote: > is this the correct way to register variables via a session? > > [code] > session_start (); > $_SESSION[&

[PHP] am i doing this right?

2003-06-22 Thread Jay Fitzgerald
#x27;, 'H148', 'H149', 'H150', 'I151', 'I152', 'I153', 'I154', 'I155', 'I156', 'I157', 'I158', 'I159', 'I160', 'I161', 'I162', 'I163', 'I164', 'I165', 'I166', 'I167', 'I168', 'I169', 'I170', 'I171', 'I172', 'I173', 'I174', 'I175', 'I176', 'I177', 'I178', 'I179', 'I180', 'J181', 'J182', 'J183', 'J184', 'J185', 'J186', 'J187', 'J188', 'J189', 'J190', 'J191', 'J192', 'J193', 'J194', 'J195', 'J196', 'J197', 'J198', 'J199', 'J200', 'K201', 'K202', 'K203', 'K204', 'K205', 'K206', 'K207', 'K208', 'K209', 'K210', 'K211', 'K212', 'K213', 'K214', 'K215', 'K216', 'K217', 'K218', 'K219', 'K220', 'L221', 'L222', 'L223', 'L224', 'L225', 'L226', 'L227', 'L228', 'L229', 'L230', 'L231', 'L232', 'L233', 'L234', 'L235', 'L236', 'L237', 'L238', 'L239', 'L240'); echo "$seat[$i]"; endfor; [/end code] Now - all of that works perfect and it displays seperate lines with links to each $seat in the browsereven when I click on the link and goto step 5, it "seems" as though it is working correctly... [code page=step5.php] session_start (); $_SESSION['seat'] = $_REQUEST['seat']; echo "$_SESSION[seat]"; [/end code] My question is - is my session working correctly? am I doing what I need to be doing in order to keep the seats secure so that noone can just type the seat number in the location bar and get to register their seat? The reson I ask this is because the only way I know to test sessions is to close out my browser completely, reopen it and try going to the page I am testing...HOWEVER, when I do that in this situation, I am still allowed to change the actual seat number in my location barthis is what I do NOT want... I have read and read and read online and every place I have looked says the same stuff that the way I have it above should be secure, but apparently it is not... TIA, Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] - Default Date

2003-06-23 Thread Jay Blanchard
[snip] I am about to start work on a PHP script and I need to know how to today's date. Is there a default variable built into PHP that has today's date? [/snip] RTFM at http://www.php.net/date HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] Is there an RTFM for 'use strict' ?

2003-06-23 Thread Jay Blanchard
t does not contain a value (say you have a variable named $vdog and you mis-typed it as $vgod). You may also want to consider 'define' at http://www.php.net/definebut again, it is not the same as 'use strict'. HTH! Jay -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] Defining Super Globals

2003-06-23 Thread Jay Blanchard
[snip] Can some1 tell me how can I define Super Globals (like the Application Scope in ASP)? [/snip] Start here http://us4.php.net/globals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] WEB HOST NEEDED!!!!!

2003-06-24 Thread Jay Blanchard
e for this information. Apparently many of the answers that have been given to you on this list are not acceptable. Do some research. There is no such thing as totally free. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Encoding

2003-06-24 Thread Jay Blanchard
every1 will see it? > >Can we just call you Denis? [/snip] Well, you have not said what language needs to be encoded for. You can Google for "[insert language here] encoding" to find out. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] newbie question

2003-06-24 Thread Jay Blanchard
g. I have installed: RedHat 9.0 Mysql 4.0.13 PHP 4.3.2 [/snip] It is because the tutorial is pre PHP 4.x where register_globals = off in php.ini. Your form variables will be in either $_GET['variablename'] or $_POST['variablename'], or you can turn register_globals 'on&#x

RE: [PHP] emalloc() error being thrown {LONG} - MORE

2003-06-24 Thread Jay Blanchard
n the problem. We seperated each originating area into separate files (opening, then closing file handles). Until the script fails memory usage steadily declines instead of freeing the memory upon fclose(). Is there a way to free memory after a file is written? Thanks! Jay -- PHP General Mailing

[PHP] Freeing memory WAS emalloc() error being thrown {LONG} - MORE

2003-06-24 Thread Jay Blanchard
cript before it gets through the entore array. How do you free the memory after you close a file without stopping the script? If I stop the script the memeory is instantly freed up. I found the MySQL answers (mysql_free_result()), but I also need to free memory after fclose(). Any ideas? Thanks!

RE: [PHP] Are there any PHP functions for creating graphs and/or charts?

2003-06-24 Thread Jay Blanchard
[snip] I just finished (finally!) with a pet project involving a database. I want to link the data through to charts and was wondering if anyone could recommend any packages I could use to create images which could be displayed dynamically within web pages. [/snip] check out jpgraph http://www.ad

[PHP] script check/testing

2003-06-24 Thread Jay Fitzgerald
help, please email me off-list and I will provide the code to you, there is way to much code and I am not even sure which part I should post here. http://www.lamerc.com/jay/test/new/step1.php TIA Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] emalloc() error being thrown {LONG}

2003-06-24 Thread Jay Blanchard
N 626677213534 N 626677213538 N 626677213542 N I have STFW, RTFM taken a couple of SWAG's and still cannot come up with a solution. Is the opened file held in memory and therefore as it gets larger it approaches the memeory limit of the machine? Any insight would help...a BIG THANKS IN ADVANCE! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Fw: upload

2003-06-25 Thread Jay Blanchard
[snip] this is the form that i have Send this file: and this is the script for upload $Archivo = $HTTP_POST_VARS['userfile']; copy($Archivo,"Archivos/".$Archivo); but it doesnt work . [/snip] See TFM at http://us3.php.net/manual/en/features.file-upload.php HTH -- PHP Gener

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
is different for differing distros and OS's and if it is CLI, CGI, or not. If you are in a *nix box you can type 'locate php.ini' from the shell command line to locate them. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] If you are in a *nix box you can type 'locate php.ini' from the shell command line to locate them. [/snip] I also forgot, for command line PHP you can do 'php -I | grep php.ini' from the console... Jay -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] I also forgot, for command line PHP you can do 'php -I | grep php.ini' from the console... [/snip] Ooops, small 'i' !&$%$# Outlook -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
;t we been discussing the location of the php.ini all morning long? I thought we were, but I could be mistaken. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] If you'll notice, that was for linux. However, if MaxOSX has a /etc directory I'd look there... [/snip] Click MacintoshHD, type php.ini in your search box and click 'search' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] Can the file be called anything else? [/snip] php.ini-dist php.ini-recommended A wildcard search might reveal its whereabouts Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Print '\n' not working

2003-06-25 Thread Jay Blanchard
[snip] I am using PHP 4, Apache, but the '\n' is not going to the next line during a print. Has anyone else encountered this anamoly. [/snip] show us the code...and what are you using to view the output file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] emalloc() error being thrown {LONG} - SOLVED...partially

2003-06-25 Thread Jay Blanchard
gured properly or something. I HTH others with mem allocation problems. If anyone can see anything else that can be done to improve performace of this please let me know. We are processing some very large datasets and anything we can do to increase efficiency would be like pennies from heaven. TIA!

RE: [PHP] emalloc() error being thrown {LONG} - SOLVED...Totally!

2003-06-25 Thread Jay Blanchard
RAM in the server. A netwrok admin pointed out other errors occuring on the server and he had traced them back to an intermittent problem in memory. He replaced the hardware in question and all of the emalloc() errors went away. THANKS! Jay -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] defect tracking systems

2003-06-26 Thread Jay Blanchard
[snip] Please help me to choose some [/snip] Google for bug tracking system http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=bug+tracking+syst em HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] defect tracking systems

2003-06-26 Thread Jay Blanchard
[snip] Hm, good answer ;) Can you recommend one of them? Do you have experience with some of these systems? I don't want to try them all [snip] Please help me to choose some [/snip] Google for bug tracking system http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=bug+tracking+syst em

RE: [PHP] SEARCH ENGINE

2003-06-26 Thread Jay Blanchard
[snip] First, thanks to Jim for the greeat tree-menu, we are just editing it. Ok, we are doing the tutorial for the Intranet of our University. There is just a lot of information and we want to give the user all the ways to find the information he's looking for. Hence, we need a great search engine

RE: [PHP] if else if statement failed...

2003-06-26 Thread Jay Blanchard
[snip] Noticed something interesting. I was helping to debug someone's programming problem and found that if there is to many 'else if' in the if and else statement then it doesn't work. Have anyone encoutered this problem and know of a workaround to it? [/snip] I'd

RE: [PHP] Calling PHP from Java usign CGI...

2003-06-27 Thread Jay Blanchard
configure the CGI variables in order to be able to call PHP? Thanx in advance... [/snip] Is the 'data' being returned to stdout? I suspect so, therefore the servlet would have to get the returned information from stdout. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Re: Seraching for good Hotel & room booking program.....

2003-06-27 Thread Jay Blanchard
[snip] Sorry, i try again... > Hello, > i am serching for a good program (PHP) that i can use for > a hotel and apartments booking and billing system. > > do you know some? thank you very much in advance, > > Giulio > [/snip] Google is your friend ... http://www.google.com/search?hl=en&ie=U

RE: [PHP] PHP Certification

2003-06-27 Thread Jay Blanchard
[snip] 3. Ok, I forgot the third reason... Someone will make lots of money selling training materials and administering the tests. Did you really think Microsoft got into this side of the business just to improve the quality of technical consulting. [/snip] Perhaps we could band together and make

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jay Blanchard
Your global.inc.php is outputting a header on line 3. It is sending something to the browser on line 3. What is line 3? If it is setting a cookie it is outputting a header! HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mssql_num_rows problem

2003-06-27 Thread Jay Blanchard
[snip] $numRows = mssql_num_rows($result); print ("$numRows"); [/snip] A. print($query); //to make sure it is correct, double check 2. print($numRows); // no quotes, again to test HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Just a small question on if statement

2003-06-27 Thread Jay Blanchard
[snip] It starts as: If ($myUser == $myReturnedUser) But I want to add another so that the if statement runs only if $myUser is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How do I do this? [/snip] if(($myUser == $myReturnedUser) && ($myPass == $myReturnedPass)){ do

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jay Blanchard
[snip] I checked out my Directory.php file.. there's a bunch of HTML code that is responsible for the HTML in that page before the PHP begins, and before global.inc.php is included in the file. [/snip] Sounds like you need to re-order your code or have the PHP output all of the HTML. [snip] And

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jay Blanchard
[snip] You mean for testing I make a new page and put these two functions? Or do you want me to place these on the top and bottom of my existing global.inc.php page? And PS : what is "HTH" ? [/snip] I mean that instead of you do "); print(""); ?> Hope This Helps -- PHP General Mailing List

RE: [PHP] mysql split?

2003-06-27 Thread Jay Blanchard
use explode() -Original Message- From: Andrew McCombe [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql split? Hi I have a field in mysql that has paths to files such as: project/entertainment/andrew/job/1.jpg project/corporate/r

RE: [PHP] include question

2003-06-27 Thread Jay Blanchard
[snip] I used to include a perl script via Sever Side Include how could I do this in php? example: [/snip] exec("/cgi-bin/something.pl?data=something"); HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP-programmers salary

2003-06-27 Thread Jay Blanchard
[snip] Can anybody tell me what is the avarage PHP-programmers salary? [/snip] It would depend some on geographical location, years of experience, and some other factors. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Another newbie

2003-06-28 Thread Jay Fitzgerald
? Even if it is the style of how to write the code, please let me knowI know noone can be the perfect programmer, but I would at least like to be a decent programmer :) Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Refreshing

2003-06-30 Thread Jay Blanchard
doohickey for each conversation within the chat. 2. You can disable sounds in a themes thingie, depends on which windoze version you own. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Query

2003-06-30 Thread Jay Blanchard
[snip] $sql1 = "SELECT * from `admin` where `admin`.user = '"$_POST['validuser']"' AND `admin`.pwd = '"$_POST['password']"'"; $sql1 = "SELECT * from `admin` where user = "$_POST['validuser']" AND pwd = "$_POST['pass']""; [/snip] subtle differences $sql1 = "SELECT * from `admin` where `admi

RE: [PHP] Query for MySQL

2003-06-30 Thread Jay Blanchard
[snip] I am looking to try and pull the last modified date out and display it. So lets say I have 1000 records. I want to only display the date of the last modified time, I dont care about the id or the name or anything. How do I query for that? [/snip] If you have a lst modified date column

RE: [PHP] Piping print_r output to a variable

2003-06-30 Thread Jay Blanchard
[snip] Is there a way I can pipe the output of print_r() into a variable for further processing? [/snip] $variable = print_r(); Then use $variable? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regular Expression

2003-07-01 Thread Jay Blanchard
[snip] I am currently using this piece of code to validate wether or not an address has only letters, numbers, #, or - in it: if (!ereg("^[A-Za-z0-9 #-]{1,20}", $_POST["address1"])) { $error = 1; $msg .= "Address must only contain letters, numbers,

RE: [PHP] Regular Expression

2003-07-01 Thread Jay Blanchard
[snip] That would have been my first choice also, however, with the # and - being legal, things like ctype_alnum and others don't work out. [/snip] Here is an example of something that I did before; $alphachar = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $ld1alpha = strspn($

[PHP] PHP on one box, Apache on another?

2003-07-01 Thread Jay Blanchard
I don't know the details of this request (like why., but as soon as I know I'll tell you) but can Apache live on one box with all PHP requests being handled on another box? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-23 Thread Jay Blanchard
We finally got this right yesterday afternoon, it ended up being, as Richard said, a directories problem. Ah well, live and learn :) The FreeBSD boxes went off without a hitch. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] redirecting after login

2002-07-23 Thread Jay Blanchard
exit; break; case "level5": header("Location: level5.php"); exit; break; default: header("Location: loginfail.php"); exit; } ?> HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] re: OO Programming - get practical

2002-07-23 Thread Jay Blanchard
w.net HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newman Asks, List Asks ...

2002-07-25 Thread Jay Blanchard
..do you have access to http://www.php.net? Nothing personal Newman, but RTFM. Most of the answers, if not all are there. Also, did you know that http://www.vaahq.com is down? Just thought I'd let you know since it is in your portfolio. Oh, and that whole tird-person Newman thingboring and ir

[PHP] PHP Meetup, how many of you have signed up?

2002-07-25 Thread Jay Blanchard
Top 10 Locales -- Washington DC (9 members) Amsterdam (7 members) Leeds, UK (7 members) London, England (7 members) Atlanta (5 members) Manhattan (below 42nd St) (5 members) Melbourne (5 members) Oakland-Alameda, CA (4 members) Nashville, TN (4 members) St. Louis, MO (4 members) I am somewhat sur

RE: [PHP] Paying Job...

2002-07-25 Thread Jay Blanchard
good examples on the web. HTH! Jay "Perhaps you’re diagonally parked in a parallel universe" * * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/* * No develop

RE: [PHP] GD Library

2002-07-25 Thread Jay Blanchard
use the imagecreate(100,100) function. Any ideas? [/snip] Remove the ";" in front of the extension listing in your .ini file and restart your web server. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Close A Databse Connection

2002-07-26 Thread Jay Blanchard
n fails to close for some other reason (say the user stops the page from loading after the connection is made). I know that it is not required, but always being competitive I thought I would turn to the group for a concensus, whether I am right or wrong. Thoughts? Jay -- PHP General Mailing

RE: [PHP] Changing a variable's value when a link is clicked

2002-07-26 Thread Jay Blanchard
would now = stuff HTH! Jay Next mood swing…6 minutes * * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/* * No developer is an island ... * * -- PHP Gener

RE: [PHP] selcet statement question

2002-07-26 Thread Jay Blanchard
FROM foo ORDER BY id ASC LIMIT 0, 24 ** first 25 records SELECT * FROM foo ORDER BY id ASC LIMIT 25, 24 * next 25 records Don't forget that the row numbering starts with 0. HTH! Jay "Oh, sure…but what’s the speed of DARK?" * * Wa

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
the redirect. Please help. Thanks in advance and for all of the past help. [/snip] Use the header() function http://www.php.net/manual/en/function.header.php HTH! Jay My reality check bounced * * Want to meet other PHP developers * * in your area? Check out

[PHP] exec() not working in one script...

2002-07-26 Thread Jay Blanchard
a.default/rcr/outgoing/$filename"); The file gets created just fine, gets populated just fine, it just will not move. *g* Jay My mind not only wanders, sometimes it leaves completely * * Want to meet other PHP developers * * in your area? Check out:

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
you are going to use the header() function without output buffering, then it should be just like this: [/snip] As said before you can use Output Buffering to prevent this; http://www.php.net/manual/en/function.ob-start.php HTH! Jay p.s. Martin, did you figure out how to do the random quote mail

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
), more specifically VBScript (because ASP can use 3 or 4 different languages, so M$ says) Jay My Karma ran over my Dogma * * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/* * No de

RE: [PHP] PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread Jay Blanchard
[snip] Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ [/snip] http://www.phpbuilder.com ? Jay Monday is an awful way to spend 1/7th of your life * * Want to meet other PHP developers * * in your area? Check out: * * http

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Jay Blanchard
[snip] I'm trying to format the output of a db query with alternating row colors, the thing is the usual if ($i%2) {} will not work here because the alternating colors do not necessarily fall on odd or even rows. [/snip] HTH! Jay Minds are like parachutes…they only function when

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Jay Blanchard
to show? You want the alternating colors to begin with each show_title, in other words the row with the show_title in it shall always be gray, while others rows alternate between white and gray? Jay Madness takes its toll-please have exact change * * Want to

RE: [PHP] Re: PHP4 and MS Excel?

2002-07-31 Thread Jay Blanchard
macro in Excel, perform the actions to save a CSV, stop the macro, and look at the VBA code . I'm not saying that this is the answer you seek, but it may get you one step closer. Jay Love your enemies-it really gets them confused * * Want to meet othe

RE: [PHP] Printing a PHP Class

2002-07-31 Thread Jay Blanchard
[snip] My question is: How does one print out the "Array"? [/snip] Try print_r http://www.php.net/manual/en/function.print-r.php HTH! Jay I took a pain pill, why are you still here? *** * * *

RE: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup & Texas PHP Users

2002-07-31 Thread Jay Blanchard
tact other computer users groups in your area and you may be surprised at what pops-up. Jay LOTTERY: A tax on people who are bad at math *** * * * Texas PHP Developers Meeting* * Spring 2003 *

RE: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup & Texas PHP Users

2002-08-01 Thread Jay Blanchard
7;ll keep you up to date. Thanks! Jay It’s as bad as you think, and they are out to get you. *** * * * Texas PHP Developers Meeting* * Spring 2003 * * T Bar M Resort & Conference Cent

[PHP] mktime() question

2002-08-02 Thread Jay Blanchard
Good morning! I need to subtract months by their abbreviated month name, so shouldn't this work? print(date("M", mktime(date("M")-$i)); and if I loop; Aug Jul Jun May Thanks! Jay What if the hokie pokie reall

RE: [PHP] mktime() question - SOLVED

2002-08-02 Thread Jay Blanchard
ov2002 Oct2002 Sep2002 Aug2002 Jul2002 Jun2002 May2002 So now all I have to do is sove the year rollover, which I think I can do the same way. It'd be so much easier if mktime worked as the documentation said, but after many iterations of different things thi

RE: [PHP] image function

2002-08-12 Thread Jay Blanchard
/install the GD library (http://www.php.net/manual/en/ref.image.php) and maybe jpeg-6b. There may be other extensions that you will need, for instance if you want to use True Type fonts in your images. There is plenty of documentation on installation and set up. HTH! Jay -- PHP General Mailing List

RE: [PHP] image function

2002-08-12 Thread Jay Blanchard
libraries for your use of GD. As for the second DLL, I am not sure. I haven't done a lot of Windows GD installations, it does not look familiar. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: including a php file in an html doc

2002-08-12 Thread Jay Blanchard
PHP, remember to restart the server. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SQL ?

2002-08-12 Thread Jay Blanchard
[snip] SELECT *, IF (answer = 'a', TRUE, FALSE) AS Answer-A [/snip] Answer-A is a handle for the data which you can use later when trying to display the results via PHP, as in an object line; print($data->Answer-A); HTH! Jay -- PHP General Mailing List (http://www

RE: [PHP] Maximum in SQL query?

2002-08-12 Thread Jay Blanchard
0/0/0/0/0001.thumb.jpg", "/var/www/html/ foto/0/0/0/0/0001.j' at line 1 [/snip] I believe the error is a space prior to 'var' "Brunssum", , "/ var/ try "Brunssum", , "/var/ I consistantly use queries in PHP that are far longer than 470

RE: [PHP] dates greater than 2002-01-18 create error

2002-08-12 Thread Jay Blanchard
[snip] Anytime I try to add a day to the date 2002-01-18, I get a Warning: unexpected error in date() error. Can anyone shed some light on this. [/snip] If you'll shed some code on this, we'll shed some help :^] Jay -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] dates greater than 2002-01-18 create error

2002-08-12 Thread Jay Blanchard
[snip] [/snip] I take out '+1' and the result is 1969-12-31 I put in the '+1' and the result is 1970-01-01 I change '2038-01-19' to '2002-01-19' and it works. Which is what the subject of your message was, not [PHP] dates greater than 2038-01-18 cr

RE: [PHP] Variable naming standards???

2002-08-13 Thread Jay Blanchard
/hungarian-notation.html Hungarian notation was conceived so that variable types would be easily identifiable in code. YMMV Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] switch statement question

2002-08-13 Thread Jay Blanchard
Nothing(); break; default: echo "ERROR" } [/snip] http://www.php.net/manual/en/control-structures.switch.php Yes Virginia, there is a PHP function :^]. You can explode your $string_var into an array, loop through the array and test each word for a match. HTH! Jay --

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