I don't think there is a good answer to this. "Better" is hard to define, I don't actually know Coldfusion but what I saw from it looked utterly weird. That doesn't mean it's a bad language, I heard that you can write very short code in Coldfusion.
Choosing between language's is mostly a matter of taste. If you really think PHP would be better suited confront the network guy and ask him why he choose Coldfusion. If he choose Coldfusion he will most likely know.

Good luck

I think you would be better off here: [url]http://www.daniweb.com/forums/forum52.html[/url]
Good luck

One word: Javascript.

As I understand it you want to mask an id you pass through the URL with frames, so that people don't hotlink to it. But anyone reasonably smart wont be fooled by that.
If I understand your problem correctly there are lots of ways to do it. You could check the referrer value to see if their coming from within your domain. People can edit their referrer value but I think it's pretty safe (better then frames).
I could think of more ways but this one is, I think, the best.
I hope this is what you were looking for.

with tags. You can replace [sub] and [/sub] with and , and then enter it in your DB. You should watch out for unclosed tags though, if you write [sub] and not close it all following text will be subscript. You should be able to figger it out.

You can get URL value's with [INLINECODE]$_GET[][/INLINECODE] array, in your sample URL (
[url]http://somesite.com/readarticle.php?name=sample.txt[/url]) it would be [INLINECODE]$_GET['name'];[/INLINECODE]. Be warned to use this cause this brings potential security leeks with it. you should read up on the problems with it.
$file = $_GET['name'];
$f = fopen($file, r);
while ( $line = fgets($f, 1000) ) {
print $line;
?>[/code]now if I go to readarticle.php?name=readarticle.php I can see the PHP source.
Good luck with your site.

When I tried it in PHPmyadmin I got:[code]CREATE TABLE test (

MySQL said:

1063 - Incorrect column specifier for column 'id'[/code]So I fear that what you are trying to do is impossible. The idea behind auto_increment is that you add 1 for each new record so that every record has a differing ID (I believe it is, at least). Why would you want your ID to be a char? What would ID's like (A, B, C, D, E) differ from (1, 2, 3, 4, 5)?

Unless offcourse your trying to do something different with your auto_increment. You could always do the incrementing in PHP itself.

$_SESSION['var'] = $variable;

echo ++$_SESSION['var'];
I guess that should work

I guess your problem must lay in the form your using. To did you made a little typo:[inlinecode]if($budget == "low"){ $sream = $stream + 3; }[/inlinecode]

if the post variable's aren't initialized will none of these statements evaluate:
[code] if($time == "deadline"){ $custom = $custom + 1; }
if($time == "nodeadline"){ $stream = $stream + 1; }

        if($budget == "low"){ $sream = $stream + 3; }

        if($visual == "impressive"){ $custom = $custom + 2; }

        if($update == "easyupdate"){ $easyup = $easyup + 1; }
        if($update == "noupdate"){ $selfup = $selfup + 1; }
        if($update == "updateservice"){ $upserve = $upserve + 1; }[/code]

Leaving [inlinecode] $custom, $stream, $easyup, $selfup, $upserve[/inlinecode] zero (their value stays zero). Which will respond by none of your if statements evaluating to true:
[code] if($custom < $stream){$report = "streamlined is better for you than custom";}
if($custom > $stream){$report = "custom is better for you than streamlined";}
if($easyup < $upserve){$report2 = "you need our update service with your site";}
if($easyup > $upserve){$report2 = "you need our user-friendly update service with your site";}
if($selfup > $upserve){$report = "you do not need any of our update services";}
if($selfup > $easyup){$report = "you need our update service with your site";} [/code]
Which leaves $report (and $report2, which you don't output) a blank string.
So I think your problem lays in your form. you might want to add to help you debugging:
[code]echo "

echo "

Hope this helps

It looks to me like the www folder for Cpanel is wrongly set. it operates in /home/cometora/public_html/ and it calls to /usr/local/apache/htdocs/. This might as well be intended behavior.

My guess would be that Cpanel has a configuration which defines what the root of the web server / Cpaneldirectory is and that is set to /usr/local/apache/htdocs/ while it should be set to /home/cometora/public_html/

Off course this is a guess, the first error is a permission error. It might to be that you need to chmod /usr/local/apache/htdocs/online.txt up to where the webserver can read it.

Good luck

Yes, the server can't see the difference between two requests from different windows (different browsers is another story, you got to have the session cookie for it to work)

You need to wrap this in a form tag, and then submit it with a .

Here's how the form is supposed to look, taken that this is the file index.php:






If a value box was checked the $_POST[name] will be value, so if Choc is checked, [INLINECODE]$_POST['ch1'] = "checked";[/INLINECODE]. On the other hand, if the check box was not set, no value will be send. So [INLINECODE]$_POST['ch1'][/INLINECODE] won't even be set at all.

Why did you wrap a [inlinecode]if(isset($_POST['Sub']))[/inlinecode] around it? since there is nothing that will set sup the code under it will never be executed. That might to be your problem.

Good luck with your form, I know I'm not that good at explaining stuff, so feel free to ask if something is not clear.

The only thing I use is a text editor with some sort of text highlighting, at this moment bluefish. (And off course an image editor, GIMP for me). If you want feature's to include in such an application look at the feature list of Dreamweaver, that is ought to give you inspiration.

But what are you trying to build? A web application or a desktop application? (I assumed the latter, but since the title is "Web app"

Well, to take the easier part first, the printing of each value of an array:
foreach($array as $key => $val){
echo "$key = $val

Now to separate email addresses, that depends on how the string with the email addresses is formatted. if it's just separated with comma's, I would use explode:
[code]$array = explode(',', $emailString);[/code]
But if the separator between the email addresses isn't constant, you should indeed go with regex (with the split function).

Off course there are lots of ways of doing it. I think you could to do it with [inlinecode]preg_match_all();[/inlinecode]

You should post an example of the string you want splitted looks like.

This question makes no sense. Pages are read-only. You are probably not formulating this correctly. Post again and explain what you want PHP to do. We'll help you on your way to do it.

PHP had a nice build-in library called [URL="http://nl3.php.net/manual/en/ref.simplexml.php"]SimpleXML[/URL] for parsing XML. Your client needs to have PHP5 though.

Good luck.

Maybe post some code? All I can do now is direct you to PHP's session page. [url]http://nl3.php.net/manual/en/ref.session.php[/url]

I don't see any problems in my first glance, try to put a [INLINECODE]print_r($names);[/INLINECODE] somewhere and see whether the array contains email adresses valid for PHP to swallow ( [url]http://nl3.php.net/manual/en/function.mail.php[/url] ).

BTW, [inlinecode]$x = 1;[/inlinecode], shouldn't that be [inlinecode]$x = 0;[/inlinecode]? Or does the file your loading first have an empty line or something like it?

You might to want to check your php.ini is fully configured for sending mail: [url]http://nl3.php.net/manual/en/ref.mail.php[/url] .

You shouldn't upload it to your production server, especially if it are scripts you don't understand the working off. I'd advice you to get a local server, if your on windows is [URL="http://www.wampserver.com/en/"]wamp[/URL] an very easy option.

If you already uploaded it and got the domain to point at a server just FTP it to the folder of your domain on your server. On that free hosts I had it was, if I remember correctly, the htdocs folder that was the domain folder.

But I'd say you better wait for that friend of yours to help you.

If there both installed it should work. I used the debian repository via ubuntu to get apache and mod_php (I believe that's what the plugin is called). How did you install PHP and Apache? Did you compile it yourself?

There might be another problem instead of Apache not seeing PHP, does it serve static pages? Otherwise there might be another problem. Some systems come standard with all ports closed, I bleieve they cal that hardened by default. Maybe you need to open port 80 (I believe they only do that by server releases though).

Good luck

If I were you I would go for mysql instead of a textfile, both options are possible and mostly a matter of taste. The advantage of mysql is that you can easily request the last 10 or more results (you don't want to display all the conversation every time).

For refreshing you could go with a meta refresh, which is annoying cause if I'm typing something and it meta refreshes, it's gone (atleast, I think. You could test it). You could use an button to let the user manually refresh it when he/she is ready. Still not a very desirable situation.

In my opinion is the best way to go for an in browser chatroom ajax. Ajax allows you to make a request to the server without reloading the page. It's just Javascript with a new object though, so it isn't that hard.

Keep in mind that you will have to let users time out, some users won't press your fancy logout button.

Good luck with your project.

Use a unique identifier in the mysql table (Like an index key or an unique key). Then use something in the direction off:

[code]if( ! isset( $_GET[ 'id' ] ) ){ die( 'No ID specified' ); }
$value = mysql_get_gpc() ? $_GET['id'] : addslashes( $_GET['id'] ) ;
mysql_query( "select * from dmail_fields where id=$value" );[/code]

That should return you 1 result with the data you want.


Scroll down, to Table of Contents. There is a list of mysql functions. You should especially look at:

I assume you already know mysqls query language. If not look on the Internet for tutorials. Ask if you have any more problems.

You could use [URL]http://www.wampserver.com/en/[/URL] or XAMPP (to lazy to search for link ;P). It has most the feature's necessary and works fine. It has PHPmyadmin (Very handy for mysql). If you want to run a server from a USBstick I would recommend [URL]http://www.chsoftware.net/en/useware/wos/wos.htm[/URL]

Good luck and Have Fun.

If you want others to access your forum I would advise you against hosting it yourself. It would mean your computer has to be on and running the web server if others want to access it. To are there a lot of free forum packages, like [URL]http://www.phpbb.com/[/URL] (there are more an maybe even better free forums out there).

If you just want a forum you could also go to [URL]http://www.freeforums.org/[/URL] or [URL]http://www.5wwwww5.com/[/URL] (there are to other company's that do this)

If you still want to use vbulletin (since you bought it you probably will). Sign up for a free host, upload your vbulletin stuff, make mysql database, install vbulletin. Easy as that.
[URL="http://www.freeforums.org/"] [/URL]

Since you provide very few information is it hard to help. I'd say you should go with PHP. PHP is very easy to learn and integrates nicely with mysql databases. PHP puts HTML and CSS out, all server side. For more info on PHP go to [URL]http://www.php.net/[/URL].

Good luck and if you have any questions regarding PHP ask in the [URL="http://www.daniweb.com/techtalkforums/forum17.html"]PHP[/URL] forum.

Do you think your boss is ok with you posting this? Beside that, can't you trace the problem down to a specific piece fo code? This is to big for me to wade through.

To I like code that's indented.

It looks to me like you entered this somewhere in your mediagalary, but that it got parsed. To because that a tag was wrapped around the URL's. Bit weird is the <br"> and that it didn't close the a tag, if it were a parser.

So I ask you, did you nativly pasted this into PHP like:
//code here
<script type="text/javascript"

<script language="javascript"

var config = new Array(); config["width"] = 400; config["height"] = 300; config["clientId"] = "example"; config["bgColor"] = "#FFFFFF"; config["playList"] = "1191"; showSanagaPlayer(config);

//code here
[/php] or did you enter this somewhere in a form in the media galary your using. If you didn't enter it in a form it's still theoraticly possible to style it with ob_start() and output buffer functions, seems unlikely though. You might wanna add what gallery your using.

Put your server online (left click on wamp icon, then put online) and then goto your IP (you said in your browser.

I made it work, my solution is however not so pretty looking:
[php]$query = '--
-- Database: anonymusiusform

CREATE DATABASE anonymusiusform DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE anonymusiusform;

-- Table structure for table enquete

id int(5) NOT NULL auto_increment,
ip varchar(16) NOT NULL,
host varchar(50) NOT NULL,
age varchar(2) NOT NULL,
name varchar(50) NOT NULL,
rank varchar(8) NOT NULL,
opmerking text NOT NULL,
mysql_connect('localhost', 'username', 'password');

foreach(explode(';', $query) as $value)
if($value == ''){continue;}

mysql_query($value) or die(mysql_error());

It works now, I only use the application and it is only in the adminscreen so I will always be able to dump sql in case of a crash in phpmyadmin. If someone has a better solution please tell me.