post your code .i need to look through
:)
post your code .i need to look through
:)
I remember i wrote you a working script few days ago.
Multi upload php script.
;)
Today is: <?=Date("l F d, Y")?> is just a short notation for
Today is: <?php=Date("l F d, Y")?>
no, there is a bug in the second.
<?php=Date("l F d, Y")?> // no good man.
syntax is wrong.
its either
<?php echo Date("l F d, Y"); ?>
//or
<?=Date("l F d, Y")?> .
and they should work fine in any server. They are both standard php short and normal tag. Not asp tags.
If this does not, then their server is not php enabled.
:)
just change the code and use it exactly like you see.
<html>
<head>
<title>JavaScript Popup Example 3</title>
<SCRIPT language="JavaScript1.2">
function poponload()
{
testwindow= window.open ("", "mywindow", // you start with your http and also you add your get variables
"location=1,status=1,scrollbars=1,width=100,height=100");
testwindow.moveTo(0,0);// your position
}
</SCRIPT>
</head>
<body onload="javascript: poponload()">
</body>
</html>
This should work :)
No no no You are not doing what i just told you.
That should work 100%;
Please follow carefully.
1.yes you need 3 files for this.
how do you go about this.???
Read this.
1.you have your first form that will do the redirection with the php
header function based on success. This will redirect to redirect.php file.
2. on the redirect.php file, it must contain a full html snippet.
a.put the java script in the head as usual.
b. go to the body tag and on onload <body onload="function popup">
</body>
3. You must have the popup file created and must be referenced inside you javacsript function
This will do what you wanted. :)
I am waiting :)
There is a way...
Javascript for some reasons will not work just embedding like that.
if you really want the popup.
do the php header("location:foo.php");
put your popup on foo.php head tag your javascript function.
The popup.php which will take the redirection and produce the popup for you.
1. This means the popup.php will do the popup . that is new window basesd on what ever you name it.
2. put in html body tag action to run the java script function. <body onload='java function'>
Bingo :)
You get the pop up.
you can add all you variables to get the on the new popup window!!
you feel me :)
And was the first login script written in php?
Try this
put all the javscript into a php variable;
<?php
$foo=" <script language='javascript' type='text/javascript'>
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=500px,width=1000px');
if (window.focus) {newwindow.focus()}
return false;
}
</script>
";
?>
And echo it where needed.
I am awaiting for your outcome.
Explore :)
Try and echo messages on your file to track the flow of your code.
debuging is very important.
You have 2 includes so no one can know what the 2 includes contains.
Try echo bug checks ok??
very handy php error check
Explore :)
YOu can do this with perl...
php is a bit limited when it come to system interactions.
Explore :)
In my HTML-page I am using following HTML + PHP-code:
Today is: <? print(Date("l F d, Y")); ?>.
I would expect to see:
Today is: monday October 4, 2010.
or something like that.The only thing I see is:
Today is:.
(mind the dot at the end.
Do this..
In my HTML-page I am using following HTML + PHP-code:
Today is: <?=Date("l F d, Y")?> // This should work like a charm.
pop mmm you need javascript.
do you need one?
Explore :)
Hello pallen,
try this
this works like a search engine script.
// concatenate all your variable like this.
$foo=$bar.$name.$isnd.$momo;
$query = "SELECT * FROM classics WHERE MATCH (author,title,year,isbn) AGAINST ('$foo' IN BOOLEAN MODE);
Know that this will work just like how google search engines work. it will pull out fields that has the search words.
You can attach this to the other basic search.
NOTE: if only one field qualifies, it will pull only that.
Explore :)
Thats a lot of time. just mark when you think gives you problems on your file and upload it to me via PM ok?
change the 31-33line to this
// redirect to success page
if($success){
// try this
@header("location:success_page.php?name=$username");// Direct to a new page
//echo "We've recived your contact information";
}
then have a success.php to recieve the get variable .
$foo=$_GET['name'];
echo "Thank you $foo<br/";
echo "You win the price"; Bla bla etc......
you get the idea ?
You can do all on the same file anyway.
Explore ;)
I will have to download your script and go through. can you reload your script again.
this time mark where you think needs attention. how much time do you have at hane before your deadline?
Explore :)
you can also do this simple on php.
this is very simple function. ha ha
<?php
funtion foo(){
// first receive the post variable from the form
$bar=$_POST['num'] ;
$numberDetails= split ('+',$bar); // split and take details
for ($c=0;$c<count($numberDetails);$c++){
// basic run through
$hoo+=$numberDetails[$c];
}
echo "The sum is ".$hoo; // echo answer.
}
?>
ha ha have fun
all in less than 2 minutes
Explore :)
Try this login page.
Just scribble some thing just now but should word fine.
myCon();//database connection
myDb(); //database selection
// your work on post variables
$uName=strip_tags(addslashes(trim($_POST['uName'])));
$password=strip_tags(addslashes(trim($_POST['password'])));
$remember=strip_tags(addslashes(trim($_POST['remember'])));
$logIn=$_POST['logIn'];
$password=sha1($password);
if($_GET['logout']==1){ // logout part
session_unset(); // and unset session
echo " You just logout";// logout notice
header("location:/index.php"); //and direct to what ever page
}
//Check for post array
if($_POST){
$count=0;
//DATABASE CONNECTION
$query="SELECT * FROM register WHERE(UNAME='$uName' AND PASSWORD='$password' AND CONFIRM=1)";
$result=mysql_query($query) or die( mysql_error());
$row=mysql_fetch_array($result);
$_SESSION['regId']=$row['RED_ID']; // put id for future use
//CHECK EMPTY STUFF
if(empty($uName) || empty($password)){
echo "<div class='error' style='margin-left:120px;'>";
echo "<h3>Oops error</h3>";
echo "Please enter your user name and password.</div><br/><br/>";
include_once("user-includes/logForm.php"); // form for entering username and password to login.
}
elseif(!mysql_num_rows($result)){
// check if the use does not exists
echo "<div class='error'style='margin-left:120px;'>";
echo "<h3>Oops error</h3>";
echo "Wrong user name and password.</div><br/><br/>";
include_once("user-includes/logForm.php");
}
else{
// if the user exists, do this fo future use.
session_regenerate_id();
session_register($uName);
$_SESSION['logIn']=1;
$_SESSION['password']=$password;
$_SESSION['uName']=$uName;
header("location:https://account.getcert.biz/account-login");//
locate to the user page.
}
}
else{
include_once("user-includes/logForm.php");// log for should be the login form input where you enter username and password .
}
howdy,
niths never use count(*) as count. no no no.
count is a mysql reserve word. besides that, your query should exe. ok.
Explore :)
Howdy,
mothergoose3
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 455120)' at line 5
INSERT INTO books_readingnow (brn_booksid, brn_started, brn_ended, brn_usernum) VALUES (65412340, 1284955200, , 455120)
- fatal error (31.1)
rerun you insert again as
INSERT INTO books_readingnow (brn_booksid, brn_started, brn_ended, brn_usernum) VALUES (65412340, 1284955200,'', 455120);
Pay attention to the third insert value. its not ,, but ,'',. Also check with your table that that field can accept null.
Explore :)
Look just silent the array or variable with @ sign.
You must have just had apache update lately i think.
USE @ to suppress the warning. its not error. Dont touch your working code ok?
Explore :)
you should also have a logout script to help user log out.
once the user clicks on the link.... bam logout.php and unset the session there.
security is the best form of programming.
Explore :)
OK
1.You have 2000 seats in the hall,
2. You want block.php
3.paid.php
4.free.php
or what?????
what is block,paid,free thing????
Can you please come out with some good flow chart.
Explore :)
Yes but they are not and wont be disabled by php.
Lets set the record straight. The short tags are one of php selling point.
And no web hosting services will dare to disable that. The short and long tag of php are php.
The asp style is only to show off. Its not part of php core.
explore :)
Te radio button value does not contain any reasonable value on line 54-61.
And how are you passing the variable over to the next file ...???
please more info :)
declare
$count=0; or $count; on line 25.
:)
Hold your breath,
Php tag <?=$foo?> can not be turn off.
this is not asp tag
<% ... %>
Trust me i host up to 468 customers website on my server and i know that any hosting company turning this off will be out of business in 2 minutes.
The php short tags are always available on default. The asp type is optional
;) explore
You are welcome good friend
:)
Can you please point me to where you think there is problem. what line or share more idea???
Just cant read through all your code now but i will be online for the 2 hours.
waiting for your reply :)
You are doing a lot of hand coding there. hoooop
I dont remember the last time i did this. Very time consuming and slow.
Try more iteration functions. Thats whay they were made for.
It will cut your code from 500 lines to 200 or less i think.
:) explore
Change the php ini conf.
php_ini_set.
learn that. :)
literal
max execution time= 20hours,
max upload =5G
But why not simple ftp function. why do you care about this java uploader.
reading dynamically xml and mp3 should not be any hard.
HTTP long upload gives your server out for exploitation. A long time for spending my holidays in your server.
Be careful man :)
Hi,
Just stop the php flow and start a normal html with quick php inserts.
like <tr><td><?=$row[foo]?></tr></td>
very handy :)
[form]
[input type='text' name='username' value='<?=$value?>']
[/form]
The little php snippet inside the form input value.
Are you getting the idea??
:)
Not bad,
Try strstr($haystack, $needle) function and print the benchmas.
Why this???
All this concatenations ???
from line 6-14. Writing code like this means you want a bug.
you could do all that in a very simple like this.
$message =" New Contact Information
$row[FIRST]
$row[LAST]
$row[AGE]
$row[GENDER]
$row[EMAIL]
Cell $row[CELL]
Home $row[HOME]
$row[CITY]
$row[LOCATION]
$row[TIMEBLOCK]
$row[PREFCTCT]
$row[COMMENT]
Fitness Goals:
Lose weight: $row[LOSE]
Gain muscle: $row[GAIN]
Lean and tone: $row[LEAN]
Injury Rehabilitation: $row[REHAB]
Sports specific training: $row[SPORTS]
Overall fitness: $row[OVERALL]
$row[COMMENT]
";
This works and its easier. Arrays from $_POST,$_GET, and from Mysql_fetch_array can work like this without the '' and "".
And make things easier for your self in the future.
learn how to insert php quick tags in html.
Very handy :)
Try this, nice and easy stuff ;)
$foo= split(",", $bar);// You got them in
//then get them like this
for($d=0:$d<count($foo);$d++){
echo $foo[$d]; // Print them out.
}
Explore :)
Are you planning to build your own mail system?
or you want something that users can use to only send out email where the from tag will be that it comes from a complete mail system right?
The from tag will not! but the reply to can be changed so if the recipient which to reply, it will reply to the reply-to email of your user.
Is that what you wanted?
:)
Borzoi,
That is also another option. That is when he does not care about keeping the state but he demands something coming from a post array.
This mean inline get is certainly no what he needs.
Good idea lol :)
"I cannot see anything saying what you are saying.
Would you quote it? Anyone to comment on this?"
evstevemd,
Are you on php performance thing.???
The link i provided should at least give you the idea about how system engine works. This is the same as far as any prog. language is concern.
I am little busy but i am digging in my past achives to get you more info ok?
Stay with me.
:) Explore
Its about mail server stuff.
This gives a lot of problems when installing some server cp.
such as gnupanel,baifox and most of them around.
:)
hi evstevemd.
Try this http://ubuntuforums.org/showthread.php?t=741263
read tchalvakspam and mssever comments.
Also there has been a lot of speed checks. google around.
check the video. not php but dealing with pro. engine.
i will get you stuff about php in time.
:)
Its possible but some bad guys will use your server for spamming spree.
do you really need this??
:)
upgrading Ubuntu 10.04 server to 10.04.1 server randomly touches mysql socket.
There has been issues on this and proftp, and email clients. some random shows!!
:)
You are everywhere mmm. evstevemd...!!
go baby go ubuntu..!!
but fix this bug. dkimproxy. It is killing ubuntu noob.
We need to keep all the noobies. we need numbers for now not quality.
"The lenovo technician told that this laptop does not support dual boot. "
Some rusty technician out there.
:)