Question about The PHP Group PHP

1 Answer

PHP issues with ''''... Please help!!!

Many php scripts uses the php clauses as folows:

''
Welcome to our site,.
We hope you like your stay!!!''

They add simple script parts like ''''!
My php parser doesn't parse this parts...
How can I fix this???
The php parser parses '''' fine but
not ''
How can I fix this???

I'm currently running windows XP and using wampserver to run php, apache and msql on my pc.

Thankyou very much!!!

Posted by on

  • Master Lucka Feb 27, 2009

    thankyou very much. in the php.ini there is a setting:

    ; Allow the tags are recognized.
    ; NOTE: Using short tags should be avoided when developing applications or
    ; libraries that are meant for redistribution, or deployment on PHP
    ; servers which are not under your control, because short tags may not
    ; be supported on the target server. For portable, redistributable code,
    ; be sure not to use short tags.
    short_open_tag = On

    Lucka


  • Eric Lanning May 11, 2010

    I think there is a setting within php.ini but its been awhile since I've looked through there.

×

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Contributor
  • 23 Answers

Hello.

If you want PHP to use quotation marks you have to seperate them from the ones that start the expression by a backslash(\).

Here are two examples:
WRONG: echo "A "QUOTE" AND SOME TEXT";
RIGHT: echo "A \"QUOTE\" AND SOME TEXT";

or

WRONG: echo 'A 'QUOTE' AND SOME TEXT';
RIGHT: echo 'A \'QUOTE\' AND SOME TEXT';

I hope this helps.

Kind Regards,
Wilhelm@X-ex.info

Posted on Mar 06, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Please i want php script for image uploading in to wordpress upload folder


when you add a page or post from wordpress admin you get a image icon above the description textarea box to add images to the wordpress site

Other way is there is media manager in wordpress admin where you can upload images through that and make the gallery of images

Mar 08, 2010 | The PHP Group PHP

1 Answer

Please i want php script for image uploading in to wordpress upload folder


This plugin is rather funky, but you have to turn off the WYSIWYG editor off in Wordpress:
http://fredfred.net/skriker/index.php/iimage-browser/
And this plugin is more basic, but probably better to use at the end of the day:
http://wordpress.org/extend/plugins/flexible-upload/
Both are free.  I like free!
======================================================
Please rate me if you found this helpful.  Thanks.

Mar 08, 2010 | The PHP Group PHP

1 Answer

How to upload image through online


Don't know if this what you're after...it's an uploading script that does images:

http://www.maianscriptworld.co.uk/free-php-scripts/maian-uploader/free-file-upload-system/index.html

Mar 08, 2010 | The PHP Group PHP

1 Answer

PHP/SQL Problem


have you read the dataset in (i.e $row)?
you would require some sort of select statement to read the data frm sql into a dataset before yopu can read and display each record in the dataset.

i gather you may be new to sql statements. the bottom commect $query.... is reading the dataset into $query, the one you have issues with needs code that reads a record into $row

Jan 25, 2010 | The PHP Group PHP

2 Answers

Php counter


You might want to note that this is not the most effective manner of creating a counter in PHP. On a few of my websites, I find it is much more effective to simply create a text file, eg. counter.txt and have PHP read that every time the page is loaded, instead of running a MySQL query. Then, have PHP also update the counter.txt file by adding 1 to the number already listed in the file and read to the user.

Mar 19, 2009 | The PHP Group PHP

2 Answers

Logout script with session management in php5


just create a logout.php script with the following

<?php
session_start();
session_destroy();

header("Location: index.php");
?>

Have your logout button/link/whatever just open that page which connects to the session with session_start. Session destroy does exactly what it sounds like... it unsets all session data and tells the server to end the session. The header request then just re-directs the user to whatever page you want after (just change out index.php)

Dec 30, 2008 | The PHP Group PHP

2 Answers

PHP Error


This error means that the program doesn't understand the code you wrote.

If you are lucky the error points to the file and the line number where PHP got confused. Sometimes PHP points directly at the error, but other times PHP is confused as a result of an earlier error in the script.

Welcome to the great world of PHP.

Jul 27, 2008 | The PHP Group PHP

Not finding what you are looking for?
The PHP Group PHP Logo

533 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Mike

Level 3 Expert

4331 Answers

Mishan Kasiparsad

Level 2 Expert

142 Answers

Are you a The PHP Group Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...