-
Posts
237 -
Joined
-
Last visited
Posts posted by ozestretch
-
-
Using this proccess?
[*]file_get_contents() - get the text
[*]fwrite() - to put string from above to new file
[*]Use your sql query with file on own server
-
Is that counted as whitespace?
-
Is this SQL related?
Either way, if remote files can not be used that way, maybe you need to read the file, create a new file on your own server, then do it that way?
-
I didn't know ICQ sent SMS until 4.30pm (about 25 minutes ago )
Maybe another can help you here
-
For FREE? No idea.
I use SMSglobal.com, you get 25 free sms when you register, after that you buy them, costs depends on quantity (this is more a commercial use, but you get a decent API with it)
If you register, feel free to put "stretch" as you referrer
-
I think this all comes down to the API of the SMS provider.
For example, the company I use allows me to change user ID (1 New Message from "oZestretch") instead of showing actual number etc... I also have low credit warning enabled to sms when it falls below a certain limit
Has ICQ documentation have any example code for it's API?
-
http://bit.ly/aAwOM DLGuard is best I seen, covers paypal and many others
67 and it seems a bit steep for just a piece of code.Are you aware to hire a software programmer the hourly fee, for a decent coder, would easily start from $75 p/h
I bet no one here is going to create what you need when the time it will take would surpass what is already out there.
That said, anyone already knowledgeable in Clickbanks IPN (yes it exists) feel free to offer assistance
EDIT: If you already have some kind of code someone can assist you with, that is a whole different kettle of $scallops = $fish
-
The above only displays a "no pic" if ther is no user... what if there is a user, but no pic?
<?php // open the specified directory and check if it's opened successfully $dirPath = 'photo/'; if ($handle = opendir($dirPath)) { // keep reading the directory entries 'til the end $npg='1'; while (false !== ($file = readdir($handle))) { // just skip the reference to current and parent directory if ($file != "." && $file != "..") { if (is_dir("$dirPath/$file")) { // found a directory // do not think about it } else { // found an ordinary file // use $file $req_user_info = $database->getUserInfo($req_user); if($req_user_info['username']===$file || !$req_user){ echo "<img src=\"http://URLHERE/photo/".$file."\" width=\"400\" height=\"300\" >"; }else{ echo "no pic"; } } } } // ALWAYS remember to close what you opened closedir($handle); } ?>
-
<?php function valadate($x){ $x=mysql_real_esape_string($_POST['$x']); // should this - $_POST['$x'] actually be $x !? return($x); } echo valadate($x="john"); ?>
-
You could set a cron to run at certain intervals that executes the script to get the data from database, see if email is there to send, then send an email
-
<-- ajax noob
Could you set a cookie/session on the page calling the ajax then check it exists on the lol.php?
Can ajax set a cookie before it calls the lol.php?
What about checking referrer? (although you could just load lol.php in the browser that has the domain open already?! right?)
-
Not to mention you are calling the query twice
$result = mysql_query($query); //success if (mysql_query($query)) { //inform of this success print "&statust=Update successful."; } else { //otherwise report error print "&statust=Information NOT Updated please call us"; }
-
Make sure to
Is a SQL not php question... unless your php script is being looped?
<?php $query = "INSERT INTO `news2_voyeurmembers`.`members` ( `id` , `firstname` , `lastname` , `phone` , `occupation` , `dob` , `mm` , `dd` , `yyyy` , `emailaddy` , `address1` , `address2` , `city` , `tstate` , `zip` , `country` , `lastentered` , `membertype` , `feepaid` , `appdate` , `appseven` , `enrolldate` , `expires` , `sponsor` , `licnumber` , `sex` , `licexp` , `comments` , `compsb4mid` , `empcomps` , `empreduced` , `onlinecomp` , `industry` , `onlinereduced` , `flyerreduced` , `t12thstreduced` , `fullcovb4mid` , `fullcovlate` , `lastaltered` , `createdby` ) VALUES (NULL , '$newfirstname', '$newlastname', '$newphone', '$newoccupation', '$newdob', '$newmm', '$newdd', '$newyyyy', '$newemailaddy', '$newaddress1', '$newaddress2', '$newcity', '$newtstate', '$newzip', '$newcountry', '$newlastenetered' , '$newmembertype', '$newfeepaid', '$newappdate', '$newappseven', '$newenrolldate' , '$newexpires', '$newsponsor', '$newlicnumber', '$newsex', '$newlicexp', '$newcomments', '$newcompsb4mid' , '$newempcomps' , '$newempreduced' , '$newonlinecomp' , '$newindustry' , '$newonlinereduced' , '$newflyerreduced' , '$newt12thstreduced' , '$newfullcovb4mid' , '$newfullcovlate' , '$newlastaltered' , '$newcreatedby' ) LIMIT 1" ; ?>
-
I got your PM dejai, if you post it here others can help too.
Your PM said it responds with unknown user/password... check your $_POST names and make sure they are the same as the form fields your are using.
-
You could go on to make it like so throughout the above code
<?php $string='<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="952">'; $string.=' <tr>'; $string.=' <th bgcolor="#C0C0C0" width="154">Store number: '.$row->storenum.'<br />'.$row->created_at.'</th>'; $string.=' <th bg etc...
Can't be nukcered myself, but you should lol
-
As line breaks seem to be ok with your email, this should be fine, add your data in first
<?php $string .='<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="952"> <tr> <th bgcolor="#C0C0C0" width="154">Store number: '.$row->storenum.'<br />'.$row->created_at.'</th> <th bgcolor="#C0C0C0" width="133">11:00-11:30am</th> <th bgcolor="#C0C0C0" width="133">11:30-12:00pm</th> <th bgcolor="#C0C0C0" width="133">12:00-12:30pm</th> <th bgcolor="#C0C0C0" width="133">12:30-1:00pm</th> <th bgcolor="#C0C0C0" width="133">1:00-1:30 pm</th> <th bgcolor="#C0C0C0" width="133">1:30-2:00pm</th> </tr> <tr> <td width="154" align="right">Transactions:</td> <td width="133" align="center">'.$row->Trans11.'</td> <td width="133" align="center">you can put the rest in </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> </tr> <tr> <td width="154" align="right">Sales:</td> <td width="133" align="center">35</td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> </tr> <tr> <td width="154" align="right">Scheduled Hours:</td> <td width="133" align="center">45</td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> </tr> <tr> <td width="154" align="right">Actual Hours:</td> <td width="133" align="center">etc..</td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> </tr> <tr> <td width="154" align="right">Ideal Hours:</td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> </tr> <tr> <td width="154" align="right">Difference: </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> <td width="133" align="center"> </td> </tr> </table>'; ?>
-
was deleted, I remember posting it with the same if statement "if($betd >= 1 && $betd <=10);"
anyways, it is sorted for Gayner
-
Covered in one file
<?php if(isset($_POST['submit'])){ if(is_numeric($_POST['id'])) { $theidyouspecify = $_POST['id'];// define this as the id you specify }else{ $error[] = 'Id must be numeric.'; } // no error, so run the query if(!$error){ if(!mysql_connect("domain","user","pass")) $error[] = "Couldn't connect to database<br />"; if(!mysql_select_db("worksheets",$db)) $error[] = "Couldn't select database<br />"; $sql = "DELETE FROM worksheets WHERE id='$theidyouspecify' LIMIT 1"; if(!mysql_query($sql)){ $error[] = 'failed to remove from worksheets table<br />'; }else{ $error[] = 'Worksheets entry deleted<br />'; } $sql = "DELETE FROM calls WHERE id='$theidyouspecify' LIMIT 1"; if(!mysql_query($sql)){ $error[] = 'failed to remove from calls table<br />'; }else{ $error[] = 'calls entry deleted<br />'; } $sql = "DELETE FROM customers WHERE id='$theidyouspecify' LIMIT 1"; if(!mysql_query($sql)){ $error[] = 'failed to remove from customers table<br />'; }else{ $error[] = 'customers entry deleted<br />'; } } } ?> <div id="error"> <?php $error[]=''; foreach($error as $value){ echo $value; } ?> </div> <form name="id" method="POST" action="<?=$PHP_SELF;?>"> Enter worksheet id to delete ($worksheetnum) <input name="id" type="text" id="id" size="10" /> <input type="submit" name="submit" /> </form>
-
ermm, I replied with that and he clicked solved... but now my post that solved this issue is deleted?
-
<?php session_start(); if (isset($_POST['Rows'])) { if ($_POST['Rows']=="+") $_SESSION['rows']++; if ($_POST['Rows']=="-") $_SESSION['rows']--; header("Location: upload.php"); exit; } if (isset($_POST['Upload']) || $_POST['Upload']=="Upload") { for ($z=1; $z<=$_SESSION['rows']; $z++) { $curent="pic$z"; if (isset($_FILES[$curent]['name']) || $_FILES[$curent]['name']!="") { $new_name="image_".md5(date("U")); $new_name_small="$new_name"."_thumbs.jpg"; $thumb_size=250; list($width, $height, $type) = getimagesize($_FILES[$curent]['tmp_name']); $type = image_type_to_extension($type); $img_file = "$new_name".".jpg"; $upload_file = $img_file.basename($_FILES[$curent]['$new_name']); move_uploaded_file($_FILES[$curent]['tmp_name'], $upload_file); $img_ratio=$width/$height; if ($img_ratio>1){ $new_width = ($thumb_size<$width)?$thumb_size:$width; $new_height =$new_width/$img_ratio; }else{ $new_height = ($thumb_size<$width)?$thumb_size:$height; $new_width = $new_height*$img_ratio; } if ($type==".jpeg") $source = imagecreatefromjpeg($upload_file); if ($type==".png") $source = imagecreatefrompng($upload_file); if ($type==".gif") $source = imagecreatefromgif($upload_file); $thumb = imagecreatetruecolor($new_width, $new_height); imagecopyresampled($thumb, $source, 0, 0, 0, 0, $new_width, $new_height, $width, $height); imagejpeg($thumb, "$new_name_small" , 100); $poze.="$new_name, "; } sleep(1); } } if(isset($poze)){ echo $poze; } ?>
then of course, check the folder to see if it did actually upload.
-
that was direct copy from php.net
$time = 3600 // actually means 1hour (in seconds), so set to suit
Also are you running php5 or 4? private I believe is a php5 thing that is used in a class... getting over my head
I was simply pointing to a course of action you can try.
If was I, I would try editing like;
<?php function startSession($time = 3600, $ses = 'MYSES') { session_set_cookie_params($time); session_name($ses); session_start(); // Reset the expiration time upon page load if (isset($_COOKIE[$ses])) setcookie($ses, $_COOKIE[$ses], time() + $time, "/"); } $this=startSession('20','MYSESSIONAME'); ?>
-
add this to upload.php
session_start(); error_reporting(E_ALL);
-
So are you asking if you can use cookies from 1 domain, to another domain?
-
You say it is not working. What aspect is not working? The file upload? The thumb generation? Single or multiple uploads/thumbnails?
[SOLVED] Simple Login
in PHP Coding Help
Posted
What is it not doing?