This forum has been added for the purpose of discussiong all things PHP related.<br/>I've gone ahead and stated that Perl and Apache can be discussed here as well even though PHP goes beyond these.<br/>Brad!
92 byte By
Tleilaxu at 2007-11-19 1:16:10
How can I count the number of characters in a UTF-8 encoded string with PHP version 3.23.58?
716 byte By
sleeping at 2007-11-19 1:18:15
Using PHP 4.1.2, is there a function that allows you to print the file line number and the filename where the function is called?I'd like to have an error reporting tool in the likes of :// (file lang.php)24 | switch($language)25 | {26 | case 'en' :27 | // do something28 | b...
Which of these arguments you consider are important to chose PHP between other similar scripting languages?<br/>Also, please feel free to criticize any of them you consider it's not true.
2105 byte By
cilu at 2007-11-19 1:24:49
Here is a list of php resources: Zend Technologies ( http://www.zend.com) - Zend Technologies supports the PHP community and promotes PHP adoption Think PHP ( http://www.thinkphp.de) - A German and international PHP support company providing full PHP support, software development, training, and perfor...
Dear friends! We are asking your opinion on our PHP Editor ( http://www.enginsite.com/PHP.htm) .Some people ask what is the point of yet another editor. We see our niche as low cost solution-a set of several tools with everything a web-master might need.It is still a long way to our dream, but we are...
91 byte By
MrX at 2007-11-19 1:30:51
You can help me!!!<br/> http://xavier.rosant.free.fr/index.php?id=12<br/>Please!!!
1290 byte By
suhaib at 2007-11-19 1:31:35
Hi Guys I am pretty pretty new here. I have been suddenly assigned the job of maitaining a "functional" project originally developed in PHP/MySQL. So, I am required to first learn the language and then look for what needs to be done there. Anyway, I am not very new to PHP style of programming, as I...
Hi. I need to run a query to find all occurances of "ipbhost.com" in a certain field of a table and replace it with "net" because the domain for my site has changed.Here is the relevent section of the code I'm trying to use.$sql_query "SELECT pid, post FROM ipb_posts";$DB->query( $sql_query...
253 byte By
bubu at 2007-11-19 1:42:44
I would like to know how can I use Access .mdb databases with PHP.<br/>I would apreciate very much a small snipet.<br/>Also, what are the dependencies for such database to work in php? (dlls, mdac, etc...)<br/> <br/>Thanks your for your atention! :wave:
Hello!I try to upload a file from command line like this:"www.mysite.com/upload.php? file=x.x & dirUp=/temp"for an vb application, where I have a button and 2 parameters, witch are the file and the directory where i'm gonna put the file on the serverI don't know how to put the file into th...
Hi,I have a mysql table with two fields, group and topic. I want to be able to get a list of groups from the 'group' field, then display them in a drop down box. When the group is selected in the drop down box, I then want the 'topic' to be displayed in a text box. I then want to...
583 byte By
batookee at 2007-11-19 1:59:41
I'm looking for a way to extract the list of VHosts from my VHost file in a PHP script.He're is my vhost file. I want to extract vhost1.com, vhost2.com, vhost3.com .... You get the idea. Can someone help me out with this? Thank you$TTL 14400@ IN SOA ns1.manacan.ca. <bunc...
196 byte By
aguess at 2007-11-19 2:01:55
hi<br/>i am developping and e-trade website with PHP and i was programming with ASP before.<br/>i find a problem i don't find in PHP what can replace the dictionary object.<br/>can u help me.
59 byte By
lovelove at 2007-11-19 2:01:58
Why PHP it's better then ASP and even the new ASP.NET?
3665 byte By
bjokneti at 2007-11-19 2:12:27
I am REALLY NEW to php and mysql, and so this may be simple ignorance on my part. I pulled the majority of the following code from the web and have changed it to work with my database. The connection to the database is made successfully and all available records are shown in the browser. However, I...
171 byte By
madshus at 2007-11-19 2:17:13
I wonder about how I can make menus that open when mouse stop over an button.<br/>My plan is to do this using PHP.<br/>Hope someone can help me ;o)<br/>Mads
3298 byte By
rogernem at 2007-11-19 2:18:54
Hi there. I have a table called menu where there are some menu itens there. I also have a table called "produtos" where I have some products there and their corresponding menu.MENU ==== == $menuitem Wallpapers Icons PRODUTOS ========$nomeproduto.........$menuitemTim.....................WallpapersMot...
893 byte By
Teckniel at 2007-11-19 2:20:04
# connect to database $cid = mysql_connect($host,$usr,$pwd); if (!$cid) { echo("ERROR: " . mysql_error() . "\n"); } # setup SQL statement $SQL = " SELECT * FROM AdvancedMtgo ";# $SQL = $SQL . " WHERE Username = '$uname' "; # execute SQL statement $retid = m...
1078 byte By
dynos at 2007-11-19 2:22:38
Look at the below code:<?php class Father { public function getSalutation() { $this->identify(); } private function identify() { print("I am Father.<br>\n"); } }; class Son extends Father { pr...
1077 byte By
satimis at 2007-11-19 2:22:45
Hi folks,I'm going to make a script checking inconsistence on 2 documents, say doc_a and doc_b and have no idea how to start.doc_b is reproduced from doc_a, (original document) not with 'copy and paste' command.Making it simple first, as highlighted in following example, an one line d...
Hi everyone,<br/>i'd want to know how i upload several files with php from my pccomputer to server. These files are .txt files and i want to upload them without the HTML tag <Input type=FILE>. Is it possible??<br/>thanks in advance <br/>Xavik
Hello, I am working on a program to stream MP3s from a website to someone's Media Player. The function that is doing the work is as this... if ( ( $this->mp3_streaming ) & ( $ibforums->input['index'] ) ) { header("Mime-version: 1.0"); header("Content-type: audio/x-scpl...
3234 byte By
rogernem at 2007-11-19 2:28:30
This is my code:<? include("toing_conexao.php"); $sql="SELECT * FROM produtos WHERE menuitem = '$menuitem' ORDER BY nomeproduto ASC"; $result=mysql_query($sql,$conn); echo "<b><font face=verdana size=2>L I S T A D A C A T E G O R I A : $menuitem </B></font&g...
HiI wonder whether there is a way to clear the $_POST superglobal array or even set an array element to a new value.I've got a self-referencing form where the user can enter some text and that is calling itself. I decide whether the page was initially displayed by something like this: if ( (iss...
Is there any reason you can think of that chdir($start); would crash my script ? I'm certain that $start is the right value, and I've used the identical code in another script.
Howdy,I know that a string can be made HTML safe (using htmlentities(), for instance). The problem I have is that I want to convert text that contains a mix of normal text, which should be made safe, and actual HTML which should be preserved.For example, I might have the following string stored in...
1107 byte By
rogernem at 2007-11-19 2:42:34
I have the following code (flash.php)<? include "config_system.php"; include "idatabase.php"; include "ifunctions.php";$connection = pg_connect( $connection_string ) or die ("Falha de Conexo ao Banco de Dados"); $sql_empresas = "SELECT * FROM empresas";$query1 = exec_sql($connection,$sql_empre...
I wonder if there is any function to convert the accented vowels in a string to its counterpart non-accented vowels.<br/>For example I want to convert:<br/>$chain="prt--porter" to "pret-a-porter"
Hi Folks,quite a long time since I visited dev-archive last time :D Ok, I have a problem connecting to a MySql-Database with PHP. The problem has been addressed often on the web, but noone seems to know a understandable solution. So I try it here:First I have to tell the config-details:Windows2000A...
Hello everybody,we have created an application that uses databases for trading reasons. We created these databases using SQL queries on SQL Server. We need to tranform (build or create) this SQL - MS Access form application (interface) into a Web Service (to use it through IE) so that people, trader...
Hi out there,as I am experimenting a lot, I decided to write a little content management system for my rather weird website that should soon relaunch in 100% PHP :D :D :DOk, serious, I am in a decision problem:I want to store some settings for the page like titles, infotext, subtitles etc. pp. so...
Hi again,I am totally fed up by a syntax-problem I am not able to get around:Let's say, I have a class like this:class myclass{ var $arr = array(//SOME ARRAY INITS HERE); function format($item,$key){// to be done} function generate() { // HERE IS THE PLACE FOR A ARRAY_WALK...
Hi again,yes, this sucks ! The code fragment below is a stripped down version of a part of my current project.class someobject{ function anyfunction(){}}class someclass{ var $someobject; function someclass() { $someobject = new someobject(); } function getobject() { return $this->som...
All,After doing some heavy research and coding I am stuck on this one minor problem. What I am trying to do is take a mysql db to fill a checkbox. then those checkboxes can be checked so that users can select multiple items to get more information about. However, with the codes that I have tried...
1723 byte By
TxanTxan at 2007-11-19 3:01:11
Hi!I want to use session variables.In the main page (main.php) I register the variable like this:<html><head><link rel="stylesheet" type="text/css" href="mystyle.css"/><title>Demo</title></head><body><?php session_start(); $_SESSION['log'] = fal...
Here's what I'm trying to do. I want to be able for the user to log into a webpage. I would like to get the username and password, compare them to existing ones in the database and then move that person along to the main web page, otherwise they will get an echo saying that they've sc...
183 byte By
btkaruna at 2007-11-19 3:02:19
i have a radio button for gender storing m or f into msql database.how can i assigned value back to the radio button on php form based on m or f stored in mysql<br/>thanks a lot
613 byte By
TxanTxan at 2007-11-19 3:02:39
Hi!Now I've got this code: ... $_SESSION['log'] = true; $_SESSION['username'] = $username; ?> <form method="post" action=main.php> <br><input class="submitStyle" type=submit value="Go back"></br> </form> So, if the user click on the Go back b...
hi everyone<br/>i want to unzip one file in unix server : unzip file.zip<br/>i have tried with exec("unzip.zip"), passthru("unzip.zip") and nothing.<br/>can anyone to help me? thanks<br/>xavik
Hello,Can anyone help me deciding what scripting language to use/learn for a website.Basically the website is for a group of people (registered), so there has to be accounts... non-registered users can also view the site but to a limited extent.So there are some sites that are available to non-regi...
hi !when i want to create one directory with 0777 permissions with mkdir and then i want to delete these directory i can't do it with a "Permission denied" error as a reason. if i put 0777 when i create these directory why i have this error??Thanks in advancexavikpd- I have a linux os in server...
8902 byte By
satimis at 2007-11-19 3:15:22
Hi folks,I encountered problem in installing Tk module$ sudo perl -MCPAN -e 'install Tk'...- snip -t/dialogbox..............okt/entry.................NOK 180# Test 180 got: ''(t/entry.t at line 644)# Expected: '0,0.363636'# t/entry.t line 644 is: ok(join(",", map {...
669 byte By
Squid at 2007-11-19 3:21:09
Hi there,I have a page which displays all the stocks in the storage. My table looks like this:// display.php ***************** StockID StockNameView Modify Delete 1 ABCView Modify Delete 2 DEFView Modify Delete 3 GHIWhen...
429 byte By
Squid at 2007-11-19 3:21:10
$upload = $uploaddir . basename($_FILES['uploadedimage']['name']);echo '<pre>';if (move_uploaded_file($_FILES['uploadedimage']['tmp_name'], $upload)) { echo "File is valid, and was successfully uploaded.\n";} The above codes work fine for P...
547 byte By
bash at 2007-11-19 3:27:09
Hello, I have a problem i got some errors on my website ( http://league.intercomnetworks.net/ ) but I don't got them on ( http://www.bash-x.net/league/ ) And it is the same code!!What's strange is the error output started at /home/league/public_html/script/include.php:22 because i only d...
I want to add a User/password feature to a web page.I will store the user and passwords in a MySQL database.I want the fields to allow UTF-8 strings. Since I will use mysql_query($sql) to add new users I need to know if the user or password field contains 'dangerous' characters that might...
i have one problem with exec function. i want to execute unzip like this:exec("/usr/bin/unzip Analisi_Programa_Anticopia/Fitxer/fitxerAnticopia.zip -d Analisi_Programa_Anticopia/Fitxer/practiquesComprimides";in server my working directory is script/ . Inside this there is Analisi_Programa_Anticopia/...
Suppose that a php in a remote server connects to a MySQL database in the same server and does something with the data in the database.If the connection is done as follows:$user="bllabla";$password="paldkjf";mysql_connect($server,$user,$password)The server has Apache 1.3 under Linux.I would like to...
Hi, I am at a point of decision now, and I hope you can help me. As I wrote in earlier postings, I am porting my website from static HTML to php-generated pages. As a c++-programmer, I am used to do programming in an oop-manner. And so I tried to code nice classes for my homepage. But as it is if y...