Re: [PHP] New to PHP question

2009-01-28 Thread Ernie Kemp
Is there any advantage to using CSS over table and would it be idea to go to 
past website and change them.

/Ernie
- Original Message - 
From: "Stephen" 

Newsgroups: php.general
To: "Paul M Foster" 
Cc: 
Sent: Wednesday, January 28, 2009 2:40 PM
Subject: Re: [PHP] New to PHP question



Paul M Foster wrote:

If you want exact layout (columns
lined up, etc.), the simplest solution is to use HTML tables.




The horror.

Do not use tables for layout.

Use CSS.

Especially now that Microsoft, just this week, is sending out IE 8 which 
seems to be fully CCS standards compliant.


Stephen




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Payment question in Canada

2009-01-30 Thread Ernie Kemp
 

My question is one of pay; hope this is the correct forum.

 

A couple of people have asked me to write some PHP code for their website
backend.

 

I need the money from this but I don't know what to charge them.  I think in
total the work will be about 8-10 hours.

 

Please indicate what hourly fee I should charge them as don't wish to
overcharge them nor under value my services.

 

If I have the wrong list, let me know which list to go to.

 

Thanks in advance,

 

 

Thanks,

Ernie   

 

 

...man will occasionally stumble over the truth, but usually manages to pick
himself up, walk over or around it, and carry on.
 
Winston S. Churchill 

 

 

 

 



RE: [PHP] Payment question in Canada

2009-01-31 Thread Ernie Kemp
Thanks for your replies.

Very useful...
/Ernie


-Original Message-
From: farn...@googlemail.com [mailto:farn...@googlemail.com] On Behalf Of 
Edmund Hertle
Sent: January-30-09 4:47 PM
To: Bastien Koert
Cc: Ernie Kemp; php-general@lists.php.net
Subject: Re: [PHP] Payment question in Canada

2009/1/30 Bastien Koert 

> On Fri, Jan 30, 2009 at 2:11 PM, Ernie Kemp 
> wrote:
>
> >   My question is one of pay; hope this is the correct forum.
> >
> >
> >
> > A couple of people have asked me to write some PHP code for their website
> > backend.
> >
> >
> >
> > I need the money from this but I don't know what to charge them.  I think
> > in total the work will be about 8-10 hours.
> >
> >
> >
> > Please indicate what hourly fee I should charge them as don't wish to
> > overcharge them nor under value my services.
> >
> >
> >
> > If I have the wrong list, let me know which list to go to.
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> >
> >
> > Thanks,
> >
> > Ernie
> >
> >
> >
> >
> >
> > ...man will occasionally stumble over the truth, but usually manages to
> > pick himself up, walk over or around it, and carry on.
> >
> >
> >   Winston S. Churchill* *
> >
> >
> >
> >
> >
> >
> >
> >
> >
> I charge anywhere from $50-$75/hr depending on the project and exactly what
> the client wants
>
>
> --
>
> Bastien


Read this discussion. I think this will help you:
http://marc.info/?t=12329898971&r=1&w=2

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.16/1925 - Release Date: 01/30/09 
07:37:00


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Web Development work

2009-02-25 Thread Ernie Kemp
 

I really need your insight.

I'm a software developer who is wishing to do Web Development.

 

I love to program and I'm learning more about Web Design but my main skills
are in programming.

 

How do you get work as a Web Developer?

 

One could apply for a web developer job at a Web company but I wish to be on
my own. 

How are the freelancer finding work and where?

 

I have had my head buried in code too long to know where to find my new
cheese.

 

Any help would be appreciation. 

 

Thanks,

Ernie Kemp   

 

 

...man will occasionally stumble over the truth, but usually manages to pick
himself up, walk over or around it, and carry on.
 
Winston S. Churchill 

 

 

 

 



RE: [PHP] Web Development work

2009-02-25 Thread Ernie Kemp
Thanks for the info.

It seems to me that there must to other places a freelance Web Developer
fines work.

How do you find work in PHP Web programming? 
Work a company, through this site and from God.

I wish to know more than handing out a business card.

Thanks in advance.
./Ernie

-Original Message-
From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf
Of 9el
Sent: February-25-09 12:23 PM
To: Ernie Kemp
Cc: php-general@lists.php.net
Subject: Re: [PHP] Web Development work

I guess you are interested about php.

the freelancers work at www.scriptlance.com www.elance.com www.odesk.com
www.joomlalancer.com www.getacoder.com www.getafreelancer.com and many more.

I am a Web Developer at
https://www.scriptlance.com/cgi-bin/freelancers/feedback.cgi?p=lenin9el with
this id

To be a web developer you dont need to be design oriented. You can stick to
programming skills as well.

Regards

Lenin

---
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
--


On Wed, Feb 25, 2009 at 11:16 PM, Ernie Kemp wrote:

>   I really need your insight.
>
> I'm a software developer who is wishing to do Web Development.
>
>
>
> I love to program and I'm learning more about Web Design but my main
skills
> are in programming.
>
>
>
> How do you get work as a Web Developer?
>
>
>
> One could apply for a web developer job at a Web company but I wish to be
> on my own.
>
> How are the freelancer finding work and where?
>
>
>
> I have had my head buried in code too long to know where to find my new
>  cheese.
>
>
>
> Any help would be appreciation.
>
>
>
> Thanks,
>
> Ernie Kemp
>
>
>
>
>
> ...man will occasionally stumble over the truth, but usually manages to
> pick himself up, walk over or around it, and carry on.
>
>
>   Winston S. Churchill* *
>
>
>
>
>
>
>
>
>

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.3/1971 - Release Date: 02/25/09
06:40:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Web Development work

2009-02-26 Thread Ernie Kemp
Thanks for everyone's input!

I will take your words to heart.

/Ernie


-Original Message-
From: Bob McConnell [mailto:r...@cbord.com] 
Sent: February-26-09 9:15 AM
To: php-general@lists.php.net
Subject: RE: [PHP] Web Development work

Ooops, I forgot one.

0. Invest some time studying the top 25 errors list from either SANS
<http://www.sans.org/top25errors/> or CWE <http://cwe.mitre.org/top25/>.
Make sure you don't have _any_ of them in your code. (This list includes
and extends the OWASP guidelines
<http://www.owasp.org/index.php/Main_Page>.)

Bob McConnell

-Original Message-
From: Bob McConnell 
Sent: Thursday, February 26, 2009 8:58 AM
To: php-general@lists.php.net
Subject: RE: [PHP] Web Development work

From: Ernie Kemp
> 
> It seems to me that there must to other places a freelance Web
Developer
> fines work.
> 
> How do you find work in PHP Web programming? 
> Work a company, through this site and from God.
> 
> I wish to know more than handing out a business card.

1. Create a personal/business page on a local server. That page serves
as an advertisement and a sample of what you can do. Include a data
entry form for prospects to request your services and make sure it's not
susceptible to HTML or SQL injection.

2. Check with any local ISP or web server providers. See if they have a
referral service or help wanted section for customers that want help
updating or creating pages. While you're talking to them, find out what
services they offer and what tools are available on their servers. Make
sure you know how to use them.

3. Talk to the folks at Kinko's, Staples, etc. to see if they get
requests for help with web pages. Possibly they can pass out your cards
for you.

In my case there were two events that directed me into web development.
First, about 15 years ago I helped two friends set up a web site with a
specific purpose. It was all Perl, CGI and flat files at the time, but
it was useful experience. The effort died after three years because we
couldn't figure out how to make it pay for itself.

Second, after 20 years of designing embedded communications devices and
programming credit card terminals, my employer decreed all of those
devices to be legacy. But they had started moving some of those same
services over to the web. So I became a web developer. I am now doing
OJT for XHTML, CSS, Postgres, PHP, PCI DSS, Apache and RedHat Linux; all
at the same time. I have done three releases of a product that was
already online, but still have a long way to go. I figure another two
years to complete my apprenticeship.

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.3/1971 - Release Date: 02/26/09
07:03:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache question

2009-03-20 Thread Ernie Kemp
 

Sometime when I run the program http://localhost/DigitalBiz4U/index.php in a
browser this message come up and the page is not displayed.

 



"Apache HTTP Server stopped working and was closed" message on screen.

 

Apache version: Apache2.2.11

PHP version: 5.2.8

OS:  Vista

IIS is turned off on system.

 

I have tried reloading to a different version of Apache and PHP with no
success.

 

Sample of error log.

[Fri Mar 20 17:10:04 2009] [notice] Parent: child process exited with status
255 -- Restarting.

[Fri Mar 20 17:10:05 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8
configured -- resuming normal operations

[Fri Mar 20 17:10:05 2009] [notice] Server built: Dec 10 2008 00:10:06

[Fri Mar 20 17:10:05 2009] [notice] Parent: Created child process 4924

[Fri Mar 20 17:10:05 2009] [notice] Child 4924: Child process is running

[Fri Mar 20 17:10:05 2009] [notice] Child 4924: Acquired the start mutex.

[Fri Mar 20 17:10:05 2009] [notice] Child 4924: Starting 64 worker threads.

[Fri Mar 20 17:10:05 2009] [notice] Child 4924: Starting thread to listen on
port 80.

 

Tried to find solution on the web, no help.

Please point me in the right direction with this as this is becoming a pain
in the butt.

 

Thanks,

/Ernie



RE: [PHP] I'm new

2009-04-04 Thread Ernie Kemp
Good day,

I suggest going to an all in one package such as
"http://www.wampserver.com/";.
.../Ernie

-Original Message-
From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf
Of 9el
Sent: April-04-09 11:35 AM
To: abdulazeez alugo
Cc: rol...@gmail.com; php-general@lists.php.net
Subject: Re: [PHP] I'm new

>> Hello people, Is my first time that I try to do a web page with PHP and I
>> don't have Idea how I can do, but I read something tutorial and I can see
>> that is not difficult, I hope that I can do, what I need to work ??? with
>> PHP and MYSQL ??? Where I can to get this software because I go to
>> www.mysql.com and I download mysql for win 32 MSI and I install in my pc
but
>> I can't see nothing !!! only MYSQL 5.1 --> (mysql command line client)
>> (mysql manual) and (mysql server instance config wizard) and How I can
work
>> with mysql ?? and I download the php for www.php.net and only install me
in
>> my all programs PHP 5 and inside I just only see License and PHP.ini
>>
>> O download and installer APACHE 2.11
>>
>> 1st- download APACHE and install it
>> 2nd- download mysql and install it
>> 3rd- donwload PHP and install it
>>
>> It is correct this way ?? I read a tutorial with this ways, but when I
>> create a name.php page and put inside of apache server program
>> files-->apache-->htdocs if I try to open with firefox, it shows me the
>> source inside the page, and wioth internet explorer don't open me, it
only
>> show me a blank page,
>>
>> Anybody can help me please ?? I want to do web page and I have no idea.

Download a full suite of PHP+MySQL+Apache and other tools bundled
together from www.apachefriends.de

watch the marvelous video tutorials from  www.nettuts.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.285 / Virus Database: 270.11.41/2040 - Release Date: 04/03/09
17:54:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Access Denied

2009-07-28 Thread Ernie Kemp
 

Line in Program:

//connect to server and select database

//connect to server and select database

$mysqli = mysqli_connect("localhost", "jdoe", "doepass", "testdb");

 

//create and issue the query

$sql = "SELECT f_name, l_name FROM auth_users WHERE username =
'".$_POST["username"]."' AND password = PASSWORD('".$_POST["password"]."')";

$result = mysqli_query($mysqli, $sql) or die(mysqli_error($mysqli));

 

 

Record in mySQl database:
UsersPASSWORD

id f_name l_name email username password
 Edit
 Delete1 John Doe j...@doe.com jdoe
*0AAD744979343D58A7F17A50E514E6AD6533D04B

 

 

Message from Firefox Browser:

Warning: mysqli_connect() [function.mysqli-connect
 ]: (28000/1045):
Access denied for user 'jdoe'@'localhost' (using password: YES) in
C:\wamp\www\rogers\userlogin.php on line 9

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in
C:\wamp\www\rogers\userlogin.php on line 13

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in
C:\wamp\www\rogers\userlogin.php on line 13

 

This one has got me.  

Please Help.

 

/Ernie



[PHP] Recall: Access Denied

2009-07-28 Thread Ernie Kemp
Ernie Kemp would like to recall the message, "Access Denied".

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Access Denied

2009-07-28 Thread Ernie Kemp
Please ignore.

 

Newbie error solved

Thanks

 

From: Ernie Kemp [mailto:ernie.k...@sympatico.ca] 
Sent: July-28-09 9:34 PM
To: php-general@lists.php.net
Subject: [PHP] Access Denied

 

Line in Program:

//connect to server and select database

//connect to server and select database

$mysqli = mysqli_connect("localhost", "jdoe", "doepass", "testdb");

 

//create and issue the query

$sql = "SELECT f_name, l_name FROM auth_users WHERE username =
'".$_POST["username"]."' AND password = PASSWORD('".$_POST["password"]."')";

$result = mysqli_query($mysqli, $sql) or die(mysqli_error($mysqli));

 

 

Record in mySQl database:
UsersPASSWORD

id f_name l_name email username password
<http://localhost/phpmyadmin/tbl_change.php?db=testDB&table=auth_users&prima
ry_key=+%60auth_users%60.%60id%60+%3D+1&sql_query=SELECT+%2A+FROM+%60auth_us
ers%60&goto=sql.php&token=2e38a21d8832de9283320672387b55c7> Edit
<http://localhost/phpmyadmin/sql.php?db=testDB&table=auth_users&sql_query=DE
LETE+FROM+%60testDB%60.%60auth_users%60+WHERE+%60auth_users%60.%60id%60+%3D+
1+LIMIT+1&zero_rows=The+row+has+been+deleted&goto=sql.php%3Fdb%3DtestDB%26ta
ble%3Dauth_users%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560auth_users%2560%
26zero_rows%3DThe%2Brow%2Bhas%2Bbeen%2Bdeleted%26goto%3Dtbl_structure.php%26
token%3D2e38a21d8832de9283320672387b55c7&token=2e38a21d8832de9283320672387b5
5c7> Delete1 John Doe j...@doe.com jdoe
*0AAD744979343D58A7F17A50E514E6AD6533D04B

 

 

Message from Firefox Browser:

Warning: mysqli_connect() [function.mysqli-connect
<http://localhost/AllInOne/25/function.mysqli-connect> ]: (28000/1045):
Access denied for user 'jdoe'@'localhost' (using password: YES) in
C:\wamp\www\rogers\userlogin.php on line 9

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in
C:\wamp\www\rogers\userlogin.php on line 13

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in
C:\wamp\www\rogers\userlogin.php on line 13

 

This one has got me.  

Please Help.

 

/Ernie



[PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
 

 

 

Contact Us 

 

 



 



The above is just snippet of the code but even this simple example throws
the Header Warning / Error.

 

Warning: Cannot modify header information - headers already sent by (output
started at /home/content/g/t/a /html/yourestate/advertise.php:6)
in/home/content/g/t/a /html/yourestate/advertise.php on line 6

 

The anwser may be simple but I have looked a blanks or spaces around the
 with no success.

Ready need your help.

 

Thanks,

Ernie Kemp   

Phone: 416 577 5565

Email:   ek...@digitalbiz4u.com

 

...man will occasionally stumble over the truth, but usually manages to pick
himself up, walk over or around it, and carry on.
 
Winston S. Churchill 

 

 

 

 



RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
Thanks for your reply Andrew.
I think you can add the "Header" in your body.

The code working on my local system.

Thanks,
.../Ernie

-Original Message-
From: Andrew Ballard [mailto:aball...@gmail.com] 
Sent: September-18-09 12:44 PM
To: Ernie Kemp
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Header issue

On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp  wrote:
>
> 
>
> 
>
> Contact Us
>
> 
>
> 
>
> 
>
> 
>
> 
>
> The above is just snippet of the code but even this simple example throws the 
> Header Warning / Error.
>
>
>
> Warning: Cannot modify header information - headers already sent by (output 
> started at /home/content/g/t/a /html/yourestate/advertise.php:6) 
> in/home/content/g/t/a /html/yourestate/advertise.php on line 6
>
>
>
> The anwser may be simple but I have looked at blanks or spaces around the 
>  with no success.
>
> Ready need your help.
>
>
>
> Thanks,
>
> Ernie Kemp
>
> Phone: 416 577 5565
>
> Email:   ek...@digitalbiz4u.com

It's all that HTML above and before 

You can't send ANY content to the client before sending headers.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
I think you may have something there Ben.

This code is in my php.ini file. This was 'on' by default.

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files
by
; setting this directive to On.  If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On',
as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = On

I will comment it out and try on my local system again.

Thanks,
/Ernie

+++=

-Original Message-
From: Ben Dunlap [mailto:bdun...@agentintellect.com] 
Sent: September-18-09 1:41 PM
To: Jim Lucas
Cc: Ernie Kemp; php-general@lists.php.net
Subject: Re: [PHP] PHP Header issue

> if ... you have
> output_buffering option enabled in the php configuration.

Which is probably the case on the OP's local machine, and would
explain why the code doesn't fail for him there.

Ben


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
The fundamental idea was to fill in a contact forum , submit it and then go to 
an upload page. 

I need to go from one page to another page.

Please point in the correct direction on this.

Thanks,
/Ernie
+++
-Original Message-
From: HallMarc Websites [mailto:m...@hallmarcwebsites.com] 
Sent: September-18-09 2:00 PM
To: 'Jim Lucas'; 'Ernie Kemp'
Cc: php-general@lists.php.net
Subject: RE: [PHP] PHP Header issue



> -Original Message-
> From: Jim Lucas [mailto:li...@cmsws.com]
> Sent: Friday, September 18, 2009 1:33 PM
> To: Ernie Kemp
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] PHP Header issue
> 
> Jim Lucas wrote:
> > Ernie Kemp wrote:
> >>
> >>
> >> 
> >>
> >> 
> >>
> >> Contact Us
> >>
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> The above is just snippet of the code but even this simple example
> throws
> >> the Header Warning / Error.
> >>
> >> Warning: Cannot modify header information - headers already sent by
> (output
> >> started at /home/content/g/t/a /html/yourestate/advertise.php:6)
> >> in/home/content/g/t/a /html/yourestate/advertise.php on line 6
> >>
> >
> > http://us2.php.net/manual/en/function.header.php
> >
> > From the manual page:
> >
> > Quote:
> > "Remember that header() must be called before any actual output is
> sent, either
> > by normal HTML tags, blank lines in a file, or from PHP. It is a very
> common
> > error to read code with include(), or require(), functions, or
> another file
> > access function, and have spaces or empty lines that are output
> before header()
> > is called. The same problem exists when using a single PHP/HTML
> file."
> >
> >> The anwser may be simple but I have looked a blanks or spaces around
> the
> >>  with no success.
> >>
> >> Ready need your help.
> >>
> >> Thanks,
> >>
> >> Ernie Kemp
> >>
> >> Phone: 416 577 5565
> >>
> >> Email:   ek...@digitalbiz4u.com
> >>
> >> ...man will occasionally stumble over the truth, but usually manages
> to pick
> >> himself up, walk over or around it, and carry on.
> >>
> >
> > Isn't that the truth!
> >
> >> Winston S. Churchill
> >
> >
> >
> 
> Just to point out to everybody, you can actually do this.  And most of
> you
> probably already know how.
> 
> You can use output buffering.  :)
> 
> if you use ob_start() anywhere in your code before this statement, or
> you have
> output_buffering option enabled in the php configuration.
> 
> Now, with that said, using output buffering to "fix" this "problem" is
> the wrong
> solution.  But it does work.
> 
> Jim
 


I thought of that too and I ran a test on my server just to make sure - guess 
what? it doesn't work either and I am assuming that is because I have it turned 
off in my php.ini I prefer not to use the ob because I do a lot of development 
on my server and don't want to wonder if a PHP error got lost in the buffer 
because the PHP error handling nixed the script before the error was sent to 
the screen.

The question I have is do you need this redirect to sit where it is? It would 
be so much easier to just write this page correctly.


Thank you,
Marc Hall
HallMarc Websites
610.446.3346
 

__ Information from ESET Smart Security, version of virus signature 
database 4438 (20090918) __

The message was checked by ESET Smart Security.

http://www.eset.com
 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
Thanks everyone.

I was getting away with put the "header" anywhere I wished because the " 
output_buffering" was set to "On" in the php.ini file.
I have commented this out and now I get the Warning/Error on my local system.


I will look into getting from one page to the next page after a Submit
Thanks,
/Ernie
+++==

-----Original Message-
From: Ernie Kemp [mailto:ernie.k...@sympatico.ca] 
Sent: September-18-09 2:27 PM
To: 'HallMarc Websites'; 'Jim Lucas'
Cc: php-general@lists.php.net
Subject: RE: [PHP] PHP Header issue

The fundamental idea was to fill in a contact forum , submit it and then go to 
an upload page. 

I need to go from one page to another page.

Please point in the correct direction on this.

Thanks,
/Ernie
+++
-Original Message-
From: HallMarc Websites [mailto:m...@hallmarcwebsites.com] 
Sent: September-18-09 2:00 PM
To: 'Jim Lucas'; 'Ernie Kemp'
Cc: php-general@lists.php.net
Subject: RE: [PHP] PHP Header issue



> -Original Message-
> From: Jim Lucas [mailto:li...@cmsws.com]
> Sent: Friday, September 18, 2009 1:33 PM
> To: Ernie Kemp
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] PHP Header issue
> 
> Jim Lucas wrote:
> > Ernie Kemp wrote:
> >>
> >>
> >> 
> >>
> >> 
> >>
> >> Contact Us
> >>
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> The above is just snippet of the code but even this simple example
> throws
> >> the Header Warning / Error.
> >>
> >> Warning: Cannot modify header information - headers already sent by
> (output
> >> started at /home/content/g/t/a /html/yourestate/advertise.php:6)
> >> in/home/content/g/t/a /html/yourestate/advertise.php on line 6
> >>
> >
> > http://us2.php.net/manual/en/function.header.php
> >
> > From the manual page:
> >
> > Quote:
> > "Remember that header() must be called before any actual output is
> sent, either
> > by normal HTML tags, blank lines in a file, or from PHP. It is a very
> common
> > error to read code with include(), or require(), functions, or
> another file
> > access function, and have spaces or empty lines that are output
> before header()
> > is called. The same problem exists when using a single PHP/HTML
> file."
> >
> >> The anwser may be simple but I have looked a blanks or spaces around
> the
> >>  with no success.
> >>
> >> Ready need your help.
> >>
> >> Thanks,
> >>
> >> Ernie Kemp
> >>
> >> Phone: 416 577 5565
> >>
> >> Email:   ek...@digitalbiz4u.com
> >>
> >> ...man will occasionally stumble over the truth, but usually manages
> to pick
> >> himself up, walk over or around it, and carry on.
> >>
> >
> > Isn't that the truth!
> >
> >> Winston S. Churchill
> >
> >
> >
> 
> Just to point out to everybody, you can actually do this.  And most of
> you
> probably already know how.
> 
> You can use output buffering.  :)
> 
> if you use ob_start() anywhere in your code before this statement, or
> you have
> output_buffering option enabled in the php configuration.
> 
> Now, with that said, using output buffering to "fix" this "problem" is
> the wrong
> solution.  But it does work.
> 
> Jim
 


I thought of that too and I ran a test on my server just to make sure - guess 
what? it doesn't work either and I am assuming that is because I have it turned 
off in my php.ini I prefer not to use the ob because I do a lot of development 
on my server and don't want to wonder if a PHP error got lost in the buffer 
because the PHP error handling nixed the script before the error was sent to 
the screen.

The question I have is do you need this redirect to sit where it is? It would 
be so much easier to just write this page correctly.


Thank you,
Marc Hall
HallMarc Websites
610.446.3346
 

__ Information from ESET Smart Security, version of virus signature 
database 4438 (20090918) __

The message was checked by ESET Smart Security.

http://www.eset.com
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Checkbox in PHP form

2009-11-08 Thread Ernie Kemp
 

Need some help here with checkboxes in an html form.

 

My issue is I have a form that needs to be viewed with checkboxes filled in
depending on the values in the table.

 

I tried:

 value="PFDs"
name=f_sequipment1>PFDs

but the checkbox field is always checked.

 

I thought of JavaScript also but it would have to be a "if $row[33] then run
a JavaScript function" .  This is not working for me neither.

 

Sorry if this seems trivial but I need your help.

 

Thanks in advance. 

 

 

 

 



[PHP] Form validation issue

2009-12-20 Thread Ernie Kemp
 

Good Day,

 

I need help in in validating a form.

The for is valdated be a javascript frist then if all the
fields are filled in its valaded be PHP.

 

The Form starts with:



 

The "formValidator()" goes to a javascript and does display the missing
information in this case BUT then the page gets reloaded and clears all the
javascript error messages and does the PHP validation.

 

The PHP only runs if the fields are set by testing using 'isset".

 

Without puting on numeric lines of go can you suggest things I must have
overlooked. Silly request but there must be something I'm overlooking.I
have simular code on other programs but this one is casuing me trouble.

 

Thanks every so much..

 

../Ernie

 

 

 

 

 



[PHP] Upload file on IE8

2010-01-25 Thread Ernie Kemp
 

Good Day,

 

I'm having an issue with IE8, when I go to load a file the
program is not filling the $_FILES['user_file']['type']  .

  When I display  "echo  "Start".$_FILES['pix']['type']."End";"
in IE8 I get "StartEnd" with nothing in between.  I expected "image/pjpeg".
 
On FireFox I get "image/jpeg".
 
Any suggestions?
Thanks,
/Ernie
 

 

 

 

 

 



RE: [PHP] Upload file on IE8

2010-01-25 Thread Ernie Kemp
 

 

 

 

From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: January-25-10 5:53 PM
To: Ernie Kemp
Cc: 'PHP General List'
Subject: Re: [PHP] Upload file on IE8

 

On Mon, 2010-01-25 at 17:41 -0500, Ernie Kemp wrote:



 

Good Day,

 

I’m having an issue with IE8, when I go to load a file the 
program is not filling the $_FILES['user_file']['type']  .

 
  When I display  “echo  "Start".$_FILES['pix']['type']."End";”  in 
IE8 I get “StartEnd” with nothing in between.  I expected “image/pjpeg".
 
On FireFox I get “image/jpeg".
 
Any suggestions?
Thanks,
/Ernie
 

 

What do the other $_FILES fields say? Are they populated correctly?

I wouldn't rely on anything sent from the browser. IE is known to send the mime 
type that matches the extension, not the contents of the file, and for .jpg 
images it sends a different mime to every other browser anyway, so it's pretty 
unreliable. 


Thanks,
Ash
http://www.ashleysheridan.co.uk





With IE8,

  Using $_FILES the array results for  ‘name’ has the name of the file but 
‘type’, ‘tmp_name’ and ‘size’ are blanks.

 I tried enabling the “file path location” in IE8 option but the results 
are the same for $_FILES. 

 


   Firefox works displays all the values in the $_FILES array.

There must be a better way. Suggestions?

Thanks,

/Ernie



[PHP] PHP & MYSQL sorting

2010-04-11 Thread Ernie Kemp
 

Simple idea I thought.

 

I need a webpage that displays a drop down list of number with a checkbox on
the side that when checked will select the database again only in descending
order.

Small database with maybe 100  records.

 

The user can click the submit button when they have located the correct
number.

 

The trick is to make the checkbox trigger a new Select statement.

 

Thanks.

 

 

 

 

 

 

 



RE: [PHP] PHP & MYSQL sorting

2010-04-14 Thread Ernie Kemp
Thanks for your thoughts. Ajax is the way to go...


Thanks,
.../Ernie

-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com] 
Sent: April-12-10 10:18 AM
To: Ernie Kemp; 'PHP General List'
Subject: Re: [PHP] PHP & MYSQL sorting

At 8:16 PM -0400 4/11/10, Ernie Kemp wrote:
>Simple idea I thought.
>
>I need a webpage that displays a drop down list of number with a 
>checkbox on the side that when checked will select the database 
>again only in descending order.
>Small database with maybe 100  records.
>
>The user can click the submit button when they have located the 
>correct number.
>
>The trick is to make the checkbox trigger a new Select statement.
>
>Thanks.

Ernie:





The javascript getData() will have to launch a php script to get the 
data again OR you can simply sort the data yourself using sort().

Here's another idea using jQuery:

http://webbytedd.com/jquery/sortable-table/

Cheers,

tedd


-- 
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.801 / Virus Database: 271.1.1/2806 - Release Date: 04/12/10
02:32:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Adding reCAPTCHA to form

2010-04-16 Thread Ernie Kemp
 

Need help with reCAPTCHA. Never installed it before.

When Submit is clicked the "quoterequest-redirect.php" is run but I think it
would be better to test the reCAPTCHA before the "quoterequest-redirect.php"
program has been run.

The reCPATCHA show correctly but I need some help here.

 

Thanks very much again,

/Ernie

***





http://recaptcha.net/api/getkey

$publickey = "6LeGhwwAADNm2bEIkxzNHXIjpAlGYJ5NCYju";

$privatekey = "6LeGhwwAAFbi37aANuHliCnZ-_jg3uN8N7oh";



# the response from reCAPTCHA

$resp = null;

# the error code from reCAPTCHA, if any

$error = null;



# was there a reCAPTCHA response?

if ($_POST["submit"]) {

$response = recaptcha_check_answer($privatekey,

$_SERVER["REMOTE_ADDR"],

$_POST["recaptcha_challenge_field"],

$_POST["recaptcha_response_field"]);

 

if ($response->is_valid) {

echo "Yes, that was correct!";

} else {

# set the error code so that we can display it

echo "Eh, That wasn't right. Try Again.";

 

}

}

?>





   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



[PHP] Adding reCAPTCHA to form using PHP

2010-04-19 Thread Ernie Kemp
Need help with reCAPTCHA. Never installed it before.

When Submit is clicked the "quoterequest-redirect.php" is run but I think it
would be better to test the reCAPTCHA before the "quoterequest-redirect.php"
program has been run.

I check the CAPTCHA in "quoterequest-redirect.php", it displays a invalid
message if invalid but the user has to tab back to fill in the CAPTCHA
again.

 

The reCAPTCHA show correctly but I need some help/hints/tips here.

 

Thanks very much again,

/Ernie

***





http://recaptcha.net/api/getkey

$publickey = "6LeGhwwAADNm2bEIkxzNHXIjpAlGYJ5NCYju";

$privatekey = "6LeGhwwAAFbi37aANuHliCnZ-_jg3uN8N7oh";



# the response from reCAPTCHA

$resp = null;

# the error code from reCAPTCHA, if any

$error = null;



# was there a reCAPTCHA response?

if ($_POST["submit"]) {

$response = recaptcha_check_answer($privatekey,

$_SERVER["REMOTE_ADDR"],

$_POST["recaptcha_challenge_field"],

$_POST["recaptcha_response_field"]);

 

if ($response->is_valid) {

echo "Yes, that was correct!";

} else {

# set the error code so that we can display it

echo "Eh, That wasn't right. Try Again.";

 

}

}

?>





   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2814 - Release Date: 04/16/10
02:31:00



RE: [PHP] Adding reCAPTCHA to form using PHP

2010-04-19 Thread Ernie Kemp
Thanks for your reply Tedd.
Maybe my reCAPTCHA is more complicated than it needs to be but when you
click the "Submit" button the form triggers the
action="quoterequest-redirect.php" which goes to another program without
checking the CAPTCHA. I test in the called program and display a message if
it's invalid. The user then clicks back to form page to try again.
It would be better on submit the program would display an error message and
go nowhere.

The code works by itself but in a form with an action, not so good.

Not such how to do this 




http://recaptcha.net/api/getkey
$publickey = "6LeGhwwAADNm2bEIkxzNHXIjpAlGYJ5NCYju";
$privatekey = "6LeGhwwAAFbi37aANuHliCnZ-_jg3uN8N7oh";

# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;

# was there a reCAPTCHA response?
if ($_POST["submit"]) {
$response = recaptcha_check_answer($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
 
if ($response->is_valid) {
echo "Yes, that was correct!";
} else {
# set the error code so that we can display it
echo "Eh, That wasn't right. Try Again.";
}
}
?>

    

   




-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com] 
Sent: April-19-10 12:51 PM
To: Ernie Kemp; 'PHP General List'
Subject: Re: [PHP] Adding reCAPTCHA to form using PHP

At 12:21 PM -0400 4/19/10, Ernie Kemp wrote:
>Need help with reCAPTCHA. Never installed it before.
>
>When Submit is clicked the "quoterequest-redirect.php" is run but I think
it
>would be better to test the reCAPTCHA before the
"quoterequest-redirect.php"
>program has been run.
>
>I check the CAPTCHA in "quoterequest-redirect.php", it displays a invalid
>message if invalid but the user has to tab back to fill in the CAPTCHA
>again.
>
>
>
>The reCAPTCHA show correctly but I need some help/hints/tips here.

Ernie :

There's nothing complicated here. You don't need to get public and 
private keys or other such complications. A CAPTCHA is as simple as:

What is 2 + 2?
What is the color of an orange?

Answer correctly and you pass. If not, then you don't.

The purpose of a CAPTCHA is simply to keep bots out and allow humans 
to pass. If you base your CAPTCHA on a strange graphic, then you keep 
visually impaired users out. That's not good.

Here's an assortment of CAPTCHA's, but I think the Question CAPTCHA 
is the best.

http://webbytedd.com/aa/assorted-captcha/


Cheers,

tedd
-- 
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.801 / Virus Database: 271.1.1/2819 - Release Date: 04/19/10
02:31:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Adding reCAPTCHA to form using PHP

2010-04-21 Thread Ernie Kemp
Hope I'm not flogging a dead horse but I'm trying to understand how to show
error message for reCAPTCHA on the same page as the form.

I need to go to action="quoterequest-redirect.php" page. The submit alway
goes to the action where I can check the reCAPTCHA'd enterd but it would be
nice to have the messsage appear on the same Login page.

Please remind me/give me a hint.

Thanks,
/Ernie
 

Thanks for your reply Tedd.
Maybe my reCAPTCHA is more complicated than it needs to be but when you
click the "Submit" button the form triggers the
action="quoterequest-redirect.php" which goes to another program without
checking the CAPTCHA. I test in the called program and display a message if
it's invalid. The user then clicks back to form page to try again.
It would be better on submit the program would display an error message and
go nowhere.

The code works by itself but in a form with an action, not so good.

Not such how to do this 




http://recaptcha.net/api/getkey
$publickey = "6LeGhwwAADNm2bEIkxzNHXIjpAlGYJ5NCYju";
$privatekey = "6LeGhwwAAFbi37aANuHliCnZ-_jg3uN8N7oh";

# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;

# was there a reCAPTCHA response?
if ($_POST["submit"]) {
$response = recaptcha_check_answer($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
 
if ($response->is_valid) {
echo "Yes, that was correct!";
} else {
# set the error code so that we can display it
echo "Eh, That wasn't right. Try Again.";
    }
    }
?>



   




-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com] 
Sent: April-19-10 12:51 PM
To: Ernie Kemp; 'PHP General List'
Subject: Re: [PHP] Adding reCAPTCHA to form using PHP

At 12:21 PM -0400 4/19/10, Ernie Kemp wrote:
>Need help with reCAPTCHA. Never installed it before.
>
>When Submit is clicked the "quoterequest-redirect.php" is run but I think
it
>would be better to test the reCAPTCHA before the
"quoterequest-redirect.php"
>program has been run.
>
>I check the CAPTCHA in "quoterequest-redirect.php", it displays a invalid
>message if invalid but the user has to tab back to fill in the CAPTCHA
>again.
>
>
>
>The reCAPTCHA show correctly but I need some help/hints/tips here.

Ernie :

There's nothing complicated here. You don't need to get public and 
private keys or other such complications. A CAPTCHA is as simple as:

What is 2 + 2?
What is the color of an orange?

Answer correctly and you pass. If not, then you don't.

The purpose of a CAPTCHA is simply to keep bots out and allow humans 
to pass. If you base your CAPTCHA on a strange graphic, then you keep 
visually impaired users out. That's not good.

Here's an assortment of CAPTCHA's, but I think the Question CAPTCHA 
is the best.

http://webbytedd.com/aa/assorted-captcha/


Cheers,

tedd
-- 
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.801 / Virus Database: 271.1.1/2819 - Release Date: 04/19/10
02:31:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.801 / Virus Database: 271.1.1/2819 - Release Date: 04/19/10
02:31:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Content question

2010-05-19 Thread Ernie Kemp
 

This is not a direct PHP question but I will be using PHP in the website.

 

After a website has been created there will a need to changes say a product
or service page over time.

The client asking how he will be able to make changes to these pages.

Yes, I'm a newbie at this and the only way I can think of is to edit the
page in say a HTML editor.

 

Please comment how you might do it another way.

 

Thanks very much,

/Ernie

 

 

 

 

 



[PHP] Website content question

2010-06-21 Thread Ernie Kemp
 

This is not a direct PHP question but I will be using PHP in the website.

 

I go to the php list because the wordpress forum does not respond to my
questions and I know some of you have a lot of expertise in other areas than
PHP.

 

I wish to a my own pages to a theme.

I created pages on my PC and added the code at the top of the page for
wordpress to use the page for a template page.

I than FTP'd the file over to web hosting server template location.

Through  wordpress "administrator" I added my file called homepage.php.

 

I FTP'd my CSS, images, js and flash folders over to the template location.

Went to load the website
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.php
and all I got was the html code displayed.

 

I tried moving the folder around but same results.

Read some docs on this but it's not clear to me why this will not work.

 

Please help this is new to me and I need to get over this wall.

Thanks,

/Ernie

 

 

 

 

 

 



RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
So sorry about the link, in too much of a hurry.

My server site is http://digitalbiz4u.com/wordpress/ 
I used mailto:shreya...@gmail.com] 
Sent: June-21-10 8:59 AM
To: Ernie Kemp
Cc: PHP General List
Subject: Re: [PHP] Website content question

Ernie,

I am sure you know none of us could have accessed the link that you have
given there. Can you let us know what code you have written so that one of
us can guide you?

As a broad pitch, your php code has to be either in  or 

I would wait for your code and other to probe a little more.

Regards,
Shreyas

On Mon, Jun 21, 2010 at 5:11 PM, Ernie Kemp  wrote:

>   This is not a direct PHP question but I will be using PHP in the
> website.
>
>
>
> I go to the php list because the wordpress forum does not respond to my
> questions and I know some of you have a lot of expertise in other areas
than
> PHP.
>
>
>
> I wish to a my own pages to a theme.
>
> I created pages on my PC and added the code at the top of the page for
> wordpress to use the page for a template page.
>
> I than FTP'd the file over to web hosting server template location.
>
> Through  wordpress "administrator" I added my file called homepage.php.
>
>
>
> I FTP'd my CSS, images, js and flash folders over to the template
location.
>
> Went to load the website
>
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.phpan
d all I got was the html code displayed.
>
>
>
> I tried moving the folder around but same results.
>
> Read some docs on this but it's not clear to me why this will not work.
>
>
>
> Please help this is new to me and I need to get over this wall.
>
> Thanks,
>
> /Ernie
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
Regards,
Shreyas Agasthya

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/20/10
14:36:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
Just as a follow up I'm including a link to a test site that I wish to have
the wordpress to be able to change the content, but I'm unable to have
wordpress use my includes.
I must be putting them in the wrong places so need some help with this.

Thanks,
.../Ernie




-Original Message-
From: Shreyas Agasthya [mailto:shreya...@gmail.com] 
Sent: June-21-10 8:59 AM
To: Ernie Kemp
Cc: PHP General List
Subject: Re: [PHP] Website content question

Ernie,

I am sure you know none of us could have accessed the link that you have
given there. Can you let us know what code you have written so that one of
us can guide you?

As a broad pitch, your php code has to be either in  or 

I would wait for your code and other to probe a little more.

Regards,
Shreyas

On Mon, Jun 21, 2010 at 5:11 PM, Ernie Kemp  wrote:

>   This is not a direct PHP question but I will be using PHP in the
> website.
>
>
>
> I go to the php list because the wordpress forum does not respond to my
> questions and I know some of you have a lot of expertise in other areas
than
> PHP.
>
>
>
> I wish to a my own pages to a theme.
>
> I created pages on my PC and added the code at the top of the page for
> wordpress to use the page for a template page.
>
> I than FTP'd the file over to web hosting server template location.
>
> Through  wordpress "administrator" I added my file called homepage.php.
>
>
>
> I FTP'd my CSS, images, js and flash folders over to the template
location.
>
> Went to load the website
>
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.phpan
d all I got was the html code displayed.
>
>
>
> I tried moving the folder around but same results.
>
> Read some docs on this but it's not clear to me why this will not work.
>
>
>
> Please help this is new to me and I need to get over this wall.
>
> Thanks,
>
> /Ernie
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
Regards,
Shreyas Agasthya

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/20/10
14:36:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
Need to use the template http://www.digitalbiz4u.com/site_flash/ .

Thanks,

/Ernie

 

 

From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: June-21-10 10:09 AM
To: Ernie Kemp
Cc: 'Shreyas Agasthya'; 'PHP General List'
Subject: RE: [PHP] Website content question

 

On Mon, 2010-06-21 at 10:04 -0400, Ernie Kemp wrote: 

 
Just as a follow up I'm including a link to a test site that I wish to have
the wordpress to be able to change the content, but I'm unable to have
wordpress use my includes.
I must be putting them in the wrong places so need some help with this.
 
Thanks,
.../Ernie
 
 
 
 
-Original Message-
From: Shreyas Agasthya [mailto:shreya...@gmail.com] 
Sent: June-21-10 8:59 AM
To: Ernie Kemp
Cc: PHP General List
Subject: Re: [PHP] Website content question
 
Ernie,
 
I am sure you know none of us could have accessed the link that you have
given there. Can you let us know what code you have written so that one of
us can guide you?
 
As a broad pitch, your php code has to be either in  or 
 
I would wait for your code and other to probe a little more.
 
Regards,
Shreyas
 
On Mon, Jun 21, 2010 at 5:11 PM, Ernie Kemp  wrote:
 
>   This is not a direct PHP question but I will be using PHP in the
> website.
> 
> 
> 
> I go to the php list because the wordpress forum does not respond to my
> questions and I know some of you have a lot of expertise in other areas
than
> PHP.
> 
> 
> 
> I wish to a my own pages to a theme.
> 
> I created pages on my PC and added the code at the top of the page for
> wordpress to use the page for a template page.
> 
> I than FTP'd the file over to web hosting server template location.
> 
> Through  wordpress "administrator" I added my file called homepage.php.
> 
> 
> 
> I FTP'd my CSS, images, js and flash folders over to the template
location.
> 
> Went to load the website
> 
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.phpan
d all I got was the html code displayed.
> 
> 
> 
> I tried moving the folder around but same results.
> 
> Read some docs on this but it's not clear to me why this will not work.
> 
> 
> 
> Please help this is new to me and I need to get over this wall.
> 
> Thanks,
> 
> /Ernie
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
 
 
 
-- 
Regards,
Shreyas Agasthya
 
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/20/10
14:36:00
 
 


There are guides online to creating Wordpress templates. Have you tried editing 
an existing template first rather than create one from scratch? It's how I've 
always made them.


Thanks,
Ash
http://www.ashleysheridan.co.uk



 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/21/10 
02:36:00



RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
Resolved.  The paths are: wordpress-> flash

Ø  CSS

Ø  Js

Wordpress/mytheme -> your custom template files

 

Thanks,

/Ernie

 

 

From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: June-21-10 10:43 AM
To: Ernie Kemp
Cc: 'Shreyas Agasthya'; 'PHP General List'
Subject: RE: [PHP] Website content question

 

On Mon, 2010-06-21 at 10:40 -0400, Ernie Kemp wrote: 

 
Need to use the template http://www.digitalbiz4u.com/site_flash/ .
 
Thanks,
 
/Ernie
 
 
 
 
 
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: June-21-10 10:09 AM
To: Ernie Kemp
Cc: 'Shreyas Agasthya'; 'PHP General List'
Subject: RE: [PHP] Website content question
 
 
 
On Mon, 2010-06-21 at 10:04 -0400, Ernie Kemp wrote: 
 
 
Just as a follow up I'm including a link to a test site that I wish to have
the wordpress to be able to change the content, but I'm unable to have
wordpress use my includes.
I must be putting them in the wrong places so need some help with this.
 
Thanks,
.../Ernie
 
 
 
 
-Original Message-
From: Shreyas Agasthya [mailto:shreya...@gmail.com] 
Sent: June-21-10 8:59 AM
To: Ernie Kemp
Cc: PHP General List
Subject: Re: [PHP] Website content question
 
Ernie,
 
I am sure you know none of us could have accessed the link that you have
given there. Can you let us know what code you have written so that one of
us can guide you?
 
As a broad pitch, your php code has to be either in  or 
 
I would wait for your code and other to probe a little more.
 
Regards,
Shreyas
 
On Mon, Jun 21, 2010 at 5:11 PM, Ernie Kemp  wrote:
 
>   This is not a direct PHP question but I will be using PHP in the
> website.
> 
> 
> 
> I go to the php list because the wordpress forum does not respond to my
> questions and I know some of you have a lot of expertise in other areas
than
> PHP.
> 
> 
> 
> I wish to a my own pages to a theme.
> 
> I created pages on my PC and added the code at the top of the page for
> wordpress to use the page for a template page.
> 
> I than FTP'd the file over to web hosting server template location.
> 
> Through  wordpress "administrator" I added my file called homepage.php.
> 
> 
> 
> I FTP'd my CSS, images, js and flash folders over to the template
location.
> 
> Went to load the website
> 
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.phpan
d all I got was the html code displayed.
> 
> 
> 
> I tried moving the folder around but same results.
> 
> Read some docs on this but it's not clear to me why this will not work.
> 
> 
> 
> Please help this is new to me and I need to get over this wall.
> 
> Thanks,
> 
> /Ernie
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
 
 
 


You can still do that, just convert an existing template. You've still not 
shown us the code you're using, so we can't really help you in the way you want.


Thanks,
Ash
http://www.ashleysheridan.co.uk



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/21/10 
02:36:00



RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
I did put the PHP code. It kind of working.

 

From: ahlin.h...@gmail.com [mailto:ahlin.h...@gmail.com] On Behalf Of Hans Åhlin
Sent: June-21-10 9:43 PM
To: Ernie Kemp
Cc: PHP General List
Subject: Re: [PHP] Website content question

 

Did you include the necessary php code?


**
Hans Åhlin
  Tel: +46761488019
  icq: 275232967
  http://www.kronan-net.com/
  irc://irc.freenode.net:6667 - TheCoin
**



2010/6/21 Ernie Kemp 

Error! Filename not specified.

This is not a direct PHP question but I will be using PHP in the website.

 

I go to the php list because the wordpress forum does not respond to my 
questions and I know some of you have a lot of expertise in other areas than 
PHP.

 

I wish to a my own pages to a theme.

I created pages on my PC and added the code at the top of the page for 
wordpress to use the page for a template page.

I than FTP’d the file over to web hosting server template location.

Through  wordpress “administrator” I added my file called homepage.php.

 

I FTP’d my CSS, images, js and flash folders over to the template location.

Went to load the website 
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.php and 
all I got was the html code displayed.

 

I tried moving the folder around but same results.

Read some docs on this but it’s not clear to me why this will not work.

 

Please help this is new to me and I need to get over this wall.

Thanks,

/Ernie

 

 

 

 

 

 

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/21/10 
14:36:00



[PHP] Website content question CMS

2010-06-25 Thread Ernie Kemp
 

Need a some help from the group.

 

I'm adding some wordpress template programs to my site.

 

I added a contact page "contact.php" to wordpress on my site.

 

http://digitalbiz4u.com/wordpress/

 

When I click the "contact" button on the home page I get an 404 error.

http://digitalbiz4u.com/wordpress/contact.php .

 

The actionscript in the Flash is:

on (release) {

getURL("contact.php"); 

}

 

If someone could help point to what needs to be done here it would be
appreciated.

 Thanks,

.../Ernie

 

...man will occasionally stumble over the truth, but usually manages to pick
himself up, walk over or around it, and carry on.
 
Winston S. Churchill 

 

 

 

 



RE: [PHP] Website content question CMS

2010-06-25 Thread Ernie Kemp
That may be part of my problem.
I could put the "contact.php" program in the
http://digitalbiz4u.com/wordpress/ directory and the program will find it
but the CMS "Edit this entry" part gives me the error
"Fatal error: Call to undefined function have_posts() in
/home/ekemp/public_html/wordpress/contact.php on line 100"

Any other thoughts on where to direct the 
on (release) {
 getURL("contact.php"); 
 
}

Reading the docs but haven't found what I should use for the url.
Thanks,
.../Ernie





-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: June-25-10 2:03 PM
To: Ernie Kemp
Cc: 'PHP General List'
Subject: Re: [PHP] Website content question CMS

On Fri, 2010-06-25 at 14:00 -0400, Ernie Kemp wrote:

> 
> 
> Need a some help from the group.
> 
>  
> 
> I’m adding some wordpress template programs to my site.
> 
>  
> 
> I added a contact page “contact.php” to wordpress on my site.
> 
>  
> 
> http://digitalbiz4u.com/wordpress/
> 
>  
> 
> When I click the “contact” button on the home page I get an 404 error.
> 
> http://digitalbiz4u.com/wordpress/contact.php .
> 
>  
> 
> The actionscript in the Flash is:
> 
> on (release) {
> 
> getURL("contact.php"); 
> 
> }
> 
>  
> 
> If someone could help point to what needs to be done here it would be
> appreciated.
> 
>  Thanks,
> 
> .../Ernie
> 
>  
> 
> ...man will occasionally stumble over the truth, but usually manages
> to pick himself up, walk over or around it, and carry on.
> 
> Winston S. Churchill 
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 

It's because there is no contact.php file where the Wordpress install
expects it to be.

Thanks,
Ash
http://www.ashleysheridan.co.uk



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.830 / Virus Database: 271.1.1/2962 - Release Date: 06/25/10
02:35:00

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Website content question CMS

2010-06-25 Thread Ernie Kemp


-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: June-25-10 4:05 PM
To: Ernie Kemp
Cc: a...@ashleysheridan.co.uk; PHP General List
Subject: Re: [PHP] Website content question CMS

On Fri, Jun 25, 2010 at 15:38, Ernie Kemp  wrote:
> That may be part of my problem.
> I could put the "contact.php" program in the
> http://digitalbiz4u.com/wordpress/ directory and the program will find it
> but the CMS "Edit this entry" part gives me the error
> "Fatal error: Call to undefined function have_posts() in
> /home/ekemp/public_html/wordpress/contact.php on line 100"

Ernie, with all due respect, you need to understand that, though
WordPress is written in PHP, we're not here to support that.  Instead,
please check the official WordPress support options - all free, no
worries - at http://wordpress.org/support/.

If it becomes a PHP-specific question, then this would be the place to
ask.

-- 

UNADVERTISED DEDICATED SERVER SPECIALS
SAME-DAY SETUP
Just ask me what we're offering today!
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/


+
I understand Daniel.

I have tried thehttp://wordpress.org/support/ but I haven't
much of a response from them.

I know on the PHP list there are others that are using wordpress so
put out the call.

I'll abide by the list mandate and only make requests for PHP issue.
Thanks,
.../Ernie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.830 / Virus Database: 271.1.1/2962 - Release Date: 06/25/10
02:35:00


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Chinese words on a PHP web page

2010-11-04 Thread Ernie Kemp
 

I’m writing a program that allows the user to click the flag and the test will 
change to that language and display.

 

I’m trying to convert from English  to Chinese using characters such as “ 
歓迎” The browser interprets these into, in this case, Japanese but my code 
needs to display in Chinese.

 

The internet is giving all kinds of code to convert from English into the 
Chinese language.

 

I need to put in Unicode characters that the browser will make the final change 
into Chinese words.  I’m using define("CHARSET","UTF-8");

 

So the question is how does one enter Chinese Unicode??

 

 

Thanks,

/Ernie

 



[PHP] What is an information_id in directory

2011-10-29 Thread Ernie Kemp


2 - Make a new content area in Site Manager->Content Manager. It doesn't
matter what you put in your content area, you could just put "This is my new
content area" or "Hello World" if you so choose.

 

3 - Grab the information_id of the new content area you made. When you are
editing a content area that already exists, the information_id can be gotten
from the update page URL. 

 

I'm having trouble understanding this request:

 

1. In item #2 the client wishes to put content here, I can only guess he
means a file with text in it. ?

2. Item #3 I know what an ID is but not in this context. I'm don't
understand what the client wishes here.??

 

 

Any help here would be appreciated.

 

../Ernie 

 

 

 



FW: [PHP] What is an information_id in directory

2011-10-29 Thread Ernie Kemp
2 - Make a new content area in Site Manager->Content Manager. It doesn't
matter what you put in your content area, you could just put "This is my new
content area" or "Hello World" if you so choose.

3 - Grab the information_id of the new content area you made. When you are
editing a content area that already exists, the information_id can be gotten
from the update page URL. 

I'm having trouble understanding this request:

1. In item #2 the client wishes to put content here, I can only guess he
means a file with text in it. ?
2. Item #3 I know what an ID is but not in this context. I'm don't
understand what the client wishes here.??


Any help here would be appreciated.

../Ernie 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php