39,323 Topics

Member Avatar for
Member Avatar for sim_pack

hello all. i have this simple script to send emails to my subscribers. i've broken the sending into 20 emails per batch to get around getting a timeout error in my browser. without bias from using PEAR in sending multiple emails, any comments to improve the code will be appreciated. …

Member Avatar for asimshahiddIT
0
708
Member Avatar for k9shark

Hi all.. I've learnt a bit of html and css in the last week, and am eager to start with more complex website actions than simply posting widgets.. For instance, allowing comments to be made and feedback etc.. I was wondering whether PHP is a good place to start for …

Member Avatar for diafol
0
226
Member Avatar for abhi10kumar

I wrote a regular expression for [url]www.servicesonclick.com/products.php?brandid=27&pname=Acer[/url] that redirects to [url]http://www.servicesonclick.com/Acer[/url] and similar to [url]www.servicesonclick.com/products.php?brandid=29&pname=Gigabyte[/url] also redirects to [url]http://www.servicesonclick.com/Gigabyte[/url] and so on but its not working.. I dont want to retain brandid only retain pname. Here it is the [CODE] Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^servicesonclick\.com$ [NC] RewriteRule ^(.*)$ …

Member Avatar for abhi10kumar
0
297
Member Avatar for altarek

Hello at update form i have upload file and i want if it have value does not change I used this code to upload at insert form [CODE]$lfile = basename( $_FILES['file']['name']) ; $target_path = "files/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo"file uploaded" } else{ echo "There …

Member Avatar for nivibala
0
122
Member Avatar for sardana1

Dear experts! I want to following Technical Questions help. [B]Q1) Technical Questions [/B] a) In vbulletin where is the code to edit how items are displayed? b) Write, in pseudocode or PHP, a small program that calculates the sum of the first 540 natural numbers. Start numbering from 0. C) …

Member Avatar for diafol
-2
126
Member Avatar for johndohmen1963

Can someone tell me wy image/png dos not workinig in IE Her i have the code [CODE]<?php session_start(); if(!session_is_registered(myusername)) { header("location:../../../weinachtfeier.php"); } ?> <body bgcolor="blue"> <?php if (isset($_POST['senden'])) { if($_FILES['cover']['size'] === 0 || empty($_FILES['cover']['tmp_name']) || $_FILES['pic']['size'] === 0 || empty($_FILES['pic']['tmp_name'])) { echo("<form action='albums.php' <div style='background-color: blue; border: solid red 3px; …

Member Avatar for johndohmen1963
0
135
Member Avatar for PixelatedKarma

Hello everybody, So this week I am coming up with two questions, they are probably silly questions but I have googled and come up with nothing. [B]1)[/B]Figured out number 1 by myself, accidently had a / where it wasn't supposed to be. [B]2)[/B]This one I have not tried to hard …

Member Avatar for PixelatedKarma
0
103
Member Avatar for shadowscape

hello, i am creating a api, but i have run into a problem, its not returning anything when i call the action "profile" but everything else if working perfectly, please can you help me diagnose and ammend this problem thanks... [url]http://api.bititude.com/blueniverse/wardrobe.php?action=profile&friend=patch[/url] [CODE]<?php //////////////////////////////////////////////////////////// // Title: Blueniverse Developers API // // …

Member Avatar for shadowscape
0
121
Member Avatar for avinashmalla

I have written some sql codes in a file named sql.sql and I want to install my database using this file. How can I do it? Please help me out.... here is the sql code from the file sql.sql [CODE] CREATE DATABASE IF NOT EXISTS wm; USE wm; CREATE TABLE …

Member Avatar for sanchin
0
838
Member Avatar for Suetan

Okay, so here's the deal: I suck with forms and generating dynamic links. Here's the code that I'm working on [CODE=html]<div class="Normal_P"> <span class="Normal_C"> <form action="<?php getLink("http://www.atouchofmoore.net/certificate_stage3.php" array( <?php[/CODE] [CODE=php]if(mysql_num_rows($r) > 0) { while($d = mysql_fetch_array($r)) { $options .= "\n\t<option value=\"{$d[2]}\">{$d[1]}:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$d[2]}</option>"; } } for($x=0;$x<$cert_num;$x++) { $cert = ($x+1); $get_data['cert"$x"'] = …

Member Avatar for Suetan
0
204
Member Avatar for didi00

Hi everyone. So one of the last things of my shopping cart is to fix the currency. The problem is that it is on the left side like this $10, and I want it to be on the right like this 10$. Here is the file: [code] <?php header ('Content-type: …

Member Avatar for didi00
0
228
Member Avatar for sathyasaranya

hi, Its very urgent pls send me a source code in matlab for 3-D wavelet transform in image compression.

Member Avatar for Suetan
-12
64
Member Avatar for jaycastr

I am using a dropdown box with 6 options. On change I want ajax to return part of an HTML/PHP page that corresponds to one of the 6 questions. I was trying to put and if statement on the return page to determine the part that I wanted but I …

Member Avatar for jaycastr
0
148
Member Avatar for klemme

Another issue with sha1. I am creating users via a registration form, that when submitted, has made the password a sha1. [B]Registration script:[/B] [CODE] if($_POST['pass1']==$_POST['pass2']){ $password = sha1(mysqli_real_escape_string($connection, $_POST['pass1'])); } [/CODE] When the user log in, I have this script using sha1. [B]Login script:[/B] [CODE] $password = sha1(mysqli_real_escape_string($connection, $_POST['password'])); $sql=("SELECT …

Member Avatar for klemme
0
828
Member Avatar for dudzkie

Hello! So here's what i did i fetch data from my database in a table each row has a checkbox on in. Now what i already did is when i press submit the data that will be shown in the next form is the row that has check on the …

Member Avatar for vibhaJ
0
358
Member Avatar for branding4you

I need a simple solution I have invoice that i want to always diplay 10 rows, but if there is data in mysql it must first put those rows with data in on the invoice then subtract the number of rows and the difference will be the blank rows it …

Member Avatar for branding4you
0
173
Member Avatar for jacob21

Hi,I am working on this code.the problem is its not going to 2nd elseif(upload). need suggestion. [CODE]if(empty($mobile)) { echo '<script language="javascript">alert("Enter Phone Number")</script>;'; } elseif(!(empty($mobile))) { if((is_numeric($mobile))) { if((strlen($mobile)!=10)) echo '<script language="javascript">alert("phone number should be of 10 digit")</script>;'; } else { echo '<script language="javascript">alert("Please Enter valid phone number")</script>;'; } } …

Member Avatar for edwinhermann
0
83
Member Avatar for codetr

hi I wrote php code do.php [CODE]<?php session_start(); ob_start(); $salladim = $_SESSION['salla']; $salladin = isset($_GET['url'])?$_GET['url']:'' ; if(!in_array($salladin,$salladim)) { header( 'refresh: 1; url='.$_SERVER['HTTP_REFERER'].'' ); echo '<h2>Hazirlaniyor...</h2>'; exit(); } [/CODE] file.php [CODE]<?php session_start(); function kodsalla($uzunluk) { $karakterler = "0123456789"."ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $kod = ""; while(strlen($kod) < $uzunluk) { $kod .= substr($karakterler, (rand() % strlen($karakterler)), …

Member Avatar for twiss
0
403
Member Avatar for ditty

Hi In my new project i have to give an option to convert an english text to chinese.Can any one help me to do this. Thank you

Member Avatar for twiss
0
99
Member Avatar for shadowscape

Hello, i am trying to create a php script that offers the following functions... wardrobe.php?friend=FRIENDNAME wardrobe.php?hash=HASHTAG but i dont want you to be able to use both at the same time, please could you help improve my code to become more stable, add error checking and also offer this feature …

Member Avatar for shadowscape
0
140
Member Avatar for prawin@123

Hi i am new to PHP, Can anyone fix this problem to me. i am writing a code to change password where i have already encoded a password and stored in database. and in a new changepassword form i have to do two things one is to get the oldpassword …

Member Avatar for alphabeta8
0
192
Member Avatar for GigsD4X

[CODE] $doc=new DOMDocument(); $doc->loadHTML($str); $doc->getElementById("MainTable")->getAttribute("id");[/CODE] Displays the error Fatal error: Call to a member function getAttribute() on a non-object Oh and $str is the HTML of a page :p D: Am I doing something wrong? :o

Member Avatar for GigsD4X
0
119
Member Avatar for Xcelled194

I need to retrieve a HTML file from an external site ([url]http://example.com/page.html[/url]) and parse it. Parsing it is fine, however I can't seem to find a way to retrieve the file given this: [LIST] [*]Cannot use cURL [*]Must work on PHP 4.3.9+ [*]Must retrieve the file as a HTTP request …

Member Avatar for migcosta
0
612
Member Avatar for klemme

Hi, I am using sha1 for a registration form like this: [CODE] if($_POST['pass1']==$_POST['pass2']){ $password = sha1(mysqli_real_escape_string($connection, $_POST['pass1'])); } // This inserts an encrypted row in the DB, and works fine [/CODE] When i want to log in, well I cant login..This is the script: [CODE] $email = mysqli_real_escape_string($connection, $_POST['email']); $password …

Member Avatar for migcosta
0
628
Member Avatar for bufospro

Hi, I have a php array as the following format array([4]=>6 [8]=>12 [3]=>5) and I would like to add 6+12+5 The problem I have is that neither number of array cells nor array_keys are known. Thanks a lot

Member Avatar for bufospro
0
152
Member Avatar for calebcook

Hi. I've created an email system where people can sign up and receive emails. I want to make a link that says: "Trouble viewing email? View online!" or something like that. I've made it so that the email sent to people is saved to a database, and then it will …

Member Avatar for ko ko
0
214
Member Avatar for abhi10kumar

I want to write regular expression for [URL="http://www.servicesonclick.com/products.php?brandid=27&pname=Acer"]http://www.servicesonclick.com/products.php?brandid=27&pname=Acer[/URL] that redirects to [URL="http://www.servicesonclick.com/Acer"]http://www.servicesonclick.com/Acer[/URL] [B]and[/B] similar to [URL="http://www.servicesonclick.com/products.php?brandid=29&pname=Gigabyte"]http://www.servicesonclick.com/products.php?brandid=29&pname=Gigabyte[/URL] also redirects to [URL="http://www.servicesonclick.com/Gigabyte"]http://www.servicesonclick.com/Gigabyte[/URL] and so on

Member Avatar for abhi10kumar
0
287
Member Avatar for Dragonbaki

Hi experts., Can anybody help me out how to upload multiple files using php..? I need to select multiple files at the same time and when click to upload, it should upload all files at once..? Can we do that..? Help me...! Thanks, Dragonbaki

Member Avatar for diafol
0
147
Member Avatar for seularts

I know this is a stupid question, but how can I get the value $mail out of this function? [CODE] function Email() { $the_name = $_SESSION[$this->GetLoginSessionVar()]; $profil_query="SELECT * FROM $this->tablename WHERE username='$the_name'"; $resultate_profil=mysql_query($profil_query); $resultat=mysql_fetch_array($resultate_profil); $mail = $resultat['email']; } echo $mail; [/CODE] Thanks.

Member Avatar for seularts
0
124
Member Avatar for klemme

Hi guys, It is working fine, and only allowing letters and numbers. I want to a feature, so that it has to be between 3-20 charachters/numbers long. [CODE] if (!preg_match("/^[A-Za-z0-9]+$/i", $_POST['brugernavn'])){ $dosomething = ''; } [/CODE] This is not working: [CODE] if (!preg_match("/^[A-Za-z0-9]{3-20}+$/i", $_POST['brugernavn'])) [/CODE]

Member Avatar for klemme
0
4K

The End.