baig772 19 Web Application Architect

this is the problem, file is not running through browser

baig772 19 Web Application Architect

Is that a java method? What class is it in?
Where is the coding executing?
What starts the code's execution?

it is a php method
using java-php bridge to run php on tomcat. after installation, when i go to http://localhost:8080/myproject,
here it shows me this error

baig772 19 Web Application Architect

i am executing a php file simple with

phpinfo();
baig772 19 Web Application Architect
.listen(8080);

Shouldn't it be: http://localhost:8080 ?

changed

listen(8080)

to

listen(1331)

but still having same problem

baig772 19 Web Application Architect

Hi all
i am new to Node.js
i followed the tutorial and typed the following

var sys = require("util"),
    http = require("http");

http.createServer(function(request, response) {
    response.sendHeader(200, {"Content-Type": "text/html"});
    response.write("Hello World!");
    response.close();
}).listen(8080);

sys.puts("Server running at http://localhost:1331/");

its running fine while i run it through cmd
but when i open my browser and type the url i.e. http://localhost:1331,
it says
failed to open requested URL

do i have to setup any web server for it??? or Node.js does it itself???

baig772 19 Web Application Architect

hi all
i am new to java
i want to run java php bridge as described here

now i am getting the following error

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Could not connect to server
	php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Unknown Source)
root cause

php.java.bridge.http.FCGIConnectException: Could not connect to server
	php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:64)
	php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Unknown Source)
root cause

java.io.IOException: File \\.\pipe\C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp\JavaBridge614082128684791829.socket not writable
	php.java.bridge.http.FCGIConnectException.<init>(FCGIConnectException.java:37)
	php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:64)
	php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Unknown Source)
root cause

java.io.IOException: PHP not found. Please install php-cgi. PHP test command was: [php-cgi, -v] 
	php.java.bridge.Util$Process.start(Util.java:1145)
	php.java.servlet.fastcgi.FCGIProcess.start(FCGIProcess.java:68)
	php.java.bridge.http.NPChannelFactory.doBind(NPChannelFactory.java:94)
	php.java.bridge.http.FCGIConnectionFactory.runFcgi(FCGIConnectionFactory.java:88)
	php.java.bridge.http.FCGIConnectionFactory$1.run(FCGIConnectionFactory.java:109)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.35 logs.

Apache Tomcat/5.5.35
baig772 19 Web Application Architect

remove value attribute from input tag
also try

document.getElementById('some_id').getValue()
baig772 19 Web Application Architect

Tried your code but unable to locate the problem
you should try some other example

baig772 19 Web Application Architect

This problem occurs if your jQuery is not included correctly,
also confirm the inclusion of your jQuery file

baig772 19 Web Application Architect

while starting session

$_SESSION['is_logged_in']['true']

and on download page, you can check

if($_SESSION['is_logged_in']=='true')
{
 do some download work
}
baig772 19 Web Application Architect

install wamp, xampp or any other web server in your machiene
put your site folder in /www (if wamp) or /htdocs(if xampp)
start the server
type url in your browser i.e.
http://localhost/yoursite

baig772 19 Web Application Architect

Have you tried MS visio?
if not then try it

baig772 19 Web Application Architect

Try

SELECT *, MAX(Calibration_Due_Date) FROM equipment_calibration WHERE `Calibration_Due_Date`<= ADDDATE(CURDATE(), INTERVAL 14 DAY)
baig772 19 Web Application Architect

try

<img src="img.jpg" onClick="window.open('http://www.daniweb.com')" />

i think it should work fine

SolidSolutions commented: concise and kind. +5
baig772 19 Web Application Architect
baig772 19 Web Application Architect

Dear subrata
i have already read this documentation.
still i am unable to write my own rule
:(

baig772 19 Web Application Architect

Hi all
i want to check regular expression of a text field value
i.e.
it should not contain any '.,@' and other special characters except '_' and '-'.
How can i write my rule in

preg_match()

?

baig772 19 Web Application Architect

that's good
please mark the thread solved :)

baig772 19 Web Application Architect

i am not seeing any changes
on all pages i am seeing

logged in as:
subrata nandi
baig772 19 Web Application Architect

try using

mysql_insert_id()

instead of where you are selecting from the table after inserting in it

baig772 19 Web Application Architect

it seems that you are unseting the session on next page

baig772 19 Web Application Architect

please share your code

baig772 19 Web Application Architect

type

echo "<pre>";
print_r($_POST);

and share what you get

baig772 19 Web Application Architect

if you have that file in pdf format then try this

<a href"link to the file.pdf">Read me</a>

and if you don't have the file then http://www.fpdf.org/ will be helpfull to you

baig772 19 Web Application Architect

what version of wamp you are using?
and whats the problem with wamp?
its not starting or not going online???
please give some details of your rpoblem

baig772 19 Web Application Architect

try the following in the function which closes the window or tab

unset($session_variable)

you can also try
destroy, session_destroy() methods

baig772 19 Web Application Architect

please show your table structure for category table

baig772 19 Web Application Architect

Hi all
how i can put a watermark on a HTML div??

baig772 19 Web Application Architect

specify your problem also

baig772 19 Web Application Architect

thanku so much ardav :)

baig772 19 Web Application Architect

Hi all
What is ORM (Object Relational Mapping)?
I have just heared the name ORM, but don't know what it does :)

baig772 19 Web Application Architect

Baig, whats the situation of IT job over there? There are lot of PHP job in Pak but don't know about Java. Does any company currently working in Java project?

IT market is very good in Pak. many companies are working in both JAVA and Php. but Php has more job market than JAVA in Pak. but companies working in Java atleast have job security :|

baig772 19 Web Application Architect

fixed with my problem. in kohana 3.x.x
there is a specific way to write a function i.e.

public function action_showLogin(){
//show form
}

"action_" is necessary with every function name in kohana 3
where as in my code above, "validateLogin" was my function name. i changed it to action_validateLogin and now its working :)

baig772 19 Web Application Architect

i am using localhost

baig772 19 Web Application Architect

now its giving access forbidden error :(

baig772 19 Web Application Architect

Hi all
i am new to kohana 3.2.x
i used to work on kohana 2.3.x
the directory structure is not same in both cases so i am getting problem while posting my form to any controller.

<form action="<?php echo url::base();?>admin/validateLogin" method="post">
            <h3>Enter Your Credentials:</h3>        
            <fieldset>
                
                <p><label>Email:</label><input type="text" name="email" /></p>
                <p><label>Password:</label><input type="password" name="password" /></p>
              
                <input type="submit" value="Login" />
            </fieldset>
        </form>

here is my form.
giving "object not found error" i.e its not kohana error, server is unable to find the specified URL

baig772 19 Web Application Architect

Explain "not downloading", do you get an error ? What's happening, need more info ?

no im not getting any error. download does not start on this page after printing "File exists"

<?php
$file = 'monkey.gif';

if (file_exists($file)) {
    echo "file exists";
    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename='.basename($file));
    header('Content-Transfer-Encoding: binary');
    header('Expires: 0');
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');
    header('Content-Length: ' . filesize($file));
    ob_clean();
    flush();
    readfile($file);
    exit;
}
?>
baig772 19 Web Application Architect

file names are correct

if(file_exixts($filename)){
echo "file exists";
//download
}
else{
echo "file does not exixts";
}

its showing file exists but not downloading it

baig772 19 Web Application Architect

hi all
i am unable to download files from live server.
but it works fine on development server.
is there any server issue with it? do i have to unable or set any extension in phpmyadmin or php.ini?

baig772 19 Web Application Architect

http://www.lynda.com/WordPress-2-5-tutorials/wordpress-com-2-5-essential-training/601-2.html
basic knowledge of Php is required. and to know how a CMS works,
i have provided a link to the tutorials of wordpress

baig772 19 Web Application Architect
baig772 19 Web Application Architect

hmm basic knowledge of php is required. but extensive knowledge of CMS is required

baig772 19 Web Application Architect

http://ckeditor.com/demo
you can try this one but if you have ever worked on some wiki,
wiki uses WYSWIG text editor.

baig772 19 Web Application Architect

and there is no such extra ordinary thing in java which is not present in Php

Tofayel commented: I agree with you +0
baig772 19 Web Application Architect

same here
i have read 2 courses of java but now working in Php, php is much more easier and FASTER then Java :)

baig772 19 Web Application Architect

hmmm no
i will go woth the language with high job market

baig772 19 Web Application Architect

if you have already taken java classes, then you should learn java, but market is all about Php, java is highly paid but with very less job market.
where as Php have a huge job market

baig772 19 Web Application Architect

yes i want this with case sensitivity

baig772 19 Web Application Architect

how string comparison is done in php?
i wan to copmpare two strings and result i want is the same letters in both strings?
any help plz

baig772 19 Web Application Architect

hi all
i want to create facebook like iamge gallery in my website.
i.e. as facebook displayes images, i want to display images in the same way in my website