[PHP] php gd extension with cPanel

2013-03-14 Thread David Mehler
Hello, I'm hoping there's an easy fix for this. I've got a centos server machine 6.4 I believe with cPanel running on it. I need to enable the gd extension, both the gd and gd-devel rpm packages are installed, but php is not, that is showing up in a package list. It is however installed as it's

Re: [PHP] Re: Email Antispam

2012-04-25 Thread David Mehler
Hello, Thank you to all who have offered suggestions with this issue. I have discussed it with the individual I'm working for and a contact form has been authorized. So, I'm going to go with that option. Thanks. Dave. On 4/19/12, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu,

[PHP] Email Antispam

2012-04-17 Thread David Mehler
Hello, I'm working on a site that has email addresses on it. I am not wanting to use mailto links so as to avoid spam harvesters, I'd like another solution so that mailto links would work but would not work with spammers. I've tried several javascript-based solutions, but am not able to get them

[PHP] dynamic copyright in page footer?

2011-04-30 Thread David Mehler
Hello, I am trying to use php to put a copyright notice in a page footer. I'm using the date function with the Y value for the year. Here's the code: ?php echo date ('Y'); ? This works great for a site done in 2011 but next year I'm going to want to have 2011 and 2012 in the copyright notice,

[PHP] converting a mysql date value

2010-09-29 Thread David Mehler
Hello, I've got dates stored in a mysql database. The field is of type date so the value is something like: 2010-09-29 I'm wanting to display them as in U.S. dates as in month, day, year. I had a function that did this, now it is not working and I am perplexed as to why. Here's my echo statement:

[PHP] SEO Experts?

2010-09-26 Thread David Mehler
Hello, Do we have any SEO experts on this list? I'm not one, learning only, reading a book and a few articles/tutorials from webmasters, and I'm wanting to optimize an existing site to get the best search rank possible. Some techniques, dos and don'ts would be appreciated. Thanks. Dave. -- PHP

[PHP] require_once

2010-09-01 Thread David Mehler
Hello, I've got probably a simple question on require_once. I've got a file that has require_once at the top of it pulling in another file of functions. Later on in this file I've got another require_once bringing in a second file. In this second file I have a function call to a function defined

[PHP] two questions on serverside validation

2010-08-25 Thread David Mehler
Hello, I've got two questions. I'm having to redo my form. Can you tell me the difference if any between these two lines of code? This is for output filtering. textarea name=description ?php echo htmlout($description); ?/textarea textarea name=description?php echo htmlout($description); ?

Re: [PHP] two questions on serverside validation

2010-08-25 Thread David Mehler
Hello, Thanks to all who answered my quotes question. I've got another one. I've got several combo boxes that are sticky, below is an example of one and the function. Now i'd like to tighten it up by ensuring that an external user can't inject values other than value1 or value2 in to the script.

[PHP] google maps API

2010-08-22 Thread David Mehler
Hello, Has anyone worked with the google maps API to put a map on their site? If so, please contact me offlist i need to get it going. Thanks. Dave. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread David Mehler
Hello, I've got a php5 document and some items are showing up as question marks. For example, the word President's in the code it is President's however when displaying in the browser it's President?s the ' is not being displayed properly, this is occurring in several places and on several pages.

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread David Mehler
Hello Everyone, Thanks. Ash, i'll try your function and see how that works. The original content came from word documents, but they were pasted in to a text editor in this case notetab light. In the meta of the site the character set is utf-8 I was told it was better to use that than iso8859-1 if

[PHP] displaying and updating records in a form

2010-08-02 Thread David Mehler
Hello, Not sure if this went out, apologies if this is a double post. I'm having difficulty tying something together. I'm wanting to display a record from a database in a form, information from the various fields in the database goes in to their coresponding fields in the form, for example address

[PHP] opening link in new window

2010-07-22 Thread David Mehler
Hello, I've got a page with an external link. I'd like to open it in a new window, but i'm using the xhtml 1.0 strict dtd so this isn't possible. I was wondering if php could pull this off? Failing that, and not really wanting to go there, would javascript work for this? Thanks. Dave. -- PHP

[PHP] changing form based on variable

2010-07-20 Thread David Mehler
Hello, I've got a form, it's sticky, and it can either display on an insert or update. Depending on whether i'm wanting to do an insert or update the area the form gets it's input changes. So, i've got a name field, if it's set to insert, not sure how to differentiate between the two actions, name

[PHP] functions and global variables

2010-07-18 Thread David Mehler
Hello, I've got a file with a variable declared in it. For purposes of this post: $name = $_POST['name']; Now a little later in the same file I have a custom function call that outputs some information. In that information is an echo statement outputting $name: echo $name; I'm wondering do I

[PHP] updating a database

2010-07-14 Thread David Mehler
Hello, What i'm trying to do certainly doesn't seem hard conceptually, but coding it has been rough. I'm wondering if anyone has anything similar. I've got a database with records. The first time the page is accessed the submit button won't be selected, so display information about the record with

[PHP] validating form input

2010-07-08 Thread David Mehler
Hello, Got a form that takes in data to enter in to a database. I want to make it as secure and as invulnerable to sql injection and other attacks as possible. I'm wondering if mysqli_real_escape_string or stripslashes should be used or if the former does the latter. For example, I have a name

Re: [PHP] form validation and error display

2010-07-05 Thread David Mehler
and coding on my part, I'd appreciate any assistance. Thanks. Dave. On 7/4/10, Paul M Foster pa...@quillandmouse.com wrote: On Sun, Jul 04, 2010 at 01:57:01PM -0400, David Mehler wrote: Hello, I've got a form with several required fields of different types. I want to have the php script process

[PHP] form validation and error display

2010-07-04 Thread David Mehler
Hello, I've got a form with several required fields of different types. I want to have the php script process it only when all the required fields are present, and to redisplay the form with filled in values on failure so the user won't have to fill out the whole thing again. One of my required

Re: [PHP] form validation and error display

2010-07-04 Thread David Mehler
...@quillandmouse.com wrote: On Sun, Jul 04, 2010 at 01:57:01PM -0400, David Mehler wrote: Hello, I've got a form with several required fields of different types. I want to have the php script process it only when all the required fields are present, and to redisplay the form with filled in values

[PHP] form validation code

2010-06-30 Thread David Mehler
Hello, I've been looking at this to long, and am not seeing the issue. When i had the below php code set to !empty instead of !isset as it is now I got the value of the name variable echoed back, yet on sql insert that field, along with all others are empty, though no error is generated, just a

[PHP] php processing name vs. id field

2010-06-30 Thread David Mehler
Hello, I've got a php form processing question. I've got a text field like so: div label for=txtnameName*:/label input type=text name=name id=name size=30 value=?php echo htmlspecialchars($_POST['name']), ENT_QUOTES, UTF-8; ? / br / /div My question is what is the purpose of the id field? I know

[PHP] protecting email addresses on a web site

2010-06-14 Thread David Mehler
Hello, I've got a site that is needing to have two email addresses on it, one for general contact and information and the other for webmaster for site problems. I do not want these addresses to become harvested by spammers yet i want to make it possible for people to email if needed. I can not use

[PHP] last modified on a page

2010-06-13 Thread David Mehler
Hello, I've got what is probably a simple question. I've got a site with a footer include file. I want to have a section that displays the last time the page was modified. So for example say the index.php was last modified today and another page was modified two days ago. When the include is run

[PHP] combo box validation

2010-06-07 Thread David Mehler
Hello, I've got a form with two combo boxes, one for the month one for the day. Both are required. I've got code that checks the post submission to ensure neither is empty. My problem is that if a user does not select anything in the combo boxes January first is sent, this i don't want. If they

[PHP] complex if statement for field validation

2010-06-07 Thread David Mehler
Hello, I've got a form with three fields that are not required for proper completion of it, ending month, day, year fields. If a user enters nothing no problem, but if those form fields are entered I need them validated. They have to be in the correct format -MM-DD date format and that value

[PHP] What's wrong with this code?

2010-06-05 Thread David Mehler
Hello, I've got a while loop outputting values from a database. Briefly it looks like this: while($row = mysql_fetch_array($result3)) { echo tr; echo td . $row['name'] . /td; echo td . $row['type'] . /td; echo td . $row['startdate'] . /td; if (!empty($row['EndDate'])) { echo td .

Re: [PHP] What's wrong with this code?

2010-06-05 Thread David Mehler
this exit() as the else for that if statement? Try deleting just the else {}. JAT Karl Sent from losPhone On Jun 5, 2010, at 6:54 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a while loop outputting values from a database. Briefly it looks like this: while($row

Re: [PHP] What's wrong with this code?

2010-06-05 Thread David Mehler
'] . /td; } On Jun 5, 2010, at 5:43 PM, David Mehler wrote: Hi, Thanks. I took out the entire else section including the exit call, it now all processes, however $row['enddate'] is not displayed on the two records where it is set. Thanks. Dave. On 6/5/10, Karl DeSaulniers k

[PHP] Inserting, storing, outputting dates and selections

2010-06-02 Thread David Mehler
Hello, I've got two questions which are probably fairly simple, my issue is i'm staring at this so long it's blurring together. I'm working on a form to insert data in to a mysql database. I've got a startdate and and enddate field in the database both of type DATE, i'm needing this as i'm

Re: [PHP] displaying database output in a table

2010-05-27 Thread David Mehler
:27 PM, David Mehler wrote: Hello, I'm trying to display mysql database output in a formatted table. My problem is i'm getting a blank screen with no errors. I've got debugging on, and have run the cli php on this file which produces no errors either, but neither does it give me any output. My

Re: [PHP] securing a custom app

2010-05-23 Thread David Mehler
Hello everyone, Thanks. I'm looking in to the ssl, I would like to use it, and it does seem much less work than the alternative. Thanks. Dave. On 5/23/10, Adam Richardson simples...@gmail.com wrote: On Sun, May 23, 2010 at 12:40 AM, David Mehler dave.meh...@gmail.comwrote: Hello, I've got

[PHP] securing a custom app

2010-05-22 Thread David Mehler
Hello, I've got a custom app that interacts with a database. I want to use something stronger than .htaccess to protect it and ssl is not available as this is a shared host. There will be several user's accessing this app and updating the database through it. What i was thinking was giving each a

[PHP] php photo galery

2010-05-18 Thread David Mehler
Hello, I've googled for this and tried some downloads but not finding what i'm looking for. A site requirement is to have a photo gallery. These user's are not very technical so i thought about getting a galery with the ability to upload photos via a browser, I would also like thumb nails, and the

[PHP] opening a link in a new window

2010-05-13 Thread David Mehler
Hello, I want to open an external link in a new window, i know i can do this with xhtml, but only with the transitional dtd, which i'm not using. I was wondering if php could pull this off? Thanks. Dave. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] dynamically generating and retrieving page data using flat files

2010-05-08 Thread David Mehler
Hello, I've got a project that i have to reference information stored on one page from another. This page I won't be visiting first, and at the moment i'd prefer to use flat php files, but should that prove to hard i'll transition to a mysql database. I'm looking for simplicity and

[PHP] protecting pages with a login system

2010-03-18 Thread David Mehler
Hi, I am wanting to protect some pages by requiring a user to log in to access them. I'd prefer this be as simple as possible, and without requiring a database. So for example when a user goes to www.domain.com/example.php they'll get a page prompting for their log in credentials, and only after

[PHP] php string syntax question with html

2010-03-10 Thread David Mehler
Hello, I've got what is probably a very simple question, probably something having to do with quotes single vs. double, but the answer is frustrating elusive, I keep getting a syntax error. I'm trying to customize a wordpress theme a friend sent me. We're both using apache as web server and php5,

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread David Mehler
Hello Everyone, Thank you for the various positions and suggestions. I'm going for either cookies or sessions, your examples have given me much to check. For this situation I should probably have mentioned I need to keep this as simple as possible, so features like a user login

[PHP] php selecting multiple stylesheets

2010-02-07 Thread David Mehler
Hello, I'm trying to set up a web site. This site has multiple stylesheets, one default stylesheet that should be used if the other is not chosen. The second is a high contrast stylesheet and can be selected by user's who need it. I'm also thinking of adding two more for smaller and larger font