|
Source: http://community.livejournal.com/aspdotnet/56888.html
Date: 01/27/06 (PHP Community) Keywords: php, html, web
I've got this mailing script, it's a work in progress, I'm getting this error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxxx/public_html/mailer2.php on line 55
Line 55 is this: $form .= "
Date: 01/29/06 (Apache) Keywords: html, web, apache
I posted here about a month and a half ago about my *issues* with apache.
It seems that everyone I know basically knows NOTHING about the apache webserver, even the person who originally turned me toward it. So I was hoping I could get some info as to what is going on with the server and why it is having problems.
I don't know what types of errors I am having or what the errors mean, but I'll just copy and paste the error log here and maybe (crosses fingers, prays, wishes on shooting stars, etc.) someone, anyone, will take a crack at it. I've had this insane problem with apache not working for so long and before that it seemed that everything ran really smoothly so this is really boggling my mind. To refer to my previous post, you can go here: http://community.livejournal.com/ap
here is the error log:
[Mon Dec 12 17:15:41 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 12 17:15:41 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 12 17:15:42 2005] [notice] Parent: Created child process 4060
[Mon Dec 12 17:15:42 2005] [notice] Child 4060: Child process is running
[Mon Dec 12 17:15:42 2005] [notice] Child 4060: Acquired the start mutex.
[Mon Dec 12 17:15:42 2005] [notice] Child 4060: Starting 250 worker threads.
[Mon Dec 12 17:29:28 2005] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Dec 12 17:29:28 2005] [notice] Child 4060: Exit event signaled. Child process is ending.
[Mon Dec 12 17:29:28 2005] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.
[Mon Dec 12 17:29:29 2005] [notice] Child 4060: Released the start mutex
[Mon Dec 12 17:29:30 2005] [notice] Child 4060: Waiting for 250 worker threads to exit.
[Mon Dec 12 17:29:30 2005] [notice] Child 4060: All worker threads have exited.
[Mon Dec 12 17:29:30 2005] [notice] Child 4060: Child process is exiting
[Mon Dec 19 19:51:48 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 19 19:51:48 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 19 19:51:48 2005] [notice] Parent: Created child process 2648
[Mon Dec 19 19:51:48 2005] [notice] Child 2648: Child process is running
[Mon Dec 19 19:51:48 2005] [notice] Child 2648: Acquired the start mutex.
[Mon Dec 19 19:51:48 2005] [notice] Child 2648: Starting 250 worker threads.
[Sat Dec 24 14:12:32 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Sat Dec 24 14:12:33 2005] [notice] Server built: Oct 9 2005 19:16:56
[Sat Dec 24 14:12:33 2005] [notice] Parent: Created child process 704
[Sat Dec 24 14:12:33 2005] [notice] Child 704: Child process is running
[Sat Dec 24 14:12:33 2005] [notice] Child 704: Acquired the start mutex.
[Sat Dec 24 14:12:33 2005] [notice] Child 704: Starting 250 worker threads.
[Mon Dec 26 01:51:39 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 26 01:51:39 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 26 01:51:40 2005] [notice] Parent: Created child process 1060
[Mon Dec 26 01:51:40 2005] [notice] Child 1060: Child process is running
[Mon Dec 26 01:51:40 2005] [notice] Child 1060: Acquired the start mutex.
[Mon Dec 26 01:51:40 2005] [notice] Child 1060: Starting 250 worker threads.
[Mon Dec 26 14:32:48 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 26 14:32:48 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 26 14:32:48 2005] [notice] Parent: Created child process 1232
[Mon Dec 26 14:32:48 2005] [notice] Child 1232: Child process is running
[Mon Dec 26 14:32:48 2005] [notice] Child 1232: Acquired the start mutex.
[Mon Dec 26 14:32:49 2005] [notice] Child 1232: Starting 250 worker threads.
[Mon Dec 26 16:29:13 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 26 16:29:13 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 26 16:29:13 2005] [notice] Parent: Created child process 1228
[Mon Dec 26 16:29:13 2005] [notice] Child 1228: Child process is running
[Mon Dec 26 16:29:13 2005] [notice] Child 1228: Acquired the start mutex.
[Mon Dec 26 16:29:14 2005] [notice] Child 1228: Starting 250 worker threads.
[Mon Dec 26 16:35:13 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 26 16:35:13 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 26 16:35:13 2005] [notice] Parent: Created child process 1244
[Mon Dec 26 16:35:13 2005] [notice] Child 1244: Child process is running
[Mon Dec 26 16:35:13 2005] [notice] Child 1244: Acquired the start mutex.
[Mon Dec 26 16:35:13 2005] [notice] Child 1244: Starting 250 worker threads.
[Mon Dec 26 18:55:33 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Mon Dec 26 18:55:33 2005] [notice] Server built: Oct 9 2005 19:16:56
[Mon Dec 26 18:55:33 2005] [notice] Parent: Created child process 1376
[Mon Dec 26 18:55:33 2005] [notice] Child 1376: Child process is running
[Mon Dec 26 18:55:34 2005] [notice] Child 1376: Acquired the start mutex.
[Mon Dec 26 18:55:34 2005] [notice] Child 1376: Starting 250 worker threads.
[Wed Dec 28 15:14:34 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Wed Dec 28 15:14:34 2005] [notice] Server built: Oct 9 2005 19:16:56
[Wed Dec 28 15:14:34 2005] [notice] Parent: Created child process 616
[Wed Dec 28 15:14:35 2005] [notice] Child 616: Child process is running
[Wed Dec 28 15:14:35 2005] [notice] Child 616: Acquired the start mutex.
[Wed Dec 28 15:14:35 2005] [notice] Child 616: Starting 250 worker threads.
[Wed Dec 28 15:20:14 2005] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Wed Dec 28 15:20:14 2005] [notice] Server built: Oct 9 2005 19:16:56
[Wed Dec 28 15:20:14 2005] [notice] Parent: Created child process 720
[Wed Dec 28 15:20:15 2005] [notice] Child 720: Child process is running
[Wed Dec 28 15:20:15 2005] [notice] Child 720: Acquired the start mutex.
[Wed Dec 28 15:20:15 2005] [notice] Child 720: Starting 250 worker threads.
[Thu Dec 29 11:03:40 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Dec 29 11:03:45 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Dec 29 11:03:48 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Dec 29 11:03:52 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Dec 29 11:03:52 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Fri Dec 30 03:14:52 2005] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Sat Dec 31 16:14:15 2005] [notice] Server built: Oct 9 2005 19:16:56
[Sat Dec 31 16:14:15 2005] [notice] Parent: Created child process 708
[Sat Dec 31 16:14:15 2005] [notice] Child 708: Child process is running
[Sat Dec 31 16:14:15 2005] [notice] Child 708: Acquired the start mutex.
[Sat Dec 31 16:14:16 2005] [notice] Child 708: Starting 250 worker threads.
[Sun Jan 01 17:00:25 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Jan 01 17:00:25 2006] [notice] Child 708: Exit event signaled. Child process is ending.
[Sun Jan 01 17:00:26 2006] [notice] Child 708: Released the start mutex
[Sun Jan 01 17:00:27 2006] [notice] Child 708: Waiting for 250 worker threads to exit.
[Sun Jan 01 17:00:27 2006] [notice] Child 708: All worker threads have exited.
[Sun Jan 01 17:00:27 2006] [notice] Child 708: Child process is exiting
[Sun Jan 01 17:00:28 2006] [notice] Parent: Child process exited successfully.
[Sun Jan 01 17:00:32 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Sun Jan 01 17:00:32 2006] [notice] Server built: Oct 9 2005 19:16:56
[Sun Jan 01 17:00:32 2006] [notice] Parent: Created child process 9200
[Sun Jan 01 17:00:32 2006] [notice] Child 9200: Child process is running
[Sun Jan 01 17:00:32 2006] [notice] Child 9200: Acquired the start mutex.
[Sun Jan 01 17:00:32 2006] [notice] Child 9200: Starting 250 worker threads.
[Sat Jan 07 03:06:52 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Sat Jan 07 03:06:52 2006] [notice] Server built: Oct 9 2005 19:16:56
[Sat Jan 07 03:06:52 2006] [notice] Parent: Created child process 572
[Sat Jan 07 03:06:53 2006] [notice] Child 572: Child process is running
[Sat Jan 07 03:06:53 2006] [notice] Child 572: Acquired the start mutex.
[Sat Jan 07 03:06:53 2006] [notice] Child 572: Starting 250 worker threads.
[Sun Jan 22 18:30:36 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Sun Jan 22 18:30:37 2006] [notice] Server built: Oct 9 2005 19:16:56
[Sun Jan 22 18:30:37 2006] [notice] Parent: Created child process 2248
[Sun Jan 22 18:30:38 2006] [notice] Child 2248: Child process is running
[Sun Jan 22 18:30:38 2006] [notice] Child 2248: Acquired the start mutex.
[Sun Jan 22 18:30:39 2006] [notice] Child 2248: Starting 250 worker threads.
Date: 01/28/06 (PHP Community) Keywords: php, html
I am definatly no where near as good as most of you with PHP, but I have been coding HTML for about 6 years and I like to think I'm pretty good at it. In my most recent project I was using php pages (eg ?p=whatever), and I have used this type of navigation before, however on this recent project it seems to be screwing with my tables. The weird thing is, If I click refresh the tables fix themselves, But whenever the page loads it ALWAYS messes them up (screws with the alignment)
to see what I mean check out saintsstudios.com.
If anyone here can tell me how to fix this it would be greatly appreciated.
Date: 01/31/06 (PHP Community) Keywords: php, html
Wondering if someone can give me a hand with this code I'm trying to use. I can't find my error so I'm hoping someone can be my second eyes and catch it. I used a tutorial as I'm quite a newbie to php so anyone that can help, I'll be grateful.
I get this error - "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/silveri/public_html/beta/index.php on line 7"
Here is the code from index.php that I'm trying to use:
require_once("lib/template.php");
$page = new Page("template.html");
$page->replace_tags(
array(
"title" => "HOME",
"descript" => "Welcome to my website!"
"main" => "dat/index.dat",
"menu" => "dat/menu.dat",
"left" => "dat/submenu.dat",
"right" => "dat/right.dat",
"footer" => "dat/footer.php"
);
);
$page->output();
?>
Is there something I missed?
Update After many hours and with some help, problem fixed.
Date: 01/31/06 (Code WTF) Keywords: html
$ext_list = "";
$lastext = "no";
if(isset($_POST['ext_jpg'])) { $ext_list = "jpg"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_jpeg'])) { $ext_list .= "jpeg"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_gif'])) { $ext_list .= "gif"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_bmp'])) { $ext_list .= "bmp"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_png'])) { $ext_list .= "png"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_pdf'])) { $ext_list .= "pdf"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_txt'])) { $ext_list .= "txt"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_html'])) { $ext_list .= "html"; $lastext = "yes"; }
if($lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
if(isset($_POST['ext_htm'])) { $ext_list .= "htm"; $lastext = "yes"; }
АААААААААААА!!!!!!!!! ТОЛЬКО НЕ МОЙ МОСК!!!!!!!!!!!!!!
Source: http://community.livejournal.com/code_wtf/26078.html
Date: 02/01/06 (Web Development) Keywords: html, web
I have questions about search engine optimization. Well I have one question actually. How do I do it? The firm for which I worked before I went out on my own took care of all that with a web marketing director. On occasion I needed to put certain words or phrases in certain places, above photos toward the bottom of the page and so on, but I never learned what sort of reasoning was behind it. I don’t even know how to submit to search engines. I know I need meta tags and that they get pasted in the header html somewhere, but what goes into the meta tags? Help!
Date: 02/01/06 (WebDesign) Keywords: html, web
I have questions about search engine optimization. Well I have one question actually. How do I do it? The firm for which I worked before I went out on my own took care of all that with a web marketing director. On occasion I needed to put certain words or phrases in certain places, above photos toward the bottom of the page and so on, but I never learned what sort of reasoning was behind it. I don’t even know how to submit to search engines. I know I need meta tags and that they get pasted in the header html somewhere, but what goes into the meta tags? Help!
Source: http://community.livejournal.com/webdesign/1053902.html
Date: 02/01/06 (HTML Help) Keywords: html
Ok, I copied and pasted someones HTML they gave to display icons and it had decided to put MILES of space in between the tables. I know a bit about HTML, but I've never really learned much about tables, so I'm a little confused. If you'd like to check it out and let me know what I can do to fix it, I'd really appreciate it! Thanks in advance!
The post is here at my icon community
Source: http://community.livejournal.com/htmlhelp/2247908.html
Date: 02/03/06 (PHP Community) Keywords: php, mysql, html, database, sql
I have the following login script when it logs in it just goes straight to back to the login page. Now I've worked out it's something to do with the else or if ( $num != 0) statement as when commented out it goes thru ish but it doesn't print the $msg variable which I have an echo statement calling on it in the html body..The session start/auth isn't being worked on atm hence why it's been commented out.
#set variables
$usr = $_POST['username'];
$pass = $_POST['password'];
$self = $_SERVER['PHP_SELF'];
/*#Start session and auth it
if (isset( $usr ) and isset( $pass ) )
{
session_start();
$_SESSION['authorized'] = 'ok';
$url = (isset($_GET['url'])) ? $_GET['url'] : 'index.php';
header("Location: $url");
}*/
#check form not empty
if ( (!$usr) or (!$pass) )
{
header ("Location:{$_SERVER['HTTP_REFERER']}");
exit();
}
#connect to sql db
$conn = @mysql_connect( "localhost", "xxx", "xxx" ) or die( "Could not connect to SQL" );
$rs = @mysql_select_db ( "xxx", $conn ) or die ( "Could not select database" );
#select db
$sql = 'select * from users where \'user_name\'=\'$username\' and \'password\'= password(\'$password\')';
#execute the query
$rs = mysql_query($sql, $conn) or die ( 'Could not execute query' );
#get no. of matching rows
$num = mysql_num_rows ( $rs );
#check for match
if ($num != 0 )
{
$msg = 'Welcome $usr - you are now logged in';
}
else
{
header ("Location:{$_SERVER['HTTP_REFERER']}");
exit ();
}
Date: 02/03/06 (WebDesign) Keywords: css, html
What's the best way to translate 2,000 pages of formatted text from a Word document into html so that the formatted text stays the same?
I don't want to do it by hand! Is there a way to link up the style sheet in word to a CSS page in Dreamweaver?
Source: http://community.livejournal.com/webdesign/1054878.html
Date: 02/03/06 (Web Development) Keywords: html, web
I have a web based reporting package which produces summary
Previous page | || | Next page |