![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
tarun
-
Posts
321 -
Joined
-
Last visited
Never
Posts posted by tarun
-
-
BuMp
-
Off Topic But Change Topic Title Its Inappropriate My Parents Are In The Same Room
-
<?PHP $host = $_SERVER['HTTP_HOST']; include("http://$host/PHP_MAIN/menu.php"); ?>
I Used To Use That Untill My Webhost Disabled URL Inclusion
Edit: I Forgot The [ code ] So Ive Added It Now
-
<?php $user = $_POST["u"]; $pass = $_POST["p"]; $db = file("db.txt"); foreach($db as $key => $val) { $data[$key] = explode("|-|", $val); } for($k = 0; $k < sizeof($db); $k++) { $u = $data[$k][0]; $p = $data[$k][1]; if ( $u == "$user" ) { if ( $p == "$pass" ) { echo 'You Are Now Logged In As: '.$u.''; } else { echo 'Username And Password Do Not Match'; } } } ?>
Theres Still More To Add When Your Logged In Such As Sessions
But At The Moment I Can't Even Log In
I Get My Error "Username And Password Do Not Match"
-
Cool Shall Try It
Thnx
-
My Website Runs On Flat Files (Due To Limited SQL Resources)
And Need To Protect Those Precious txt Files
But How Could I Do It?
HTACCESS Would Work Wouldn't It
But People Could Just Use file_get_contents On The Files
Any Other Methods...?
ANY Contribuations WILL Be GREATLY Appreciated
Thnx,
Tarun
-
I Dont Know The Answer To YOur Problem
But I Prefer CSS a:hover Than JavaScript
its dealing with a table element not with text
Even Still Ive Done It With DIV And Ive Just Tested It With TD Tags And It Works So...... Why Not...?
-
Alright Then Thnx
Topic Solved
-
Well...
Im Actually Looking For The PHP To Create The Sound/Music File
The Idea Is That You Type A Letter In The Form And Submit It And The PHP Create An MP3 File With The Word Being Said
-
PHP Can Be Used To Output Images And HTML But Can It Output Sounds
If So HOW....?
-
Not Sure But Probably preg_match
-
I Dont Know The Answer To YOur Problem
But I Prefer CSS a:hover Than JavaScript
-
Yep Vikas Is Right
It Should Be
<body onload="delete_cookie(CookieName);">
Topic Solved...?
-
Cool Cool
Topic Solved...?
-
No I Want It Document.Write An Image
But It Doesn't Work
Its For A Profile Using BBCode
[url='' onMouseover=document.write('<img src=img.jpg>') '']Hover Here[/url]
-
This Is My HTML
<a href='' onMouseover=document.write('<img src=img.jpg>') ''>Hover Mouse Here</a>
And It Doesn't Work
I Get The Error "Unterminated string constant"
Can AnyBody Help Me Please
Thnx,
Tarun
-
WoW Every1
Thnx,
For Your Input
-
Have It As An Array Then Use foreach
-
Just Include This:
gallery/main.php?g2_view=imageblock.External&g2_blocks=recentImage|recentImage|recentImage|&g2_show=title
-
It Needs To Be For An External File Hosted On A Different Server
And Needs To Get The Contents Of A PHP File
-
I Need To Get The COntents Of An External File And Put It In A Text Box
Eg Say If The External File Was This
<?php echo 'Simple Example' ?>
Then The Page With The TextBox Looks Like This
<textarea><?php echo 'Simple Example' ?></textarea>
Thnx,
Tarun
-
And I Get Different Errors Each Time I Refresh The Page
1.
Warning: mime_magic: broken symlink ($file) in /home/www/**********/test2.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/www/**********/test2.php:3) in /home/www/**********/test2.php on line 13
The File Type : "" Is Not Supported
2.
The File Type : "application/octet-stream" Is Not Supported
3.
The File Type : "text/plain" Is Not Supported
4.
Warning: mime_magic: invalid mode 026752314425. in /home/www/**********/test2.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/www/**********/test2.php:3) in /home/www/**********/test2.php on line 13
The File Type : "" Is Not Supported
5.
The File Type : "httpd/unix-directory" Is Not Supported
-
To Script Is Supposed To Be Accessing Remote Files On Different Servers
-
I Dont Think I Quite Get What Your Saying
Can You Please Explain That In More Detail And A Bit Simpler Please
Thnx
Flat File Login
in PHP Coding Help
Posted
By Input File Do You Mean The db.txt File
It Looks Similar To This
And With This "NEW" Code I Get:
Username And Password Do Not MatchUsername And Password Do Not Match
It Comes Out Twice Because There Are Two Columns Of Data (eg. Col1:user1 Col2:pass1)