Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Parse .html As Stopped Working


I recently upgraded an old 4.2.2 PHP to 4.3.11 One change I made after was to get my .html files to parse thru PHP. Yes, I've read for years not to do this, but I do anyway.

I accomplish this by changing:

AddType application/x-httpd-php .php
to
AddType application/x-httpd-php .php .html

But now, all my apache redirects don't work, and the apache error pages want to download.

The .html parse thru PHP, and ofcourse .php is fine.

I've covered everything I know, and would like to know if anyone else has come across before.




View Complete Forum Thread with Replies

Related Forum Messages:
Stopped Working
I have installed LAMP on my computer, and until yesterday, everything was working fine, and then PHP stopped producing any output. It doesn't matter if there is any PHP code in the file or not. For example, if I simply rename a .html file to .php all output stops.

When I run either <?php phpinfo();?> or <? phpinfo();?> I get no output.
php -r "phpinfo();"

View Replies !
Ereg_replace Stopped Working
This works fine on one server, but not on another server (both use 4.1.3). The pattern does not appear to be being identified on the new server, so the replacement text is not being added to the output.

$pattern = "href="";
$replacement = "href="http://mylink.com/click.php?id=$_POST[id]&url=";
$entry = eregi_replace($pattern,$replacement,$entry);

echo "$entry";

Basically it should replace <a href="http://mysite.com">My link</a> with <a href="http://mylink.com/click.php?id=$_POST[id]&url=http://mysite.com">My link</a>

View Replies !
Mysql_fetch_array() Stopped Working.
suddendly my code stopped working on 2 separate servers. did something in the new version of php change how this works or something?

$result = mysql_query("SELECT * FROM list WHERE email='$email'",$db);
$myrow = mysql_fetch_array($result);

Am i missing something?

View Replies !
Exec Stopped Working?
I wonder if anyone has experienced something like this, as it seems
truly bizarre and is causing me to tear out my hair (what little there
is left of it)....

The exec() function just suddenly stopped working, for no discernable
reason. Here is the code:

View Replies !
Some Php Includes Stopped Working
The morning of October 5th some of our php includes stopped working. One example being includes with "www" in the path.

include("http://www.x.com/a.php"); //no longer works
include("http://x.com/a.php"); //works but not across subdomains anymore

Here's some of our php.ini settings:
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
allow_url_fopen On On

Our host says they didn't change anything.

View Replies !
Forms All Stopped Working
My site was working fine when from one minute to another all of the forms stopped working. I emailed the server host who said that they restarted the mysql server (for updates apparently). Ever since that, the login form does not work, the upload form does not work, my websites' admin panel does not work.

I have no clue what to do, i restored all of the databases and the files that were previously there. Everything stopped working all of a sudden so I do not understand the cause of it and how to fix it.

View Replies !
Links Stopped Working
A few weeks ago the links on those websites just decided to stop working. I didn't change anything. Not the code, not the server, nothing. The links just stopped working all by themselves.

Both websites are set up with template.php/index.php as the structure and plain html pages for the content. Code:

View Replies !
Form Stopped Working
The email form worked fine at one point, but after a PC format and reinstall, I cant for the life of my get it to work again. The process seems to work fine, tells me it’s sent the email etc and I get no parse errors. However I never get the email I’m sending from the form.. Code:

View Replies !
Cookies Stopped Working (HTTP_COOKIE Not Set)
My site, written in PHP, is working fine on my hosting service, but it has suddenly stopped working on my home server. Both servers are running 4.2.3 on apache.I narrowed down the problem to cookies not being set on my home server.

When I try to access cookies on my home server, scripts fail with undefined variables. The same code works just dandy on the hosting server. When I do a php_info on my hosting service, the APACHE ENVIRONMENT section has an entry for HTTP_COOKIE. However, php_info for my home server is almost the same except that HTTP_COOKIE is missing. PHP Code:

View Replies !
Ftp_connect() Stopped Working (PHP4.4.2/FC2)
I run puppyfiles.us, and I've been using php on the site for some time.

Today, I noticed that my coding isn't working any more. Specifically, I'm getting the following error:

Fatal error: Call to undefined function: ftp_connect() in /var/www/vhosts/puppyfiles.us/httpdocs/.VERSIONS on line 25

The offending code in .VERSIONS (an included file) is:

$ftp_server = "puppyfiles.us";
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, "anonymous", "puppyfiles");
if ((!$conn_id) || (!$login_result)) {
   die("FTP connection has failed !");
  }

View Replies !
PHP Mail Function Stopped Working
Yesterday before 2:30, we were receiving email from the servers just fine. The same code today doesn't work. We haven't received an email for almost 24 hours now from the server. I've looked at every different way we send email:

Newsletter program: works with SMTP send, but not PHP mail send (it has the option)
CGI Forms: work
PHP Mail pages - nothing.

I've gone through everything I did yesterday, and I can't find anything that I could have changed that could possibly be making this type of problem occur. After 2:30, I picked up my kids from school, created two new pages on the domain that had nothing to do with mail, and got a CSR for a new SSL cert. Our server admin doesn't remember doing anything either. What could possibly be causing this?

View Replies !
Include Command Stopped Working
It's just making the time in a hectic schedule for one more unexpected project that I'm hoping to delay. Anyway, it involves php so I'm hoping someone here might be able to give me a work around. Code:

View Replies !
Connection To MSSQL Server Has Stopped Working
I made all the necessary changes to my server (windows 2k3 r2) in
order to get my php page to read from my MS SQL (v6.5) server (on
another machine). I was able to pull data down last night with no
problem. Today, however, I get nothing. The server I'm pulling from
is up and has no errors. If I change the login/password for the
connection string to something wrong, I don't get an error message.
In fact, the page is blank as if there was an error within the code
(this is regardless of whether I use a correct or incorrect login).
Yesterday when it was working, if I used the wrong login, I got the
usual error message back. If I comment out all the lines regarding
the connection, it builds the table just fine.

I've attached my code below (stripped out some table columns and data
manipulation code).

I have copied ntwlibd.dll to my windowssystem32 directory and
enabled the "extension=php_mssql.dll" line in my php.ini file.

If anyone has seen this before or has any suggestions, please let me
know... this is quite frustrating.

<?php
$con = mssql_connect('server', 'login', 'password');
if (!$con)
{
die('Could not connect: ' . mssql_error());
}
mssql_select_db("CM", $con);
$sql="SELECT *FROM Private_Build";
$result = mssql_query($sql);
echo "<table border=&#391;'>
<tr>
<COL width=ï`'>
<th bgcolor='black' style ='color:white'>Patch ID</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Packages'] . "</td>";
echo "</tr>";
}
echo "</table>";
mssql_close($con);
?>

View Replies !
Mail() Function Randomly Stopped Working
The problem that I am having is that I have a page that uses the mail() function.  The page is on admin panel of a store and is called from another page that lists all of the orders.  Basically, the script updates the status of the order to indicate that the payment has been received and sends an email to the customer to notify them of the payment receipt.  The script was working fine for months, but recently stopped working completely.  (Although no error is thrown.)  The only thing that I can think that could have affected this is that the host recently upgraded from PHP 4 to PHP 5; however, I have another site on the same account where the mail function works just fine.  Any ideas? Code:

View Replies !
Upgraded PHP From Version 4 To 5 And This Parser Stopped Working
I just upgraded PHP from version 4 to 5 and this parser stopped working. Can someone help me fix it please? Code:

View Replies !
File Upload Stopped Working On Other Host
I developed a site for one of my client. The site was working fine on one host but when he moved to another host, file upload feature stopped working. I am using simple file upload code as below: Code:

View Replies !
Process Of Migrating Hosts And Its Stopped Working..
Thing is i get no SQL errors, no php errors and therfore dont have much to go on, globals are on in my php ini and i can view things in my website fine, but when i try and log into my user area it just refreshes the log in page.

During the process of migration the account was restored on the following and ive noticed that it now includes collation in MYSQL which appears to have defaulted to ' latin1_swedish_ci ', Ive checked the tables and the user_passwords etc encrypted all looks the same. Code:

View Replies !
Mogrify -draw Text Stopped Working After Upgrade
If anyone can recommend a more appropriate newsgroup for this question?

We recently upgraded from php 4.1.2 to php 4.3.9 and ImageMagick 5.5.7
to version 6.2.5. I have a script that creates a random number image as a Turing Test, and without changing that, it's stopped working right after the
upgrade. But, only part of the mogrify command.

Here's the line I'm using:

$imagick = '/usr/local/bin/mogrify -pointsize 26 -draw 'text
'.$txRand.','.$tyRand.' "'.$rand.'"' -rotate '.$rRand.' -swirl
'.$sRand.' -charcoal 2 /var/www/html/verimgs/'.$mrand.'.gif'

exec("$imagick");

PHP is executing the command OK, because it creates the image and does
the swirl and charcoal and the rotate, but it's not doing the -draw
part.

If I echo $imagick it's perfectly formatted:

/usr/local/bin/mogrify -pointsize 26 -draw 'text 17,23 "659"' -rotate 2
-swirl 25 -charcoal 2 /var/www/html/home/verimgs/97531.gif

I can run that line in a command shell and it will perform perfectly.

According to the ImageMagick site:

http://www.imagemagick.org/script/c...ptions.php#draw

I'm formatting the -draw switch just right.
But still, it won't print the numbers onto the image.

I don't get it. What may have changed in the upgrade to prevent this
script from working the way it did before?

View Replies !
Form Action = &lt;?=$_SERVER['PHP_SELF']?&gt; - Stopped Working
My form action code to submit values to itself have stopped working using the code

form action = <?=$_SERVER['PHP_SELF']?>

This code used to work

My web host recently told me they enabled phpsuexec option in apache which apparently needs me to CHMOD my PHP page to 750 and the directory to 755. (I don't know what this means but know how to CHMOD files). I have CHMODed the files this but my PHP page doesn't work with those settings, so I set them back.

View Replies !
Links Stopped Working - Use PATH/index.php?p=PAGE In My URL
i have just moved my website from one server to another, on the first my pages worked perfect (not considering markup) but now my links just won't work anymore...

i use PATH/index.php?p=PAGE in my URL, it worked well on the other server, but after i switched it just stopped working...

and i have no clue where to find the error... it just keeps showing the first page...

View Replies !
$_SESSION :: Phpmyedit Pages Stopped Working After Novell Update
Our network Administrator applied an update to our web server recently. After this update was applied (Novell update), my phpMyEdit pages stopped responding. Everything else works fine. After doing some debugging, I found that if I placed all of my pages in the same directory, everything worked.

My $_SESSION vars will not transfer to other pages unless that page is in the same directory as the session was started in. I hope this is enough of an explaination. I am clueless as to why thus far. I am going to look at the php.ini file today.

View Replies !
RemoveHandler .html .htm (parse Php In .html Files)
I want to parse php in .html files.

I put this in .htacces file:

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

Its work, but some of my php aplications have urls:

www.mysite.com/this-is-page

without .html in the end

how to parse that? Which code I must use.

View Replies !
Parse Error - Working Local Lan Linux Server
I have just setup my website with a new linux hosting service. I have
copied over my scripts and the jpgraph (the stable version) files from my
working local lan linux server. The hosting service runs PHP 4.3.9 and I
keep getting parse errors like this-

Parse error: parse error, unexpected '=' in
/home/fhlinux199/s/mydomain.org.uk/user/htdocs/jpgraph/jpgraph.php on line
1100

when I look at the content of jpgraph.php it is just fine

$valid_formats = array('png', 'jpg', 'gif');

prior to this it gave me a similar error with an invalid single quote at

$this_>background_image = $aFileName;

View Replies !
Using PHP To Parse Through HTML
I'm using PHP 4 and trying to parse through HTML to look for HREF
attributes of anchor tags and SRC attributes of IMG tags. Does anyone
know of any libraries/freeware to help parse through HTML to find these
things. Right now, I'm doing a lot of "strstr" calls, but there is
probably a better way to do what I need.

View Replies !
Html To Parse Php
i want my html files to parse php files. how do i do it? i have access to httpd.conf what should i add? is it not advised to do something like that?

View Replies !
How Do You Get Html To Parse As Php
I'd like to configure one domain to parse an .html file as php. Is this possible? I have root access on the server.

View Replies !
Parse Php Through Html...
I'm trying to get my php pages to parse php within HTML, instead of php brackets.
Basically instead of having:
lets echo a variable/constant: <?php echo $somevariable . ' or ' . SOMECONSTANT; ?>
I want to use somhing like:
lets echo a variable/constant: {$somevariable} or {SOMECONSTANT}Is this at all possible?

I'm not wanting to do anything more difficult than echoing simple variables or constants..

View Replies !
Parse Html
I want to chunk a html page and parse that page using php.ie that html page contain many data.I want to retrive that data using php and want to save in a database.

View Replies !
Parse PHP Code In .html??
I was wondering if it's possible to parse PHP code in .html documents without requiring root access (since I'm on a virtual server). I want to make a two line call to a log program, but I don't want to have to change all of my .html files to .php.

View Replies !
Parse HTML And Add Quotes
Can someone make me a regex that adds quotes around stuff in html for example:

<form action=hi method=post> to <form action="hi" method="post">

View Replies !
Parse A Html Site
does anybody know a script that cachtes any data from a web site (html) and put it in a csv or something? I think parse is here the magic word or?

View Replies !
Parse A Html Document
Anyone have any ideas how to parse a html document.

I am trying to extract out specific information from the page.
Also, what do you do if the page is dynamic (e.g. a cgi generated page) how
do you find it?

View Replies !
How To Parse HTML TABLE
I have a problem with parsing html table. I need a script witch will pars html table from one site to another.

View Replies !
Parse Html Page
How can I import a html page with my php script? I have a simple html page that actually just generates a simple table of values. I just want to strip the values to insert in to a database. How do I import the html page to my php script to parse it?

View Replies !
Parse HTML From Within A PHP Script
I'm writing my website backend. This consists of a series of pages for adding and updating information about widgets to a database. Most of the pages have bene very simple, however I elected that three fields would accept HTML as there data by necessity. These three fields contain a manufactures description of the item, a description written specifically by the company, and lastly the spec sheet on the product.

I'm designing the back end page that will allow modification of existing database items. I'm using <textarea> tags for the data. The problem being that I believe if I write a line like:

echo "<textarea name="$fieldname[$i]" rows="5" cols="25">$thevalue[$i]</textarea>

$theValue will be interpreted as the HTML it is instead of displaying the HTML so it can be edited and resaved to the DB. I haven't finished all the entire script so I haven't been able to test that theory yet, so if I'm wrong I'd be happy to hear it. if I'm right how can I get around it?

View Replies !
Parse HTML ASCII
When parsing HTML is it possible to have all the ASCII codes converted to their real values first so that I do not need to search for them to exclude them. For example the following is retrieved as a price however it would be easier to extract using a regex if the code was first converted to a dollar sign:

<h3>

$249,000

</h3>

View Replies !
How To Parse This Into HTML Tables
I'm trying to parse a file in order to get it displayed onto a webpage using HTML and tables. I got a good deal of the parsing done but there's a problems that I can't solve. So here is a part of the file Code:

View Replies !
Parse A Html Page
I would like to parse a html page and extract all image names and thier alt attributes.

View Replies !
How Do I Parse PHP Code Within An HTML File?
I'm trying to figure out a way to save message bodies of the various e-mails I send from my site into HTML pages and then import them when I send the e-mails. But I've never tried anything like this before so I'd appreciate some help. Here's an example of the code I'm using: Code: $email_body = file_get_contents("emails/application_approved.htm");
I can import the HTML files without problems, but I've also got PHP variables in the HTML code and I need to know how to parse those variables. Is it even possible?

View Replies !
WinXP/IIS Set Up For PHP To Parse .html Extensions
I just installed PHP (4.3.3) on a WinXP (SP1) system using IIS (5.1) as the
web server. I am using FrontPage 2002 and would like to be able to debug my
PHP scripts locally. Since FP does not handle the .php extension as a web
page (edit, display, navigation, etc.), I am trying to set it up to parse
files with the .html extension. I have added the .php and .html extensions
to the Application Configuration page of IIS and I have also applied some
regedit changes suggested by the documentation. All to no avail. The .php
extension works, the .html does not.

View Replies !
How To Use .htaccess To Parse Only .html Files As .php?
I am trying to make my server (Apache) parse .html files
as .php.

I found this line of code:
ForceType application/x-httpd-php
placed it in an .htaccess file and uploaded it to the
directory I wanted it to work.
And it worked; my .html files are all parsed as .php.
But, apparently, so are my images, so they aren't loaded
into the pages. And something else, my css file isn't found
anymore by Netscape and Mozilla, while IE has no problem...
I'm calling my css file with @import url(all.css); in the
<style> block in the head of my .html files.

How do I make the server parse _only_ .html files as .php,
and why don't Mozilla and Netscape find the css file? (They
did before I sent the .htaccess file)

View Replies !
Parse And Extract Information From HTML Using SQL
This is a question that seems to have been asked here a few times recently. I've just come across this on PHP Classes and thought it might be of interest to anyone trying to do this, I've not used it myself so it is "Sight unseen" Code:

View Replies !
Parse Error On The Last Line Of Code </html>
/// here is the code i'm getting a parse error on the last line of the
code which
/// is </html> any help will be much appreciated.

<?php

session_start ();
require_once('connect.php');

if ($_SESSION['username']){ //test for logged-in
$query = "SELECT status FROM accounts WHERE
username='".$_SESSION['username']."'";
$result = mysql_query ($query) or die("<b>A fatal MySQL error
occured</b>.
<br>
Error: (" . mysql_errno() . ") " . mysql_error());
$row = mysql_fetch_array ($result,MYSQL_NUM);

if ($row[0] == 0){
$error_message .= "<P>Your account has been frozen. Email the <A
HREF='mailto:account_status@severedrealm.net'>webmaster</A> for more
information.</P>";}

if ($row[0] == 1){
$query2 = "SELECT name, hp, gold, exp FROM characters WHERE
username='".$_SESSION['username']."'";
$result2 = mysql_query ($query2) or die("<b>A fatal MySQL
error occured</b>.
<br>
Error: (" . mysql_errno() . ") " .
mysql_error());
$character_table .= "<TABLE CELLSPACING=&#392;' CELLPADDING=&#392;'
BORDER=&#390;'><TR><TD>Name</TD><TD>Hit
Points</TD><TD>Gold</TD><TD>Experience</TD><TD>Delete</TD></TR>";
$x=0;
while ($character = mysql_fetch_array ($result2)) {
$x=$x+1;
$character_table .=
"<TR><TD>".$character[1]."</TD><TD>".$character[2]."</TD><TD>".$character[3]."</TD><TD>".$character[4]."</TD>";
$character_table .= "<TD><form action='character.php'
method='post'><input type='hidden' name='character'
value='".$character[1]."'><INPUT TYPE='submit'
NAME='delete_character_submit'
VALUE='delete_character'></FORM></TD></TR>";}
$character_table .= "</TABLE>";
if ($x >= 1){
$error_message .= "<P>You have too many characters. You must
delete ".$x."before you can create another.</P>";
}else{
$character_creation_form .= "<FORM
ACTION='character.php?op=create_character' METHOD='post'>";
$character_creation_form .= "<table cellspacing=&#392;'
cellpadding=&#392;' border=&#390;'><tr>";
$character_creation_form .= "<td>New Character
Name:</td><td><input type='text' name='new_character_name' size=&#3930;'
maxlength=&#3930;' value=''/></td></tr>";
$character_creation_form .= "<tr><td></td><td><input
type='submit' name='New_Character_Submit' value='Create
Character'></td></tr></table></FORM>";}

if ($row[0] == 2){
$query3 = "SELECT name, hp, gold, exp FROM characters WHERE
username='".$_SESSION['username']."'";
$result3 = mysql_query ($query3) or die("<b>A fatal MySQL
error occured</b>.
<br>
Error: (" . mysql_errno() . ") " .
mysql_error());
$character_table .= "<TABLE CELLSPACING=&#392;' CELLPADDING=&#392;'
BORDER=&#390;'><TR><TD>Name</TD><TD>Hit
Points</TD><TD>Gold</TD><TD>Experience</TD><TD>Delete</TD></TR>";
$x=0;
while ($character = mysql_fetch_array ($result2)) {
$x=$x+1;
$character_table .=
"<TR><TD>".$character[1]."</TD><TD>".$character[2]."</TD><TD>".$character[3]."</TD><TD>".$character[4]."</TD>";
$character_table .= "<TD><form action='character.php'
method='post'><input type='hidden' name='character'
value='".$character[1]."'><INPUT TYPE='submit'
NAME='delete_character_submit'
VALUE='delete_character'></FORM></TD></TR>";}
$character_table .= "</TABLE>";
if ($x >= 2){
$error_message .= "<P>You have too many characters. You must
delete ".$x."before you can create another.</P>";
}else {

View Replies !
Parse Text From HTML Website, Dump Into DB
I am working on a script to extract statistics (which is updated daily) from
a website, and insert them into a MySQL database. I want to take this
website:
http://www.usatoday.com/sports/bask...players0304.htm
and strip off all the HTML tags and etc, make it look like
http://www.enlhoops.com/ratings/parsed.txt
and then insert each players stat line into the database.

I have begun writing the script, getting the file, striping html tags off,
but that doesn't seem to work too well.

View Replies !
Parse HTML Table Rows Into Array
I have a script that extracts an HTML table from a page into a text string. I would like to parse each row of the table into an array named "$rows". I would like to keep the html intact so that I could re-create the same table like: Code:

View Replies !
Using PHP To Parse Html Tables And Extract Values
I've been presented with a task of parsing multiple .jsp's (this is after they have been executed server side so I guess for all purposes its actually a html file).

Anyway each of these pages have large complex tables displaying a lot of reporting data for one of our systems. My original method of carrying out this task was to go into the code and get the actual DB querys that the page executes and have this more as a bash based solution. However after spending several days trying to hack my way through a jungle of 100's of querys which dont hold to any naming convention Im going to plan B.

So here's what Im looking to do. Get php to construct the correct url for the jsp. What I mean by construct is to make the url while dynamically inserting the correct values into the url as it uses GET to set the date range of the information it writes to the browser.

Once its done that and requested the page is processed I want php to search through the page and find the results that Im looking for, assign them to variables and finally format the information from all the different jsp's into one php page. One nice thing is that I'm able to modify the .jsp's to wrap a comment around the data I want for example. I think this should remove the hardest part of the job which is having php identify what values I actually want.

#take_this_value#
1234556
#######

What I dont know is how to get PHP to request the url I create,parse it and extract the values. I'm guessing this is a job for wget and regular expressions but Im not too sure where to start (or if there is more appropriate functions to use).

View Replies !
Parse An HTML File Using Php To Get Some Specific Info
I want to parse an HTML file using php to get some specific info from that page. How do i get started? Do u have any tutorials about it?

View Replies !
Parse String For Urls, But Not Html Links
I've got this function to convert any urls into the proper links for my CMS. However, if I want to put in my own link <a href="http://www.domain.com">A link to domain.com</a> (rather than the basic url www.domain.com), this function really stuff's it up. Code:

View Replies !
Parse Returned Html Shipping Rate Value
How can I extract as a var, the shipping rate value returned from the HonKongPost website's html webpage/result.

I need to extract whichever value is displayed after the $:
<input type="hidden" name="total_rate" value="$540">

Code:

View Replies !
Problem Using Htacess File To Parse HTML
I know that there are numerous posts on using an htaccess file to cause a server to parse HTML files for PHP. I've read them all (or at least most), but have not found any help for my problem.

Does anyone know of a situation where modifying the htaccess file (or adding one to a specific directory within a hosting account) would cause the following behavior?

I added an htaccess file consiting only of the line to a directroy where I would like .html files to be parsed for PHP: Code:

View Replies !
Parse An Html Page With Php To Pull Some Information
Im trying to parse an html page with php to pull some information from it and its not working correctly. I am running this to pull the ul from the page. its the only one on the page with the class directories and it doesnt stop pulling information after the end of the ul.

preg_match('/<ul class="directories">(.*)</ul>/', $postResult, $array);

View Replies !
Working In Html
i cant figure this out... my php files work fine but just cant get them working in html so at the moment im using iframes everywhere Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved