39,393 Topics

Member Avatar for
Member Avatar for kireol

Is there a better way to do a search within an array of associative arrays? :) Basically a way to replace the function that I did that works, but was wondering if there's a better way. [ICODE]<?php $employee = array(); $employee [] = array("name" =>"Chris Apple", "company" => "Acme inc.", …

Member Avatar for kireol
0
157
Member Avatar for ChrisJ

Thanks for looking here. I'd like to move the list of thumbnails that appears on the serch page of this php script (see attached). They appear on the left side of the right column. I'd like them to appear on the right side of the right columns and was told …

Member Avatar for ShawnCplus
0
103
Member Avatar for fazilssm

Iam having a form which retrives data which is having pending status from a csv file.This will be displayed in a dynamically created table.Each row will be having a checkbox.If the administrator checks and click approve button,these values have to be stored back to CSV file with status Approved. I …

Member Avatar for djjjozsi
0
60
Member Avatar for sarithak

Hi frnds... What is RSS Feeds..how can i insert into my project? Thanks in advance Saritha

Member Avatar for kvprajapati
0
64
Member Avatar for gingank

Please guide me send multiple attachment in one mail trough php mail script Below is for single attachment the how on multiple attach [ICODE]<?php // Read POST request params into global vars $to = $_POST['to']; $from = $_POST['from']; $subject = $_POST['subject']; $message = $_POST['message']; // Obtain file upload vars $fileatt …

Member Avatar for ayesha789
0
169
Member Avatar for keepbusy

On my website, users have the ability to post comments. Comments get inserted into my mysql database as plain text. When displaying the comments back, I am trying to use the php nl2br() function to allow it to display line breaks as <br /> tags, but it doesn't work. I've …

Member Avatar for keepbusy
0
101
Member Avatar for gingank

I create a three file attachment on the index i name it file attach,file attach2,file attach3 When i wan to upload it only upload one can some one help below is the code. [code=php]$fileatt = $_FILES['fileatt']['tmp_name']; $fileatt_type = $_FILES['fileatt']['type']; $fileatt_name = $_FILES['fileatt']['name']; $fileatt2 = $_FILES['fileatt2']['tmp_name']; $fileatt2_type = $_FILES['fileatt2']['type']; $fileatt2_name = …

0
57
Member Avatar for gingank

Can anyone help me with the code why it is wrong . What Should i need to do to correct. Thank for your help . Pls help me [code=php]if (is_uploaded_file($fileatt3)) { $file = fopen($fileatt3,'rb'); $data = fread($file,filesize($fileatt3)); fclose($file); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $data = chunk_split(base64_encode($data)); $body .= "--{$mime_boundary}\n" …

Member Avatar for andre.vanzuydam
0
83
Member Avatar for gingank

I wan to the system to field up the ip address automatic then send it into the body message but it out error can help me about this [code=php]$fields{$_SERVER['REMOTE_ADDR']}="IP Address"; $body = "Here is the following detail:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }[/code] Notice: Undefined index: …

Member Avatar for gingank
0
95
Member Avatar for drakkn

I have no idea where to start. I have a website which sells products via a shopping cart - when someone places an order I want to have the order automatically printed in the despatch area.

Member Avatar for kireol
0
108
Member Avatar for lkinnyc

I have what is probably a basic question, but am new to web development, so don't really know where to look for an answer. Any help is greatly appreciated as I have brick-walled on this one. I have a database of events that are organized by grandparent-parent-event_name structure. So Grandparent …

Member Avatar for Atli
0
1K
Member Avatar for justted

Hello all, Just wanted to see if I am leaving open some security hole in a script I have! When the user logs in it creates a session based on the id field of the users table! For example .... my id is 10 so a session is created with …

Member Avatar for somedude3488
0
109
Member Avatar for tiger86

I'm developing a program in PHP. I'm still a beginner in PHP thus said I may ask some questions that may seem basic. How would you go around compressing PHP into a downloadable file for redistribution.

Member Avatar for almostbob
0
123
Member Avatar for kaex21

i just want to ask if the PHP is the best in creating online information system.. if not.. can you tell me what programming language i will use? thanks you very much for helping!

Member Avatar for Atli
0
84
Member Avatar for thegirlatomic

Can someone help me see what is wrong with this? I have pasted lines 218 to 237 below (the syntax error is on line 237): [code=php] function add_hook($definition) { if (!is_array($definition)) { $definition = array('__global', $definition); } $this->hooks[$definition[0]][$definition[1]] = array(); } /** * Remove function from the allowed hooks. * …

Member Avatar for Atli
0
190
Member Avatar for ChrisJ

In a php script I'm using the Registration page only had fields for name and email address, basically. I added fields, just by copying the code on the page. I added Address1, Address2, City and State. Then I added those fields to the mysql db. However, I need help with …

Member Avatar for ChrisJ
0
307
Member Avatar for gingank

Can anyone tell me is i want to post the $to with the select box how to do it i write the code [code=php]$to= $_POST['to']; if($to == ''1") {POST "address 1";} else { $to=="0" {POST "address 2"}}[/code] Then i mail will post to email address 1 or 0. But the …

Member Avatar for cwarn23
0
138
Member Avatar for Arctic wolf

Hello, as you all already know from my previous question I'm new in PHP(by the way,thanks again for the previous help), I am trying to build a simple "walking" program,so I'll have "forwards", "backeards","right" and "left" buttons and when I click on one of them the picture on the page …

Member Avatar for Arctic wolf
0
125
Member Avatar for borntowin_786

Hi , I am a new in using codeigniter.I want to use a single show_404 page for both admin and user side.But in different way.i.e.if user try to change anything in URL he should be redirected to custom 404 page.this is not required in admin side.So how to differentiate between …

Member Avatar for cwarn23
0
87
Member Avatar for SoulMazer

This is my first PHP script, so please excuse my clumsiness. I have a HTML page which consists of a form and a PHP page which deals with the variables that are outputted. The HTML page functions as a small box that asks to input an email account/password, and the …

Member Avatar for SoulMazer
0
91
Member Avatar for mathman54

Hi, I am lookiing for information as to what people are doing with PHP: Are you using just php in your work? Are you using a templating system like Smarty? Are you learning php? Do you find any of the books teaching php any good? Which one(s)? When an author …

Member Avatar for cwarn23
0
111
Member Avatar for gingank

Hi Everyone, I using EasyPHP now i find out it work every thing in my pc but when i open my things on other pc using the intranet i cant be display it Someone tell me why this happen? i already set the httpd.conf already but still can not. If …

Member Avatar for cwarn23
0
70
Member Avatar for furqan219

Hi to all I have designed a entry page which is used to INSERT Data in a Daatabse table. I use meta fresh tag time =60seconds Now I want to show that in another page with 2 control buttons ACCEPT and REJECT. Problems: 1. I need to show only one …

Member Avatar for furqan219
0
259
Member Avatar for Plyswthsqurles

Ive got the email program itself working fine. It interacts with a database to get the "subscriber list" as the people it sends it too. My problem now is i need to fix it to be able to send .pdf files. I have found a couple of scripts that work …

Member Avatar for Plyswthsqurles
0
177
Member Avatar for julio gomez

Hi, I am testing a PHP web site offline using XAMPP server application. The website runs great, but the only problem is that the .css is not running. The odd thing is that if I am online and I test the website locally the .css file works, but if I …

Member Avatar for julio gomez
0
70
Member Avatar for hmajidy2001

Hi PHP community. I have a PHP script on Linux (CentOS 5.2) which produces a "failed to open stream: No such file or directory" which I am out of ideas on how to solve. I am on the verge of reverting to Perl. The line generating the code is: [icode]$fh2 …

Member Avatar for hmajidy2001
0
4K
Member Avatar for diafol

Hi folks, first of all sorry to say I ain't got any sample code and couldn't find anything obvious from Google and searching forums. Anyone got any ideas about integrating Joomla (latest version) session handling with a bog standard session_start/$_SESSION['user'] (etc) custom pages. Here's the explanation: I wrote a site …

0
224
Member Avatar for avukadomusic

here is my code with problems: [code=php]$url = 'somesite/somepage'; $str = file_get_contents($url); preg_match('/\w(\d*).*?\$/',$str,$matches); print_r($matches[0]);[/code] the goal is to type in any webpage and get its source code into $str and then find the first appearance of the symbol $ in the string and return only the number closest to that …

Member Avatar for digital-ether
0
108
Member Avatar for k2k

hi, does anyone know a secure way to login to another page with username and password. i found numerous on google but i don't know which one is good. if anyone has any good source codes please help.

Member Avatar for MehdiAnis
0
545
Member Avatar for camerman

Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message …

Member Avatar for b3n222
0
246

The End.