php-general Digest 3 Jun 2010 21:21:56 -0000 Issue 6780

Topics (messages 305768 through 305788):

Re: Set up MySQL + Apache 2.2.4 on Win XP
        305768 by: Shreyas
        305769 by: Bob McConnell
        305770 by: Ashley Sheridan
        305771 by: Shreyas

PHP Form submitting to MySQL not working...
        305772 by: Steve Marquez
        305773 by: Ashley Sheridan
        305774 by: Nilesh Govindarajan
        305775 by: Steve Marquez
        305776 by: Jim Lucas
        305777 by: Jim Lucas
        305778 by: HallMarc Websites
        305779 by: HallMarc Websites
        305780 by: Shreyas
        305783 by: Steve Marquez
        305784 by: Ashley Sheridan
        305785 by: Shreyas
        305786 by: Ashley Sheridan
        305787 by: Shreyas
        305788 by: Steve Marquez

CakePHP, alternatives?
        305781 by: Shreyas
        305782 by: larry.garfieldtech.com

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Shiplu,

Not sure what you meant by that. I never had to restore anything. Would be
happy to know if I have misunderstood anything.

Regards,
Shreyas

On Thu, Jun 3, 2010 at 4:52 AM, shiplu <[email protected]> wrote:

> Actually you just restore your NS schema in the new EasyPHP stack.
>
> Shiplu Mokadd.im
> My talks, http://talk.cmyweb.net
> Follow me, http://twitter.com/shiplu
> SUST Programmers, http://groups.google.com/group/p2psust
> Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
>



-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message ---
From: Shreyas

> Not sure what you meant by that. I never had to restore anything.
Would be
> happy to know if I have misunderstood anything.

> On Thu, Jun 3, 2010 at 4:52 AM, shiplu <[email protected]> wrote:
> 
>> Actually you just restore your NS schema in the new EasyPHP stack.
>>

The fact that you were able to add your schema by simply copying it into
the correct directory is a happy coincidence, or more likely a serious
bug in MySQL. There may be some system tables that were not updated to
reflect the presence of that schema, so some features may not work with
it.

The correct way to move a database is to back it up on the original
server, then restore it on the new one. That way all system tables would
be correctly updated by the server.

Bob McConnell

--- End Message ---
--- Begin Message ---
On Thu, 2010-06-03 at 08:29 -0400, Bob McConnell wrote:

> From: Shreyas
> 
> > Not sure what you meant by that. I never had to restore anything.
> Would be
> > happy to know if I have misunderstood anything.
> 
> > On Thu, Jun 3, 2010 at 4:52 AM, shiplu <[email protected]> wrote:
> > 
> >> Actually you just restore your NS schema in the new EasyPHP stack.
> >>
> 
> The fact that you were able to add your schema by simply copying it into
> the correct directory is a happy coincidence, or more likely a serious
> bug in MySQL. There may be some system tables that were not updated to
> reflect the presence of that schema, so some features may not work with
> it.
> 
> The correct way to move a database is to back it up on the original
> server, then restore it on the new one. That way all system tables would
> be correctly updated by the server.
> 
> Bob McConnell
> 


On more than one occassion I've just copied the data files from one
location to another to move the database from one server to another. You
do have to ensure that the MySQL service has been stopped while you do
this, but aside from that there's nothing wrong with doing this.

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



--- End Message ---
--- Begin Message ---
Ash - Yes, the service was stopped and then it was copied.

--Shreyas

On Thu, Jun 3, 2010 at 7:07 PM, Ashley Sheridan 
<[email protected]>wrote:

>  On Thu, 2010-06-03 at 08:29 -0400, Bob McConnell wrote:
>
> From: Shreyas
>
> > Not sure what you meant by that. I never had to restore anything.
> Would be
> > happy to know if I have misunderstood anything.
>
> > On Thu, Jun 3, 2010 at 4:52 AM, shiplu <[email protected]> wrote:
> >
> >> Actually you just restore your NS schema in the new EasyPHP stack.
> >>
>
> The fact that you were able to add your schema by simply copying it into
> the correct directory is a happy coincidence, or more likely a serious
> bug in MySQL. There may be some system tables that were not updated to
> reflect the presence of that schema, so some features may not work with
> it.
>
> The correct way to move a database is to back it up on the original
> server, then restore it on the new one. That way all system tables would
> be correctly updated by the server.
>
> Bob McConnell
>
>
>
> On more than one occassion I've just copied the data files from one
> location to another to move the database from one server to another. You do
> have to ensure that the MySQL service has been stopped while you do this,
> but aside from that there's nothing wrong with doing this.
>
>   Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>


-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message ---
Good morning,

I have a PHP form that I have been using for some time now on a Macbook Pro 
running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
morning, when I submitted (it is a journaling application) it came up with the 
following error: 

No such file or directory 

Can anyone point me in the right direction to fix this? Have you ever seen this 
before?

Thanks,

Steve Marquez

--- End Message ---
--- Begin Message ---
On Thu, 2010-06-03 at 08:56 -0500, Steve Marquez wrote:

> Good morning,
> 
> I have a PHP form that I have been using for some time now on a Macbook Pro 
> running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
> morning, when I submitted (it is a journaling application) it came up with 
> the following error: 
> 
> No such file or directory 
> 
> Can anyone point me in the right direction to fix this? Have you ever seen 
> this before?
> 
> Thanks,
> 
> Steve Marquez


Do you have any examples of code at all? It sounds like a file it's
requiring is missing, but you haven't given the full error there either.

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



--- End Message ---
--- Begin Message ---
On Thu, Jun 3, 2010 at 7:26 PM, Steve Marquez
<[email protected]> wrote:
> Good morning,
>
> I have a PHP form that I have been using for some time now on a Macbook Pro 
> running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
> morning, when I submitted (it is a journaling application) it came up with 
> the following error:
>
> No such file or directory
>
> Can anyone point me in the right direction to fix this? Have you ever seen 
> this before?
>
> Thanks,
>
> Steve Marquez
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

1. Did you do any upgrades recently ?
2. What is your code ?

-- 
Nilesh Govindarajan
Facebook: nilesh.gr
Twitter: nileshgr
Website: www.itech7.com
Cheap and Reliable VPS Hosting: http://j.mp/arHk5e

--- End Message ---
--- Begin Message ---
Sorry I wasn't specific enough. I'll include the files.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<title>Prayer Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/prayer.css" rel="stylesheet" type="text/css">


<script type="text/javascript">

// specify the name of your form
var thisForm = "form1";

// load field names and default values into list
var defaultVals = new Array();
defaultVals[0] = new Array("date", "(Date here)");

// populate fields with default values on page load
function MPLoadDefaults() {
with (document.forms[thisForm]) {
for (var n=0; n<defaultVals.length; n++) {
var thisField = defaultVals[n][0];
var thisDefault = defaultVals[n][1];
if (elements[thisField].value == '')
elements[thisField].value = thisDefault;
}}}

// clear default value from field when selected
function MPClearField(field) {
var fieldName = field.name;
for (var n=0; n<defaultVals.length; n++) {
var thisField = defaultVals[n][0];
var thisDefault = defaultVals[n][1];
if (thisField == fieldName) {
if (field.value == thisDefault) field.value = '';
break;
}}}

// clear all defaults when form is submitted
function MPClearAll() {
with (document.forms[thisForm]) {
for (var n=0; n<defaultVals.length; n++) {
var thisField = defaultVals[n][0];
var thisDefault = defaultVals[n][1];
if (elements[thisField].value == thisDefault)
elements[thisField].value = '';
}}}

</script>

<style type="text/css">
<!--
body {
	font-family:Verdana, Arial, Helvetica, sans-serif, "Lucida Grande";
	font-size: 14px;
	line-height:18px;
	color: #333333;
	margin: 0 0 0 0;
	background-color: #CDCEDA;
	background-image: url(images/prayer_body_bg.jpg);
	background-position: center;
	background-repeat: repeat-y;
}
-->
</style></head>
<!-- <body OnLoad="document.form1.date.focus();"> -->
<!-- <body onload="MPLoadDefaults()"> -->
<body>
<form name="form1" method="post" action="db-code.php">
  <table width="100%" height="0"  border="0" cellpadding="0" cellspacing="0" bgcolor="#999999">
    <tr>
      <td><img src="spacer.gif" width="5" height="5"></td>
    </tr>
  </table>
  <table width="748" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td rowspan="2" valign="top" bgcolor="#CCCCCC"><table border="0" align="center" cellpadding="10" cellspacing="0">
        <tr>
          <td><!-- <input name="date" type="date" class="date_field" id="textfield" value="" size="30" onfocus="MPClearField(this)"> -->
		  <input name="date" type="date" class="date_field" id="textfield" value="<?php echo date('F j, Y'); ?>" size="30"> 
		  </td>
        </tr>
        <tr>
          <td class="prayer-field" valign="top"><textarea name="prayer" cols="60" rows="19" class="form_fields" id="prayer"></textarea></td>
        </tr>
        <tr>
          <td><input name="Reset" type="reset" class="NormalText" value="Reset">
            <input name="Submit2" type="submit" class="NormalText" value="Submit"></td>
        </tr>
        <tr>
          <td valign="top" bordercolor="#999999"><?php include "random_images.php"; ?>
            </td>
        </tr>
      </table>
</form>
</body>
</html>
<?PHP

	// log into our local server using the MySQL root user.
	$dbh = mysql_connect( "localhost", "*******", "********" );
	
	// select the db.
	mysql_select_db( "prayer" ) or die ( mysql_error() . "\n" );
	
	$date = $_POST["date"];
	$prayer = $_POST["prayer"];

//$prayer = nl2br ($prayer);
$prayer = addslashes ($prayer);
	
	$insert_data = "INSERT into prayer (view,date,prayer)
    Values ('view', '$date', '$prayer');";

    $response = mysql_query( $insert_data, $dbh );
	if(mysql_error()) die ('database error<br>'. mysql_error());
?>

<?PHP	
	
   // and read it back for printing purposes.
   //$get_table_data = "SELECT * FROM prayer WHERE date=\"$date\"";
   
   //$response = mysql_query( $get_table_data, $dbh );

   // now print it out for the user.
  // if ( $one_line_of_data = mysql_fetch_array( $response ) ) {
    //   extract ( $one_line_of_data );
  // }
   $id_num = mysql_insert_id();
   
 ?>
  <?PHP
	
//this is the update
		$update_data = "UPDATE prayer SET view = '<a href=\"view_prayer.php?id_num=$id_num\">view</a>' WHERE id_num = \"$id_num\"";
		
		$response = mysql_query( $update_data, $dbh );
	if(mysql_error()) die ('database error<br>'. mysql_error());
		
   // and read it back for printing purposes.
   $get_table_data = "SELECT * FROM prayer  where id_num=\"$id_num\";";
   
   $response = mysql_query( $get_table_data, $dbh );

   // now print it out for the user.
   if ( $one_line_of_data = mysql_fetch_array( $response ) ) {
       extract ( $one_line_of_data );
   }
	
?>

<html>
<head>
<title>Prayer for <?php echo "$date\n"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="css/prayer.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body {
	background-color: #EEEEEE;
	margin: 10px 0 0 0;
}
-->
</style></head>

<body>
<div id="mContent">
<?PHP

$prayer = nl2br ($prayer);
$prayer = stripslashes ($prayer);

echo "<div id = 'date'>$date<p /></div>";
echo "<div id ='prayer_space'>$prayer</div>";

$query = "SELECT view,date,prayer FROM prayer ORDER BY id_num DESC LIMIT 30";
$result = mysql_query($query) or die("Query failed");

echo "<div id='menu'>";

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
	extract ( $line );
			$LimitChars = substr("$prayer", 0, 65);

echo "<div id='view_date' align='left'>$view - $date</div>";

}
echo "</div>";

?>
</div>
</body>
</html>

I downloaded and installed the iPhone SDK to develop some iPhone apps.
This form has worked forever. Perhaps the SDK install did something?

Thanks,

-- 
Steve Marquez
Marquez Design
e-mail: [email protected]
web: http://www.marquez-design.com
phone: 479-648-0325 

On Jun 3, 2010, at 8:59 AM, Ashley Sheridan wrote:

On Thu, 2010-06-03 at 08:56 -0500, Steve Marquez wrote:
Good morning,

I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a journaling application) it came up with the following error: 

No such file or directory 

Can anyone point me in the right direction to fix this? Have you ever seen this before?

Thanks,

Steve Marquez

Do you have any examples of code at all? It sounds like a file it's requiring is missing, but you haven't given the full error there either.

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




--- End Message ---
--- Begin Message ---
Steve Marquez wrote:
> Good morning,
> 
> I have a PHP form that I have been using for some time now on a Macbook Pro 
> running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
> morning, when I submitted (it is a journaling application) it came up with 
> the following error: 
> 
> No such file or directory 
> 
> Can anyone point me in the right direction to fix this? Have you ever seen 
> this before?
> 
> Thanks,
> 
> Steve Marquez

Where exactly did you see this error?

1) In your browser when you tried loading the form?
2) In your browser when you submitted the form?
3) In the error logs of your web server?

Other questions:

What type of web server are you running?

Did your cat stomp on your keyboard?

Are the files stored locally or are they on a network/remote drive?

Children doing things they should not be doing? (Happened to me once...)

Are you accessing the files via http://localhost/... ?? or as a local file?

-- 
Jim Lucas

A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--- End Message ---
--- Begin Message ---
Steve Marquez wrote:
> I am running Apache (not sure which version, where do I find that?) it is 
> running on a Macbook Pro. 
> The error happened when I submitted the form.

Sorry, should have been more specific.  Where did you see the error?  In your
browser, error logs of your web server, etc... ?

If this error was displayed in your browser, you should look in your apache
error log file at that corresponding time to see if it has any more information.

> 
> The MySQL DB is hosted locally on my machine.
> 
> No cat here at the office, no children either, they are all at home.
> 
> :)
> 


-- 
Jim Lucas

A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--- End Message ---
--- Begin Message ---

-----Original Message-----
From: Jim Lucas [mailto:[email protected]] 
Sent: Thursday, June 03, 2010 11:38 AM
To: php General List
Cc: Steve Marquez
Subject: Re: [PHP] PHP Form submitting to MySQL not working...

Steve Marquez wrote:
> I am running Apache (not sure which version, where do I find that?) it is
running on a Macbook Pro. 
> The error happened when I submitted the form.

Sorry, should have been more specific.  Where did you see the error?  In
your
browser, error logs of your web server, etc... ?

If this error was displayed in your browser, you should look in your apache
error log file at that corresponding time to see if it has any more
information.

> 
> The MySQL DB is hosted locally on my machine.
> 
> No cat here at the office, no children either, they are all at home.
> 
> :)
> 


-- 
Jim Lucas

A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

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


What did your error log file say? it should tell you the path and the name
of the file that was being called; then go and look to see if the file
exists. 


 

__________ Information from ESET Smart Security, version of virus signature
database 5169 (20100603) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 


--- End Message ---
--- Begin Message ---

-----Original Message-----
From: Jim Lucas [mailto:[email protected]] 
Sent: Thursday, June 03, 2010 11:38 AM
To: php General List
Cc: Steve Marquez
Subject: Re: [PHP] PHP Form submitting to MySQL not working...

Steve Marquez wrote:
> I am running Apache (not sure which version, where do I find that?) it is
running on a Macbook Pro. 
> The error happened when I submitted the form.

Sorry, should have been more specific.  Where did you see the error?  In
your
browser, error logs of your web server, etc... ?

If this error was displayed in your browser, you should look in your apache
error log file at that corresponding time to see if it has any more
information.

> 
> The MySQL DB is hosted locally on my machine.
> 
> No cat here at the office, no children either, they are all at home.
> 
> :)
> 


-- 
Jim Lucas

A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

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


On a side note; yes, as you can see I am still alive and well. Business has
slowed down enough that I had time to actually read a few posts! 

Marc Hall
HallMarc Websites
www.hallmarcwebsites.com

 

__________ Information from ESET Smart Security, version of virus signature
database 5169 (20100603) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 


--- End Message ---
--- Begin Message ---
Steve,

SERVER_SOFTWARE is a variable that will give you which apache version you
are actually using. Just drop a one - liner in a test.php as this :
*
*
*
<?php
phpinfo();
?>

*
You can look for the above variable. Any other ideas others may have, please
share.


On Thu, Jun 3, 2010 at 9:31 PM, HallMarc Websites <
[email protected]> wrote:

>
>
> -----Original Message-----
> From: Jim Lucas [mailto:[email protected]]
> Sent: Thursday, June 03, 2010 11:38 AM
> To: php General List
> Cc: Steve Marquez
> Subject: Re: [PHP] PHP Form submitting to MySQL not working...
>
> Steve Marquez wrote:
> > I am running Apache (not sure which version, where do I find that?) it is
> running on a Macbook Pro.
> > The error happened when I submitted the form.
>
> Sorry, should have been more specific.  Where did you see the error?  In
> your
> browser, error logs of your web server, etc... ?
>
> If this error was displayed in your browser, you should look in your apache
> error log file at that corresponding time to see if it has any more
> information.
>
> >
> > The MySQL DB is hosted locally on my machine.
> >
> > No cat here at the office, no children either, they are all at home.
> >
> > :)
> >
>
>
> --
> Jim Lucas
>
> A: Maybe because some people are too annoyed by top-posting.
> Q: Why do I not get an answer to my question(s)?
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> On a side note; yes, as you can see I am still alive and well. Business has
> slowed down enough that I had time to actually read a few posts!
>
> Marc Hall
> HallMarc Websites
> www.hallmarcwebsites.com
>
>
>
> __________ Information from ESET Smart Security, version of virus signature
> database 5169 (20100603) __________
>
> 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
>
>


-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message ---
Strangest thing... it just started working again. Odd.

Is there an easy way to view the error logs? As you can tell, I am still a 
novice at this. 
I am on Apache2

Thanks for your help.

-- 
Steve Marquez
Marquez Design
e-mail: [email protected]
web: http://www.marquez-design.com
phone: 479-648-0325 


On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:

> Steve Marquez wrote:
>> Good morning,
>> 
>> I have a PHP form that I have been using for some time now on a Macbook Pro 
>> running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
>> morning, when I submitted (it is a journaling application) it came up with 
>> the following error: 
>> 
>> No such file or directory 
>> 
>> Can anyone point me in the right direction to fix this? Have you ever seen 
>> this before?
>> 
>> Thanks,
>> 
>> Steve Marquez
> 
> Where exactly did you see this error?
> 
> 1) In your browser when you tried loading the form?
> 2) In your browser when you submitted the form?
> 3) In the error logs of your web server?
> 
> Other questions:
> 
> What type of web server are you running?
> 
> Did your cat stomp on your keyboard?
> 
> Are the files stored locally or are they on a network/remote drive?
> 
> Children doing things they should not be doing? (Happened to me once...)
> 
> Are you accessing the files via http://localhost/... ?? or as a local file?
> 
> -- 
> Jim Lucas
> 
> A: Maybe because some people are too annoyed by top-posting.
> Q: Why do I not get an answer to my question(s)?
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?


--- End Message ---
--- Begin Message ---
On Thu, 2010-06-03 at 12:58 -0500, Steve Marquez wrote:

> Strangest thing... it just started working again. Odd.
> 
> Is there an easy way to view the error logs? As you can tell, I am still a 
> novice at this. 
> I am on Apache2
> 
> Thanks for your help.
> 


It depends. On most Linux distros there are log viewers that let you
look at all the different logs from one drop-down menu.

Otherwise, the logs are all just text files, so you can view them in any
text editor from kate to notepad to vim.

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



--- End Message ---
--- Begin Message ---
Steve,

Do you know where Apache is installed? If yes, you have something like
error.log and access.log. Find them and nail them them down.

I am a novice, too and the best way to learn is to answer here and getting
corrected by other PHP gurus! So, all in the name of learning! :)

--Shreyas

On Thu, Jun 3, 2010 at 11:28 PM, Steve Marquez
<[email protected]>wrote:

> Strangest thing... it just started working again. Odd.
>
> Is there an easy way to view the error logs? As you can tell, I am still a
> novice at this.
> I am on Apache2
>
> Thanks for your help.
>
> --
> Steve Marquez
> Marquez Design
> e-mail: [email protected]
> web: http://www.marquez-design.com
> phone: 479-648-0325
>
>
> On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:
>
> > Steve Marquez wrote:
> >> Good morning,
> >>
> >> I have a PHP form that I have been using for some time now on a Macbook
> Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But
> this morning, when I submitted (it is a journaling application) it came up
> with the following error:
> >>
> >> No such file or directory
> >>
> >> Can anyone point me in the right direction to fix this? Have you ever
> seen this before?
> >>
> >> Thanks,
> >>
> >> Steve Marquez
> >
> > Where exactly did you see this error?
> >
> > 1) In your browser when you tried loading the form?
> > 2) In your browser when you submitted the form?
> > 3) In the error logs of your web server?
> >
> > Other questions:
> >
> > What type of web server are you running?
> >
> > Did your cat stomp on your keyboard?
> >
> > Are the files stored locally or are they on a network/remote drive?
> >
> > Children doing things they should not be doing? (Happened to me once...)
> >
> > Are you accessing the files via http://localhost/... ?? or as a local
> file?
> >
> > --
> > Jim Lucas
> >
> > A: Maybe because some people are too annoyed by top-posting.
> > Q: Why do I not get an answer to my question(s)?
> > A: Because it messes up the order in which people normally read text.
> > Q: Why is top-posting such a bad thing?
>
>


-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message ---
On Fri, 2010-06-04 at 00:25 +0530, Shreyas wrote:

> Steve,
> 
> Do you know where Apache is installed? If yes, you have something like
> error.log and access.log. Find them and nail them them down.
> 
> I am a novice, too and the best way to learn is to answer here and getting
> corrected by other PHP gurus! So, all in the name of learning! :)
> 
> --Shreyas
> 
> On Thu, Jun 3, 2010 at 11:28 PM, Steve Marquez
> <[email protected]>wrote:
> 
> > Strangest thing... it just started working again. Odd.
> >
> > Is there an easy way to view the error logs? As you can tell, I am still a
> > novice at this.
> > I am on Apache2
> >
> > Thanks for your help.
> >
> > --
> > Steve Marquez
> > Marquez Design
> > e-mail: [email protected]
> > web: http://www.marquez-design.com
> > phone: 479-648-0325
> >
> >
> > On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:
> >
> > > Steve Marquez wrote:
> > >> Good morning,
> > >>
> > >> I have a PHP form that I have been using for some time now on a Macbook
> > Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But
> > this morning, when I submitted (it is a journaling application) it came up
> > with the following error:
> > >>
> > >> No such file or directory
> > >>
> > >> Can anyone point me in the right direction to fix this? Have you ever
> > seen this before?
> > >>
> > >> Thanks,
> > >>
> > >> Steve Marquez
> > >
> > > Where exactly did you see this error?
> > >
> > > 1) In your browser when you tried loading the form?
> > > 2) In your browser when you submitted the form?
> > > 3) In the error logs of your web server?
> > >
> > > Other questions:
> > >
> > > What type of web server are you running?
> > >
> > > Did your cat stomp on your keyboard?
> > >
> > > Are the files stored locally or are they on a network/remote drive?
> > >
> > > Children doing things they should not be doing? (Happened to me once...)
> > >
> > > Are you accessing the files via http://localhost/... ?? or as a local
> > file?
> > >
> > > --
> > > Jim Lucas
> > >
> > > A: Maybe because some people are too annoyed by top-posting.
> > > Q: Why do I not get an answer to my question(s)?
> > > A: Because it messes up the order in which people normally read text.
> > > Q: Why is top-posting such a bad thing?
> >
> >
> 
> 


You haven't said what sort of operating system you're using. In Linux,
most of the logs are kept in sub-directories of /var/log I believe.
Windows, well they could be scattered anywhere. MacOS, not too sure
about that.

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



--- End Message ---
--- Begin Message ---
True. Since I am a Windows user, I find it here :

*C:\Program Files\EasyPHP 3.0\apache\logs*

--Shreyas

On Fri, Jun 4, 2010 at 12:27 AM, Ashley Sheridan
<[email protected]>wrote:

>  On Fri, 2010-06-04 at 00:25 +0530, Shreyas wrote:
>
> Steve,
>
> Do you know where Apache is installed? If yes, you have something like
> error.log and access.log. Find them and nail them them down.
>
> I am a novice, too and the best way to learn is to answer here and getting
> corrected by other PHP gurus! So, all in the name of learning! :)
>
> --Shreyas
>
> On Thu, Jun 3, 2010 at 11:28 PM, Steve Marquez
> <[email protected]>wrote:
>
> > Strangest thing... it just started working again. Odd.
> >
> > Is there an easy way to view the error logs? As you can tell, I am still a
> > novice at this.
> > I am on Apache2
> >
> > Thanks for your help.
> >
> > --
> > Steve Marquez
> > Marquez Design
> > e-mail: [email protected]
> > web: http://www.marquez-design.com
> > phone: 479-648-0325
> >
> >
> > On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:
> >
> > > Steve Marquez wrote:
> > >> Good morning,
> > >>
> > >> I have a PHP form that I have been using for some time now on a Macbook
> > Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But
> > this morning, when I submitted (it is a journaling application) it came up
> > with the following error:
> > >>
> > >> No such file or directory
> > >>
> > >> Can anyone point me in the right direction to fix this? Have you ever
> > seen this before?
> > >>
> > >> Thanks,
> > >>
> > >> Steve Marquez
> > >
> > > Where exactly did you see this error?
> > >
> > > 1) In your browser when you tried loading the form?
> > > 2) In your browser when you submitted the form?
> > > 3) In the error logs of your web server?
> > >
> > > Other questions:
> > >
> > > What type of web server are you running?
> > >
> > > Did your cat stomp on your keyboard?
> > >
> > > Are the files stored locally or are they on a network/remote drive?
> > >
> > > Children doing things they should not be doing? (Happened to me once...)
> > >
> > > Are you accessing the files via http://localhost/... ?? or as a local
> > file?
> > >
> > > --
> > > Jim Lucas
> > >
> > > A: Maybe because some people are too annoyed by top-posting.
> > > Q: Why do I not get an answer to my question(s)?
> > > A: Because it messes up the order in which people normally read text.
> > > Q: Why is top-posting such a bad thing?
> >
> >
>
>
>
>
> You haven't said what sort of operating system you're using. In Linux, most
> of the logs are kept in sub-directories of /var/log I believe. Windows, well
> they could be scattered anywhere. MacOS, not too sure about that.
>
>
>   Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>


-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message ---
I am on Mac OS 10.6
I found the logs using the console. It was pretty easy and displays nicely.

I am reviewing the entries now.

Thanks for your help.

-- 
Steve Marquez
Marquez Design
e-mail: [email protected]
web: http://www.marquez-design.com
phone: 479-648-0325 

On Jun 3, 2010, at 1:55 PM, Shreyas wrote:

> Steve,
> 
> Do you know where Apache is installed? If yes, you have something like 
> error.log and access.log. Find them and nail them them down. 
> 
> I am a novice, too and the best way to learn is to answer here and getting 
> corrected by other PHP gurus! So, all in the name of learning! :)
> 
> --Shreyas
> 
> On Thu, Jun 3, 2010 at 11:28 PM, Steve Marquez <[email protected]> 
> wrote:
> Strangest thing... it just started working again. Odd.
> 
> Is there an easy way to view the error logs? As you can tell, I am still a 
> novice at this.
> I am on Apache2
> 
> Thanks for your help.
> 
> --
> Steve Marquez
> Marquez Design
> e-mail: [email protected]
> web: http://www.marquez-design.com
> phone: 479-648-0325
> 
> 
> On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:
> 
> > Steve Marquez wrote:
> >> Good morning,
> >>
> >> I have a PHP form that I have been using for some time now on a Macbook 
> >> Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But 
> >> this morning, when I submitted (it is a journaling application) it came up 
> >> with the following error:
> >>
> >> No such file or directory
> >>
> >> Can anyone point me in the right direction to fix this? Have you ever seen 
> >> this before?
> >>
> >> Thanks,
> >>
> >> Steve Marquez
> >
> > Where exactly did you see this error?
> >
> > 1) In your browser when you tried loading the form?
> > 2) In your browser when you submitted the form?
> > 3) In the error logs of your web server?
> >
> > Other questions:
> >
> > What type of web server are you running?
> >
> > Did your cat stomp on your keyboard?
> >
> > Are the files stored locally or are they on a network/remote drive?
> >
> > Children doing things they should not be doing? (Happened to me once...)
> >
> > Are you accessing the files via http://localhost/... ?? or as a local file?
> >
> > --
> > Jim Lucas
> >
> > A: Maybe because some people are too annoyed by top-posting.
> > Q: Why do I not get an answer to my question(s)?
> > A: Because it messes up the order in which people normally read text.
> > Q: Why is top-posting such a bad thing?
> 
> 
> 
> 
> -- 
> Regards,
> Shreyas


--- End Message ---
--- Begin Message ---
Folks,

Just quite could not stop taking your inputs before I start my learning
curve to shape up.

Should I use one of these frameworks or just *K*eep *I*t *S*imple and *S*tupid
and learn it the traditional way? Thoughts?

-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message --- First spend time working with straight up PHP, writing your own stuff, throwing it away, and writing it again. What you'll learn that way is immeasurable.

Then pick a framework (Cake, Drupal, Symfony, Zend, PEAR, whatever) and learn it, maybe two. Try working with it and extending it.

Then do the bulk of your serious work with that framework, having had enough experience to understand what it's doing and why.

The timeframe for that process will vary widely from a few months to a few years depending on how quickly you pick stuff up and how much time you have, but that's going to get you the best education and productivity.

--Larry Garfield

On 6/3/10 12:51 PM, Shreyas wrote:
Folks,

Just quite could not stop taking your inputs before I start my learning
curve to shape up.

Should I use one of these frameworks or just *K*eep *I*t *S*imple and *S*tupid
and learn it the traditional way? Thoughts?


--- End Message ---

Reply via email to