473,788 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
2
1,414
thread by: cheesecaker | last post Nov 6 '07 by: cheesecaker
Let's say I have a long list of names. I've pulled this list of names from the database, and I want to alphabetize them and split them into separate pages basd on that. I have idea as to how to do it for letters a-z, but how would I do it for names that start with special characters?
1
2,380
thread by: Roberto | last post Nov 6 '07 by: AnrDaemon
Which is the most advised way to reach SQLite from PHP5/Apache2? I have both pdo_sqlite and php5-sqlite3 installed (on Ubuntu Feisty, in case you were wondering). I want to use the best practice and am confused on which way is better to go.
2
2,121
thread by: SM | last post Nov 6 '07 by: NC
Hello i have a constant define like this define('PHOTOGRAPHY', 'images/photography/'); The outpout (html) should look like this: <img src"images/photography/123.jpg"> How do i insert a constant in an HTML <imgtag. I've try dozens of combinations with no results.
1
2,214
thread by: yawnmoth | last post Nov 6 '07 by: Justin Koivisto
I was trying to test the following PHP script and am having some difficulty: <?php if (empty($_SERVER) || empty($_SERVER)) { header('WWW-Authenticate: Basic realm="Admin Control Panel"'); header('HTTP/1.0 401 Unauthorized'); exit;
0
2,419
thread by: Sergei Shelukhin | last post Nov 5 '07 by: Sergei Shelukhin
Hi. I receive a byte array that contains utf-16 string (with a lot of \0 characters :)) from a legacy system that holds some data that is changed elsewhere. How do I convert it to an actual utf-16 string for my app's purposes? I am using php 5.
2
2,312
thread by: pedalpete | last post Nov 5 '07 by: pedalpete
I've been looking through the object documentation, but can't seem to figure out how to do a str_replace type function on an object variable. I'm using Troy Wolf's class_http.php - in an iframe to output the content of a 3rd party site. I am trying to 'inject' another stylesheet into this iframe so that it works along with my site (in case...
5
2,189
Cowbie
thread by: Cowbie | last post Nov 5 '07 by: Motoma
Hello everyone, I'm very new to PHP and I'm keen to learn how it all works. I've been looking for help all day and reading tutorials etc which is how I came accross this forum - so here's hoping for some answers :) First off I'll tell you what I'm doing. I'm making a calculator of some form which will do some simple calculations on the...
2
1,098
thread by: Bubbs | last post Nov 5 '07 by: Atli
Hi, I want to create a travel website where the main feature would be the ability for my cutomers to log in to the site and buy airline tickets online through their credit cards and have their reservations made after credit card verification. Then they should recieve an eticket in the email inboxes. I can take care of the payment etc, but im...
1
3,176
thread by: Phil | last post Nov 5 '07 by: NC
My nonprofit is using a developer to create the database portion of our password protected membership site (involving displays of tables including "who sponsors me" and "who I sponsor" and "members by zip code" etc.) We asked them to develop it in Joomla so we could make ongoing changes on a weekly, or even daily basis. What they created...
0
1,332
thread by: mantrid | last post Nov 5 '07 by: mantrid
I was thinking along these lines initially but didnt know much about arrays. So thought the easiest way was to use two separate fields. However the two fields match, in that the commar separated numbers in one field match the commar separated numbers in the other. Ive used $percentarray = explode(",", $brpercentgroup); to create two separate...
1
1,242
thread by: mantrid | last post Nov 5 '07 by: mantrid
testing
6
1,147
thread by: pedjasmek | last post Nov 5 '07 by: Atli
Can anyone tell me what is the best way to store sessions into database in order to recognize that user next time he access the site?I thought about IP address but then I remembered that it is different every time.What thing regarding a user is always the same?
1
1,611
thread by: jogisarge | last post Nov 5 '07 by: Atli
Hi to all, i have a problem using a webservice(.NET). The webservice expects a body like this: <soap:Body> <GetItemInfo xmlns="http://server.de/o2Web/o2Con"> <InItemsRows> <InItemsRow>
6
2,619
osward
thread by: osward | last post Nov 5 '07 by: osward
Hi everyone, I have query(s) that I need to perform which I couldn't figure out, and following is the situation I have event table (which stores the event details) that has eid, date, time, place field, etc. I have a member table (which stores who join which event) that has the same field eid as event table but with other member...
1
1,264
thread by: Gandalf | last post Nov 5 '07 by: Rik Wasmus
hi everyone, I'm looking for a function that destroy arrays keys and putt's instead keys from 0 to the array elements number it's quite simple i don't know why i couldn't fined it. I rather not write my own function because the script is already too heavy (it's quite a big array) thanks
2
6,124
thread by: peridian | last post Nov 5 '07 by: peridian
Hello, I should have made a note of which version of php 5 I am currently using, but I didn't (I'm pretty sure it's 5.2.2). Ayway, I just want to clarify that my understanding of the static keyword under php is correct, as I tried something earlier that I would have expected to work in any other OOP language, and it didn't. Am I correct...
1
9,106
thread by: dgs | last post Nov 5 '07 by: dgs
I fired a query on a mysql db , and got the result for it, using $result = mysql_query("SELECT * FROM population"); , where, $result is a resource...... now , i want to save the results as a ' .dbf' file, which requires one of the parameters for its creation as array of arrays... so , now i want to convert the $result variable as...
1
3,090
thread by: sbettadpur | last post Nov 5 '07 by: sbettadpur
hi, here i am facing some problem regarding the page refresh below i am sending my code please go through... in that i am including head.php, content.php, foot.php files into a single file called template.php in that i have one form, once i click the submit button page is refreshing( refreshing in the sense slightly flickering) that...
0
1,475
thread by: dgs | last post Nov 5 '07 by: dgs
How to scan the user-entered value ? like, we have "scanf()" in 'C'.......
7
1,004
thread by: AdrianoMT | last post Nov 5 '07 by: AdrianoMT
Hey, I'm totally new to PHP (started 2 days ago), and I need lil help with this: for ($i = 5; $i <= 14; $i++){ //$k="$i-4"; $NewData=$C1; $NewData=$C2; $NewData=$C3; $NewData=$C4; $NewData=$C5;
0
1,227
LeoTD
thread by: LeoTD | last post Nov 5 '07 by: LeoTD
Dear all, I have a some problem when connect and get data from LDAP server using PHP. My PHP server use Linux. Example: I have field ObjectID in LDAP server with value is string 32 character hexa: 087DC5C2D6DD6D4BA2405F1D0E7285C8. But when I connect to LDAP server and get data, the value of field...
2
1,594
vijcbe
thread by: vijcbe | last post Nov 5 '07 by: post
Hello friends, I wish to create a new HTML page, using a PHP coding. The name of the HTML page should be of user's wish. Someone please help me doing it. Thanks a million, VJ
3
5,192
Ajm113
thread by: Ajm113 | last post Nov 5 '07 by: post
Ok, I want allow the user to use their own background image for their home page and I want to do something like this. Where when the image is uploaded it will translate into text data and will be saved in a cookie so when ever the user comes back the image will display on the home page: http://software.hixie.ch/utilities/cgi/data/data Any...
4
1,431
thread by: anon538 | last post Nov 5 '07 by: post
I am making a simple password script. I have a login page that asks the user for a login and a password. It sends the two values to the following application via post (instead of get). Here is the application: <?php $login = $_POST; $pass = $_POST; $tlogin = "Xavier"; $tpass = "Anon537"; $authorize=false;...
3
2,070
thread by: Kevin Davis | last post Nov 5 '07 by: Lars Eighner
Hello, I have an quick question. I have the following form: <form action="<?php echo $_SERVER;?>" method="post" > <?php linecount = 5 ?> <?php for (i=0; i< linecount;i++)

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.