-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
You can but having the program store the filenames in the folder and then compare on the next run, just an idea, if your convert running from a windows server which you have access to, then you can get some software thats mapping drives via a the FTP protocal you could then change the output path of the convert to the mapped FTP drive and your done..
-
[SOLVED] Having a problem with my code...
MadTechie replied to Lethal.Liquid's topic in PHP Coding Help
whats the problem ? elseif(isset($_POST['login'])) { switch to elseif(isset($_POST['user'])) { <form method="POST" action="upload_php.php" enctype="multipart/form-data"> yet header("Location: upload.php"); -
Question do you have the SQL server setup and running with a database setup ? Learning Online is easier to find what your looking for, but books help when you are on the bus/train or just away from the computer, personally i like to get away from the computer from time to time,
-
LOL true, common problem i face with speed is memory usage, i may add a caching but then i have to watch my memory usage,
-
As a side note functions work better when used correctly ie <?php switch ($user['vipage']) { case "0": break; case "1": break; case "2": break; case "3": break; default: echo ""; break; } ?> runs quicker than <?php if ($user['vipage'] == 0) { echo ""; }elseif ($user['vipage'] == 1) { echo ""; }elseif ($user['vipage'] == 2) { echo ""; }elseif ($user['vipage'] == 3) { echo ""; } ?> and yep again dumb
-
if took 0.030161857605 Switch took 0.036612033844 in a loop of 1000 time to took to find someone who cares ..... (still running) You know how dumb thats sounded ?
-
[SOLVED] newusernotification.php & contactus.php probs
MadTechie replied to ruuyx's topic in MySQL Help
are the sessions being set ? you need to find where newusernotification.php is being called from and check the same sessions are being set -
Whats the error message ?
-
isn't the config file a php file ? well i feel like your shootin yourself in the foot here but you can write the php file just like any other text file.
-
read up on sessions http://uk2.php.net/manual/en/ref.session.php
-
Source: http://www.cosmicat.com/aol/email/email_bcc.php
-
do you have <?php session_start(); ?> at the start of the page ? can you post the full page code again please
-
OK on the bottom of this screen (the one your reading from right now) on the blue bar PS i couldn't first time i looked
-
No you need to add the code just after you //Content has value <?php if(isset($_POST['content'])) { //Page was submitted if (!$_POST['content']) { //value of content is empty $output = "There was no data entered!"; echo $output; } else { //Content has value echo "<input name='temp' type='hidden' value='$temp' />"; if(($_POST['temp'] != $_SESSION['tmp1']) ) { //the block in Content has value goes here //Content has value $content = $_POST['content']; $info = $_POST['info']; $content = language_filter($content); @$fp = fopen("project4.txt", "a"); fwrite($fp, $content."\r\n"); $info = file('project4.txt'); for ($i = 0; $i < count($info); $i++) { echo '<br><hr>'; echo nl2br(htmlentities(stripslashes(trim($info[$i])),ENT_QUOTES)); } fclose($fp); } } $_SESSION['tmp1'] = $_POST['temp']; ?> *untested
-
[SOLVED] Quote Script Question - Probabbly Easy!
MadTechie replied to DCXtreme's topic in PHP Coding Help
Sure theNames .= $activity_name."\n"; // <--- Add this (replace \n with anything ie <BR> or [space]) (remember click solved) -
Cool click solved PS i used 2xsingle quotes (') on the replace
-
Whats wrong with the example i gave, it works fine, their maybe a better solution but still
-
[SOLVED] newusernotification.php & contactus.php probs
MadTechie replied to ruuyx's topic in MySQL Help
if you copy the newusernotification.php into the bottom of the contactus.php file, do you get an email ? you need to understand how the system works. -
[SOLVED] How can I find out the ID of a just created entry?
MadTechie replied to Vinze's topic in MySQL Help
Click Solved -
Ok the data your pulling in contains single quotes (') so the inserts are getting messed up,, your need to clean them up str_replace shoukd work
-
erm why not just strip them out before using them in the email ? !! <?php $NAME = strip_tags($NAME, '<br>') //if you wanna [b]keep[/b] the <br> ?> also if the text is showing up in italics on the database, i am guessing that your viewing it via your browser
-
the problems could be almost anywhere in the php class/config apache server php installation mysql installation mysql setup mysql database post your php class and work from their
-
No Fair theirs no 20-24 !!! i put 7-10, does testing your app code count as coding
-
Ermm you asked this question already and its been solved !!!