RE: [PHP] good article on creating a subscription form/script

2002-07-12 Thread Lazor, Ed
It may not be the best approach, but I've always created a form that accepts the users e-mail address and passes it to a script. The script generates an e-mail and sends it to the listserv on behalf of the user. The listserv sends a message to the user and confirms the subscription. -Ed -O

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
I was just checking it out. That map is awesome! What's funny is that it even has an option to display the picture of a house at the coordinates you specify. Thanks for the compliment *grin* I have no idea why I didn't. Probably just got lazy hehe My only excuse is that I think vacation mode

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Wow. That's pretty cool =) Do they allow map over-lays? For example, if you want to display a map displaying points for each house within the vicinity of the coordinates? -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 3:58 PM To:

RE: [PHP] Re: Table Making

2002-07-11 Thread Lazor, Ed
mysql_fetch_array($Results); if (isset($Row)) print $Row[0] . ""; } print ""; } print ""; -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 3:18 PM To: Lazor, Ed Cc: [EMA

RE: [PHP] Re: Table Making

2002-07-11 Thread Lazor, Ed
Will this work for you? $numFields = mysql_num_fields($Results); print ""; while ($Row = mysql_fetch_array($Results)) { print ""; for ($i = 0; $ < $numFields; $i++) print "".$Row[$i]."";

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Good question. Isn't GPS 3D? I'm guessing you're correct, but now I'm curious. Assuming it's a 2D-based situation, it still seems easier to use the approach I described in the last e-mail and then somehow tie the GPS coordinates into that system rather than base everything on GPS. You'd end

RE: [PHP] Linux Newsgroup... ('continue');

2002-07-11 Thread Lazor, Ed
Which news service are you connecting to? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Linux Newsgroup... ('continue'); Are you sure these newsgroup work? I tried subscribing to it and got

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Are you really working with actual map coordinates that include longitude and latitude? This seems to be a reverse approach to what I usually see. From what I've seen, you typically display a map of the united states. Click a state to zoom in. Have the state map divided into sections, click

RE: [PHP] Loading dynamic pages based on URL

2002-07-11 Thread Lazor, Ed
I use mod_rewrite from Apache to do what you're describing. Everything without a period in the name gets processed by /index.php. The index.php script knows which data to load by parsing the URL. -Original Message- From: Monty [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 11:

RE: [PHP] Breaking Dynamic Content into Pages...

2002-07-11 Thread Lazor, Ed
Your approach actually seems pretty good to me. I've used two other approaches in the past though and I'll describe them to give you some other ideas. Option 1: Multi-Page Form You submit a document in stages. From the user's perspective, they click a button to "add document". This lets them

RE: [PHP] Page not found problem

2002-07-10 Thread Lazor, Ed
Is it doing this for all php based files? Have you tried a php file that only has basic commands? Something like this: -Original Message- only display "No input file specified." message. This message is int

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I'm definitely curious and want to check out the debugging tools, performance analyzer, and database connectivity tools provided by PHPEd. I get the impression most developers do not integrate coding and content. Is this correct? -Ed -Original Message- These first two things are immedi

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I am too. I've developed an approach to coding with Dreamweaver that allows me to take advantage of WYSIWYG and my own style of coding at the same time. The MX version of Dreamweaver is supposed to add support for code snipets, and a few other things. I'm looking forward to checking them out. O

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I like WYSIWYG integration. It allows me to code the page and then focus separately on web page content. That debugger in PHPEd looks pretty cool... too bad they don't have WYSIWYG. -Original Message- I agree about WYSIWYG. I use UltraDev a lot, but don't use the WYSIWYG very much agai

RE: [PHP] Question about PHP

2002-07-10 Thread Lazor, Ed
It's the first option in the installation instructions. Follow the part about installing PHP as an Apache module and you'll be set. -Original Message- I am reading a book about php, in its security section, it says " it is more secure, as well as more efficient when installing PHP, to i

RE: [PHP] sessions

2002-07-10 Thread Lazor, Ed
session_set_save_handler() http://www.zend.com/zend/tut/session.php -Original Message- How can I configure my scripts to store sessions in MySQL? This message is intended for the sole use of the individual and

RE: [PHP] sort problem

2002-07-10 Thread Lazor, Ed
I'm not sure if I completely understand what you're asking, but It sounds like one table has user information. The second table has a record for each user and a field for the total number of points of each user. Something like this: Users (Table 1) - ID Name Address etc. Score

RE: [PHP] SQL field problem

2002-07-10 Thread Lazor, Ed
You can refer to fields by their number. $Row[3]; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 10:40 AM To: [EMAIL PROTECTED] Subject: [PHP] SQL field problem Hello I have a problem with mysql.I create a table with a field "kat".

RE: [PHP] banner rotation and advertisement

2002-07-10 Thread Lazor, Ed
Try SourceForge.net and search for PHP banner rotation. There are several freely available programs doing exactly what you're looking for. -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 11:20 PM To: [EMAIL PROTECTED] Subject: [PHP] banner rotation a

RE: [PHP] isset

2002-07-09 Thread Lazor, Ed
Me too ;) -Original Message- i agree to that > Look at that we get an easy question and 50 people reply. Today has just > been our day for spam. *LOL* :) This message is intended for the sole use of the ind

RE: [PHP] $_REQUEST???

2002-07-09 Thread Lazor, Ed
I'm not sure if it's true or not, but someone said all data coming through _POST and _COOKIES is filtered - making it safer than pulling the raw data from variables. While you're forging cookies, I'll take a few chocolate chip ;) -Original Message- Considering the fact that anyone can fo

RE: [PHP] php loopholes

2002-07-09 Thread Lazor, Ed
I just wish RedHat's updater worked as seamlessly as Microsoft's. MUHAHAHA ;) -Original Message- 10 out of 10 for that.. the only loopholes that everexist in development software come from microsoft themselves. oh yeah that reminds me I should run my windows update again LOL *

RE: [PHP] Mail() function

2002-07-09 Thread Lazor, Ed
IMHO: This is a good thing. SPAM is a bad thing, which proliferates without accountability. -Original Message- The relevant line is added by the server that RECEVIES the message, not by your server. So you don't have any control. ***

RE: [PHP] slightly ot, looking for definition and possible info link about EX-OR

2002-07-09 Thread Lazor, Ed
Is this what you're looking for? http://www.php.net/manual/en/language.operators.bitwise.php -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 2:33 PM To: php list Subject: [PHP] slightly ot, looking for definition and possible info link about E

RE: [PHP] multi dimensional arrays / radio buttons / mass confusion on my part

2002-07-09 Thread Lazor, Ed
It sounds like you're trying to do too many things at once. If you create a form to accept entries, process the entries when the form is submitted. Check each entry and only add ones that don't already exist in the database. After that, if you want to display results, start at the beginning of th

RE: [PHP] tree structures

2002-07-09 Thread Lazor, Ed
You're basically paging through results. You have a SQL statement to get the data - just limit the statement to only draw information applicable to the page you're on. Like this: select * from table limit 0,10; That will select the first 10 records. Then you can use variables. if (empty($P))

RE: [PHP] ?????????????????????????????????

2002-07-09 Thread Lazor, Ed
I wonder if he's using PHP to automate sending the messages. hehe -Original Message- If read the earlier posts you'll find that this is the guy who was to thick to unsubscribe himself this morning - he obviously still hasn't got it so he's trying to get a lifetime ban. So sad, so filtere

RE: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Lazor, Ed
Thanks to everyone who contributed on this thread. It proved to be very informative and enjoyable. -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain in

RE: [PHP] Linked drop down selection lists and dynamically generated links

2002-07-08 Thread Lazor, Ed
The only problem is that this page isn't completely dynamic. For example, column #3 should automatically update when column #2 changes. Plus, imagine what happens when the page and the form both become more complex. I guess I'm just spouting off my opinion that Javascript is the easier solution

RE: [PHP] [OFF] Expiration Page

2002-07-08 Thread Lazor, Ed
Check HTML meta tags. I'm not certain, but I think that's what you're looking for. -Original Message- Please, How do I make for my webpage expires before time? This message is intended for the sole use of the

RE: [PHP] $_REQUEST???

2002-07-08 Thread Lazor, Ed
Are you trying to find out whether the person is logged in? You can also test the cookie with the isset function. -Original Message- Can the $_REQUEST be trusted?? The documentation said it is the combination of $_GET, $_POST, $_COOKIE & $_FILE. If the PHPSESSID is found in $_REQUEST,

RE: [PHP] don't want to receive but email please

2002-07-08 Thread Lazor, Ed
So is this a new virus? -Original Message- From: Rodolfo Contreras T. [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 6:30 PM To: [EMAIL PROTECTED]; PHP List Subject: [PHP] don't want to receive but email please don't want to receive but email please don't want to receive bu

RE: [PHP] $GLOBALS ???

2002-07-05 Thread Lazor, Ed
Is this true? : Session variables are tracked whether or not a visitor's browser supports cookies. The session id is automatically appeneded to each url on the site if the user's browser doesn't support cookies. This represents one of the major differences between setting your own cookies and u

RE: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Lazor, Ed
I've always used MySQL, I don't know either. I suspect they are equal in ease of use. -Original Message- I dunno! Never tried it! I wonder which one is easier to work with? This message is intended for the

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Lazor, Ed
Well... production with myself as the only client =) I want to encrypt my webmail. -Original Message- :-) Don't tell me if you're gonna use it for production!!! This message is intended for the sole use of t

RE: [PHP] $GLOBALS ???

2002-07-05 Thread Lazor, Ed
I don't understand. What do you mean? -Original Message- What about PHPSESSID??? Can't use the $_COOKIE. This message is intended for the sole use of the individual and entity to whom it is addressed, and may

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Lazor, Ed
I can always click passed the warning instead of paying $119 for the cert *grin* -Original Message- You can do this in OpenSSL on Linux. But the web browser will give a warning message stating that the certificate is not issued by the certificate authority.

[PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Lazor, Ed
How many here feel PostgreSQL has surpassed MySQL as the better backend for PHP? This would be based on performance (speed, scalability, etc.) and features. -Ed This message is intended for the sole use of the ind

RE: [PHP] $GLOBALS ???

2002-07-05 Thread Lazor, Ed
Correct you can add the data as a URL parameter. Or, you could set a cookie and use sessions. -Original Message- Let's say . --clip-- Page 1 - $data = "Yes!"; header("Location: test1.php"); Page 2 - $data = $GLOBALS['data']; echo $data; --clip-- This one does not w

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Lazor, Ed
I saw that Microsoft has a Certificate Authority server package that allows you to create your own key. Is there a way to do this in linux? In this particular instance, it's me accessing my own web site. I'd like to encrypt the session and I'm don't need someone to confirm anything. -Origi

RE: [PHP] localhost - passing variables

2002-07-05 Thread Lazor, Ed
It almost sounds as if globals is turned off. -Original Message- On Fri, 5 Jul 2002, Tony Tzankoff wrote: > Is it possible to pass variables in PHP on the localhost server? Is there > some kind of setting or something that I need? I am new to this and am not > sure how to go about this. W

RE: [PHP] Re: Stored Procedures

2002-07-05 Thread Lazor, Ed
MySQL does in 4.0, but that's in alpha right now. -Original Message- Postgres supports stored procedures, triggers and views to name a few where mysql does not... This message is intended for the sole use of th

RE: [PHP] Stored Procedures

2002-07-05 Thread Lazor, Ed
I have no idea of how to create postgres stored procedures, but a search on Google brought up a lot of information that you might find helpful: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=postgre+stored+proced ure You can also visit their web site at http://www.postgresql.org -O

RE: [PHP] Configuring the Session Function in php.ini for WinNT...

2002-07-05 Thread Lazor, Ed
Any temp directory set aside for this purpose. You can create one "c:\temp" or "c:\temp\sessions" -Original Message- From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Configuring the Session Function in

RE: [PHP] Session not expiring

2002-07-05 Thread Lazor, Ed
ECTED]] Sent: Friday, July 05, 2002 11:17 AM To: 'Lazor, Ed' Subject: RE: [PHP] Session not expiring This is what I get: Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no

RE: [PHP] Scheduling tasks

2002-07-05 Thread Lazor, Ed
>From what I've seen, people use crontab do call php scripts - effectively scheduling functions. -Original Message- From: Frank S. Kicenko [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 10:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Scheduling tasks Hi, I couldn't find anything

RE: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Lazor, Ed
I've typically seen the use of a login / cookie in tracking users and providing security. -Original Message- Quick Question on Cookies vs. IP Number: They appear to be easy to set (well at least in PHP), hence quite easily to get around (The user of your Site simply deletes the Cookie

RE: [PHP] Session not expiring

2002-07-05 Thread Lazor, Ed
It looks like you're doing it correctly. Use phpinfo() to verify the php.ini file being used. Maybe the system's using one other than what you updated. -Original Message- From: Peter Atkins [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [P

RE: [PHP] New emalloc() error?

2002-07-03 Thread Lazor, Ed
wow, 107megs of ram in one process is impressive. Have you checked your php.ini max memory setting? Is there sufficient ram / swap file space? Got enough free drive space? -Original Message- List, I think I saw this one on here before...when reading/writing the database I get

RE: [PHP] Using PHP to access a Microsoft SQL server

2002-07-03 Thread Lazor, Ed
It sounds like you need to give your apache account access to the database. You can test this by logging in as root and running "su - apache". You'll be logged in as Apache; try running the commands you used to test everything when logged in as root. You'll probably get errors that will hopefull

[PHP] Recognition: Richard Lynch

2002-07-03 Thread Lazor, Ed
Richard Lynch: It's amazing to see how many helpful and informative messages you're able to rattle off on a daily basis. You're a major contribution to the community - Good job! This message is intended for t

RE: [PHP] Exim sendmail faults

2002-07-03 Thread Lazor, Ed
Are you able to do an nslookup of these domains from the server? -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Exim sendmail faults I apologize; this may be more a question for the people in ph

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
Of course. Btw... You aren't running into a PHP limitation. You're experiencing an issue of programming design and how to integrate different technologies. If anything, Apache is what's limiting you, because of the order of presedence in how it processes files. >From what you've said, you want

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
It seems that PHP is much more powerful and would completely replace the need for SSI. -Original Message- I think I misunderstood your question. You have a Perl script that returns HTML and SSI and you want that string, returned to PHP, to be parsed by Apache, so the SSI is evaluated, rig

RE: [PHP] How to start hello program

2002-07-03 Thread Lazor, Ed
Installing the web server will create a folder on your hard drive with pre-made web pages. Find this directory. This is where you'll want to put your PHP files. You can access your personal server by opening your web browser and giving the address of http://localhost If you put files in the

RE: [PHP] Authentication

2002-07-03 Thread Lazor, Ed
Use sessions. Create a user_id and pass that as a session variable rather than the user's actual login and password. -Original Message- On my site, when a user logs in, their password is encrypted using md5() and the username and encrypted password is then passed from page to page using

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
You're only receiving the processed results when you source the php file from another server. In other words, it's like viewing the web page through your browser. -Original Message- > If the script is run over the web, you can just do a > fopen("http://www.example.com/script.php";); an

RE: [PHP] upload problems - "unable to open 'none'

2002-07-02 Thread Lazor, Ed
d field. I doubled checked the HTML and everything is fine with it. hey man, thanks for all your help!! $filename = "/tmp/".$userfile; if (!copy($userfile, $filename)) { echo "something barfed."; exit; } else { echo "uploaded."; } >>> "Lazor, E

RE: [PHP] Re: Beginner Sessions Question

2002-07-02 Thread Lazor, Ed
Portability between different databases makes a DB class beneficial. Then again, I stick with MySQL, so I don't bother with the extra overhead either. -Original Message- I just don't see a cost/benefit ratio that makes sense in the DB classes. I know it's a minority opinion, but I've ne

RE: [PHP] FW: Help please!

2002-07-02 Thread Lazor, Ed
ics, and I download of a modem... Prefer if server has the load... Steve |-Original Message----- |From: Lazor, Ed [mailto:[EMAIL PROTECTED]] |Sent: 02 July 2002 21:34 |To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] |Subject: RE: [PHP] FW: Help please! | | |Why would

RE: [PHP] upload problems - "unable to open 'none'

2002-07-02 Thread Lazor, Ed
Send us a copy of your script so that we can help. Odds are that you didn't specify the proper field name in your upload form. -Original Message- Now I'm getting this error each time I upload a file... Warning: Unable to open 'none' for reading: No such file or directory in /home/.../u

RE: [PHP] Re: Have you seen this host?

2002-07-02 Thread Lazor, Ed
In that case, go with CWIHosting.com. They are the best I've seen yet. -Original Message- He is looking for a web hosting company that has what he has listed below... This message is intended for the sole use

RE: [PHP] Alpha Channel Question

2002-07-02 Thread Lazor, Ed
I don't understand alpha channel well enough to explain it, but I know you can find more information over at Adobe.com and by running a Google search for "alpha channel tutorial". -Original Message- The idea is to create a simple glare effect by taking a white circle and making it more t

RE: [PHP] FW: Help please!

2002-07-02 Thread Lazor, Ed
Why would it be quicker on the client-side? I would think you'd go with the first option. That way the layout of your web page is maintained while the image downloads. -Original Message- Do not want WHat I want WHich will be a lot quicker on the client side. I cannot m

RE: [PHP] Re: Have you seen this host?

2002-07-02 Thread Lazor, Ed
Are you not promoting a hosting service? What is your inquiry? -Original Message- I think calling it spam is a bit harsh! Offtopic maybe, but it is a genuine enquiry > > Hi, if you can find a web host that offers ALL these services, i will eat > my > > hat on my webcam to the whole clu

RE: [PHP] Re: Copy of Ed Lazor's response : find and replace in php

2002-07-02 Thread Lazor, Ed
It sounds like you need to use templates. I haven't played with them much so I can't give specifics, but I hope that points you in the right direction =) -Original Message- I would like to do that, but I'm not hard coding the letters myself. I'm trying to provide a way for others (to pro

RE: [PHP] upgrading php...

2002-07-02 Thread Lazor, Ed
I think there were security updates in the newer version that you'll benefit from, so it's worth your time. Check the README file for the new download. There are notes on upgrading. -Original Message- Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth my time and tr

RE: [PHP] find and replace in php

2002-07-02 Thread Lazor, Ed
Nothing will be inserted if the variable is empty, so you could just use $firstname, $product, $date, etc. inside your "letter". The main problem is adding logic to your "letter" to respond appropriately based on the value of different variables. For example: $MailBody = ""; if (empty($firstnam

RE: [PHP] Frames JavaScript and PHP

2002-07-02 Thread Lazor, Ed
PHP is server-side. You're discussing client-side issues. You'll need to find a way of submitting the information to the server and then PHP can process it from there. -Original Message- I am trying to get the value of a frames path into a PHP variable. Is it possible to access DOM valu

RE: [PHP] Where do I specify a DSN?

2002-07-01 Thread Lazor, Ed
It depends on your operating system. This is a Windows system level configuration option. For example, in Windows 2000, you'd configure DSN's in Start->Settings->Control Panel->Administrative Tools->Data Sources(ODBC) -Original Message- I'm getting this error message...where do

RE: [PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Lazor, Ed
Aren't you saying that storing files on the local file system is generally faster than using database blobs? There are enough examples in the article and related threads to convince me that benefits to database blobs are more than exceptions to the rule. In fact, there are even examples where d

RE: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Lazor, Ed
The web server needs write access to where you're trying to store the files. Check the directory permissions. Check with your ISP to make sure there are solutions other than making the directory world writeable. -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: M

RE: [PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Lazor, Ed
There are benefits to this making the performance hit worthwhile in some instances. More info: http://www.zend.com/zend/trick/tricks-sept-2001.php -Original Message- Inserting images or whatever binary data in a database does not have much sense **

RE: [PHP] Page rendering speed: PostNuke or PHP-Nuke

2002-07-01 Thread Lazor, Ed
Check SourceForge.com to see what content management systems are available. -Original Message- To those who have used these content management systems: which one renders pages faster, PostNuke or PHP-Nuke? I plan to set up a site on my Linux box and want to know which one I should use. :

RE: [PHP] Keeping "Secrets" in PHP Files

2002-07-01 Thread Lazor, Ed
Dang. $2880 is kind of expensive! I wish they'd base licensing more on how many copies your encoded program you sell. -Original Message- http://www.zend.com/store/products/zend-encoder.php This message is int

RE: [PHP] Encripted download

2002-07-01 Thread Lazor, Ed
Everything going through https is encrypted. Update links to download files and everything should go smoothly. -Original Message- Questions: 1. Are the files actually travelling with no encription ? 2. How can I encript them but making it transparent to the user ? *

RE: [PHP] blob versus file

2002-07-01 Thread Lazor, Ed
What are the specs on your system? I'm wondering how much over-all system performance is effecting your results. For example, if you have limited amounts of ram, storing blobs in a database may end up being slower than the local file system. -Original Message- I thought the performance

RE: [PHP] Gradients in PHP & GD

2002-06-30 Thread Lazor, Ed
You guys are over-complicating this. If you want to help someone and don't understand their question, just say so. People asking for help are usually more than happy to provide additional information or rephrase their question. Be careful when using the question, "Are you new to PHP?". It has

[PHP] PHP Security

2002-06-27 Thread Lazor, Ed
Does anyone have favorite links related to PHP security? My Google searches have been bringing up a lot of info, but I'd like to make sure everything's covered. My idea is to collect advice and recommendations on design, style, and methodologies for secure PHP programming. I will be organizing

RE: [PHP] Image GD Wizardry!

2002-06-26 Thread Lazor, Ed
It sounds like you're describing the difference between data type and data format. In other words, jpg, bmp, and gif files are all binary data. What makes them unique is the format of that binary data, which is why it's necessary to specify the correct file extension to properly process the file

RE: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread Lazor, Ed
Isn't this an example of using require in the wrong context, since you don't typically load a gif file and attempt to process it as a PHP file? http://www.php.net/manual/en/function.require.php The require() statement includes and evaluates the specific file. -Original Message- I think

RE: [PHP] dynamically creating variable names

2002-06-26 Thread Lazor, Ed
I think so. Try using double dollar signs. $name = "food"; $$name = "pizza"; print $food; -Original Message- Can someone tell me if it's possible to create variable names from varaible names? This message

RE: [PHP] forms question

2002-06-25 Thread Lazor, Ed
I do what you're asking with Javascript. Lookup dynamic forms and you'll find a lot of examples. On Tuesday 25 June 2002 10:30 am, M.E. Suliman wrote: > I'm busy with an order form in php. How would I display a text field only > if a checkbox is checked. The reason for this is that if the user

RE: [PHP] header("Location with & in URL

2002-06-24 Thread Lazor, Ed
Have you tried this? header("Location: $retURL"); ? > -Original Message- > > $retUrl = htmlspecialchars ($retUrl); > > if ($retUrl != "") { > header("Location: " . $retUrl); > > Any ideas? This messa

RE: [PHP] Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread Lazor, Ed
I have an idea on how to do this. Could someone confirm whether this is a good approach? function grayscaletohex ($val) { $n = ($val * 255) / 100;// convert from range of 100 to range of 255 $h = dechex($n);// convert decimal to hex $result

RE: [PHP] any reason why mail() returns a false value?

2002-06-21 Thread Lazor, Ed
Please send code generating the problem. > -Original Message- > my sendmail problem is still present -- every time I try to call the > "mail()" function, even with the simplest of arguments (the > first three > required arguments, all three of them simple string literals: > mail('[EMA

RE: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Lazor, Ed
I don't know if the function exists, but it should be easy to create. Something like this: function replicate($Repeat, $RepeatCount) { $Results = ""; if ( ($RepeatCount < 1) or ($Repeat == "") ) return false; for ($i=0; $i < $RepeatCount;$i++)

RE: [PHP] Red Hat & PHP

2002-06-20 Thread Lazor, Ed
Good question. Please refer to the RedHat mailing list for assistance. > -Original Message- > From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 12:47 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Red Hat & PHP > > > I'm trying to install a PHP server on Li

RE: [PHP] Can I be an ASP with PHP?

2002-06-20 Thread Lazor, Ed
René, My 10 cents: For a monthly fee, host sites and promote your software (and updates) as part of the service. Or, sell the software and offer upgrades at a price. This option isn't as attractive though. It's much more expensive upfront and means the customer will have to deal with managing

RE: [PHP] Netiquette

2002-06-20 Thread Lazor, Ed
Concise is also good ;) *gives Erik a noogie* Erik wrote: > I was going to stay out of the thread, because people have > ways of doing > it that they are set in, but this is really the crux of it -- > allow me > to extrapolate on what Dan said. Please realize that these > aren't "fire >

RE: [PHP] getting values by a joints mysql query

2002-06-20 Thread Lazor, Ed
You need to establish a relation between the two tables to complete the join with something like: AND G.GID = U.GID Also, this is not a PHP related question. You should also be directing this to the MySQL mailing list. > -Original Message- > Im having problem in getting the the

RE: [PHP] Error Reporing Questions with Mac

2002-06-20 Thread Lazor, Ed
Why would this be the case? PHP is server-side and client independent... > -Original Message- > Your problem is undoubtably to do with the difference in line > endings on > mac/pc/unix. > This message is int

RE: [PHP] calling a php file from javascript

2002-06-20 Thread Lazor, Ed
I don't know the complete answer. But, in case it helps, I can tell you that you'll need to research how to load standard web pages. In other words, this is a general Javascript / Flash question and PHP doesn't really play factor into your solution. > -Original Message- > how can I call

RE: [PHP] Date Comparsion

2002-06-20 Thread Lazor, Ed
Check out the date() and mktime() functions. > -Original Message- > Now i want to compare the leave_from and leave_to date to find out the > number of days between! > > What should i do or any function in php can provide this operation? ***

RE: [PHP] How do I hide download link ...

2002-06-18 Thread Lazor, Ed
Hey Martin, could you send me the syntax for attaching a file? I'll be doing something like this next week and this would come in handy. Thanks, -Ed > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 17, 2002 5:58 PM > To: 'Fargo Lee'; [EMAIL PR

RE: [PHP] Search - 'AND' ... 'OR'

2002-06-15 Thread Lazor, Ed
Funny. I asked a very similar question the other day. Jason Morehouse was nice enough to offer this advice: If you use fulltext search (assuming you are using MySQL), it deals with stop words on its own as well as some additional search logic. http://www.mysql.com/doc/F/u/Fulltext_Search.html

RE: [PHP] Can't set a cookie? [SOLVED]

2002-06-15 Thread Lazor, Ed
Thanks for your help Everyone =) I needed the 3rd parameter set in order to specify the fourth "/", because the cookie is being set by a script located in a sub-directory. One of the old documents I read said "" would work as the third parameter - and it did on my old servers. Setting the thir

[PHP] Can't set a cookie?

2002-06-15 Thread Lazor, Ed
Hi Everyone, Any idea why I'm getting this error? Warning: setcookie() expects parameter 3 to be long, string given in *my script* on line 2 Here's the entire script generating the error: The script doesn't work on a new hosting service I subscribed to, but it works on two other servers - 1

RE: [PHP] Re: php server on Windows

2002-06-14 Thread Lazor, Ed
Do you have any benchmarks? > -Original Message- > fans). Put your site on a *nix box with apache its a heck of > a lot faster This message is intended for the sole use of the individual and entity to whom i

RE: [PHP] integer to string

2002-06-14 Thread Lazor, Ed
Try: $n = $soils[$i]; $soils[$i] = sprintf("%d", $n); and if that doesn't work, print out $soils[$i] to see what it is. > -Original Message- > $soils[$i] = sprintf("%d", $soils[$i]); > > But doesn't seem to work, my program returned an error. > P.S. : I'm using 4.0.6 otherwise wouldn't

  1   2   >