743 Posted Topics

Member Avatar for John Brown
Member Avatar for digital-ether
0
58
Member Avatar for aeroguy
Member Avatar for nolnet
0
222
Member Avatar for ashneet

Have you tested to see if htmlspecialchars() converts spaces to   ? If it doesn't you can try htmlentities() It may also be faster to just use a string replace. [php]$str = str_replace(' ', ' ', $str);[/php]

Member Avatar for Puckdropper
0
148
Member Avatar for manish812

HI, [U]Are you including this file?[/U] or is this php script run directly? If you're including, then look into the parent file for the problem. [U]Are you sure you're updating the file on your remote server[/U], maybe the file is still the old one with the error? [U]What are you …

Member Avatar for cancer10
0
248
Member Avatar for Ries

Where are you echoing the session variable? You should try echoing it right at the top. Maybe you're overwriting with $_SESSION['email'] = $email; Where $email will be empty on the second load of the page. Try something like... [php] if ($_SESSION['email']) { // session is set, check if valid } …

Member Avatar for cancer10
0
149
Member Avatar for j4mes_bond25

There isn't only one implementation of language in HTTP Headers, and Language is Optional. In addition to accept-language theres also content-language, which isn't predefined in php. Language can also be appended to the content-encoding header. Different browsers may prefer different ways of implementing http 1.0 and 1.1. What I would …

Member Avatar for j4mes_bond25
0
386
Member Avatar for ayajhane_dhagz

[QUOTE=ayajhane_dhagz]s there a function in php w/c determines how many dimensions an array contain? f so,may i know?..^_^ thnx...[/QUOTE] Heres from [url]http://php.net/array[/url] with just the notation modified. [PHP]function countdim($array) { if (is_array(reset($array))) { return countdim(reset($array)) + 1; } else { return 1; } }[/PHP] Its a really nice piece of …

Member Avatar for ayajhane_dhagz
0
172
Member Avatar for cancer10

You can use php to initiate the download for you, instead of linking directly to your files. Also used to prevent "file leeching". Theres a few examples here: [url]http://us2.php.net/header[/url] Look at the user contributed comments. What you can do either write to a database, or flatfile when a file is …

Member Avatar for digital-ether
0
212
Member Avatar for j4mes_bond25

It would be better if you used JavaScript alone for this. HTTP does allow sending of language headers, and I believe Timezone, but I dont think all browsers will send this to the server. So getting this out of PHP may not always be possible. (PHP gets the browser info …

Member Avatar for digital-ether
0
118
Member Avatar for sirfartalot

hi, [QUOTE]sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i [/QUOTE] you should have the path to sendmail only once. Ex: /usr/sbin/sendmail -t or: /usr/bin/sendmail -t If you have a windows server, then you have to use SMTP, sent this in php.ini also. If you have an MTA like qmail (its common) …

Member Avatar for sirfartalot
0
143
Member Avatar for bobby9101

Just include the code you have above in the script you need IPs logged for. Make sure you create a table in the database the script has access to. Eg: [code]create table if not exists 'lastlogin' ( 'id' int(11) not null auto_increment, 'VisIP' varchar(15), 'VisDate' timestamp(14) not null, primary key …

Member Avatar for bobby9101
0
222
Member Avatar for puddin

try looking at the html source of your page and see if the img src is being rendered correctly. That is, copy whats in between the src attribute, and see if the url actually points to the image. It may be that the jpgs are named differently in the database, …

Member Avatar for digital-ether
0
197
Member Avatar for cancer10

Sunday, January 17, 2038 4:00:00 PM ? Is there something special about this date?

Member Avatar for paradox814
0
205
Member Avatar for quansah

Where are you saving the data for the students progress report? A mysql database? A file? Maybe if you post up some code, it would be easier to help.

Member Avatar for digital-ether
0
101
Member Avatar for kaicrow

Do you see any patterns occurring in yoru server error logs? I dont have much experience with it, but it seems you can cause hangs if php tries to create a or read from a resource, and it does not respond, causing php to just wait. The resouce can be …

Member Avatar for alpha2006
0
144
Member Avatar for Brims

[QUOTE=Brims]hiya in my database i have a users table Create Table Users( user_id INT UNSIGNED NOT NULL AUTO_INCREMENT, email varchar (40) NOT NULL, pass CHAR (40) NOT NULL, first_name varchar (15) NOT NULL, last_name varchar (30) NOT NULL, active CHAR (32), registration_date datertime NOT NULL, PRIMARY KEY(member_id), UNIQUE KEY (email), …

Member Avatar for digital-ether
0
109
Member Avatar for j4mes_bond25

This is a html problem. about.php contains the <html></html> tags which causes it to be shown at the bottom. It actually does not matter if your included files are php or html. They will be parsed just like php files where anything embeded between the php tags will be parsed …

Member Avatar for digital-ether
0
130
Member Avatar for digital-ether

Does anyone know of a class that is available open source that is used for parsing Raw Emails. I've seen the code where you first explode the raw email into lines, then iterate through the lines until you come to an empty line that seperates the headers from the body …

0
101
Member Avatar for michael123

It probably has nothing to do with the number 16, it may just so happen that the browser has run out of space to store cookies from your domain. There is a limited amount of space allocated for each domain. usually, you dont want to be setting all the rows …

Member Avatar for digital-ether
0
145
Member Avatar for rcasinillo_s

[QUOTE=rcasinillo_s]Good day to everyone! :D Anybody could give step by step PHP code or explanation with examples of how to get the information to other page. For example my main page is index.php inside of it I have three links to the following PHP files: roland.php, haydee.php and ricky.php. Now, …

Member Avatar for rcasinillo_s
0
103
Member Avatar for nike123

The function first checks if magic quotes is enabled with `get_magic_quotes_gpc()`. magic quotes automatically escapes some special characters needed for user submitted data to be safe to save to a database. If magic quotes is turned off, the function then escapes all special chars in the `$_POST http vars`. the …

Member Avatar for nike123
0
152
Member Avatar for crestaldin

HI, Im trying to learn .net. The programming language is really simple.. I have looked at code samples... but I just cant figure out how to put it on a webpage.. ? lol.. ok php.. PHP is complied at runtime. That means, you dont have to worry about compiling. All …

Member Avatar for kush2
0
143
Member Avatar for A Monkeys Uncle

[QUOTE=A Monkeys Uncle]I was told to do this: "Just paste the JavaScript code into the source code of the html page" Where exactly do I paste it?[/QUOTE] HI "a monkeys uncle" :) Your first post, you include a bit of php: <?php $olderror_reporting =error_reporting(0); include ("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Frss.news.yahoo.com%2Frss%2Fvideogames&newpage=1&chead=&atl=&desc=&auth=&dts=1&width=250&max=10&tlen=33&rnd=1&bt=&bs=None&nmb=1&ntb=1&naf=1&nst=1&nwd=800&nht=600&dlen=85&lstyle=1&lc=%23cccccc&dlttime=0&bg=%23333333&bc=&spc=&ims=1&tc=%23ffffff&ts=9&tfont=Arial,+Helvetica,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1"); error_reporting($olderror_reporting); ?> First of …

Member Avatar for robmaag
0
456
Member Avatar for aarya

[QUOTE=Phaelax]This assumes the sentence ends with a period. I can't remember if this function will take an array of delimiters or not. [code] $strings = split(".",$summary); echo $strings[0]; [/code][/QUOTE] Don't think it will take an array of delimiters. But you could use: [code] $strings = preg_split("/.|;|:/",$summary); // delimiters . ; …

Member Avatar for aarya
0
111
Member Avatar for steven01

In media I assume you mean audio and video. Audio and video can be embedded withing html, and played with the available media player on the visitors computer. There is no software for you to use. Once you embed the correct tags into html. The users computer will then select …

Member Avatar for steven01
0
131
Member Avatar for michael123

[QUOTE=michael123]If I have an array $abc=[0,0,0,1,0,2]; how to change it to $abc=[1,2]; (remove all 0), is there php function can handle that? thanks.[/QUOTE] Im wondering... Is this any faster? [PHP]<?php function removeVal($array, $val) { $string = implode(',', $array); $new_string = str_replace($val.',', ',', $string); $new_array = explode(',', $new_string); return $new_array; } …

Member Avatar for digital-ether
0
98
Member Avatar for ayk-retail

[QUOTE=ayk-retail]I am selling vBulletin on eBay ([url]http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=5650034687[/url]) and am wondering if I have to contact vBulletin first before I transfer it. The reason I am selling it is because I have lost the need for it. Thanks, Avrom[/QUOTE] This really is a question for vbulletin support. :mrgreen:

Member Avatar for Dani
0
116
Member Avatar for Lexani

Hi Lexani, If you solve this please pm me. ;) I would like a html/javascript only solution to this if possible. Im wondering, how to you access images from a webcam? Thats all, the javascript, part is straight forward. How is it done in flash? java? laterz.

Member Avatar for digital-ether
0
302
Member Avatar for tristan17

I didnt go through the code. But $image=imageCreateFromJPEG(????); should take a string filename or the url to the jpg file. So shouldnt you move the uploaded file (in the temporary folder) to a permanent folder and use its path/url. Or just use the filepath to the temp file folder? :)

Member Avatar for digital-ether
0
138
Member Avatar for rjbearcan

I believe, you do not have GD support. This is one of the libraries that allow manipulation of jpg, gif, png images by php. YOu have to search google for, php GD instal, or something similar, and install the GD or GD2 library. You can also use Imagemagic. Search search …

Member Avatar for digital-ether
0
57
Member Avatar for J_Search

Hi J_ fopen allows you to append contnet to the beginning of the file by supplying 'r+' as the second param. Something like: [PHP] $logfile= 'log.txt'; $IP = $_SERVER['REMOTE_ADDR']; $logdetails= date("F j, Y, g:i a") . ': ' . '<a href=http://dnsstuff.com/tools/city.ch?ip='.$_SERVER['REMOTE_ADDR'].' target=_blank>'.$_SERVER['REMOTE_ADDR'].'</a>'; // open the file for reading and writing …

Member Avatar for J_Search
0
198
Member Avatar for StrikeFreedom

[QUOTE=StrikeFreedom]I tried the code with the modifications, but now it's only working when it's one word search, when I put two words it gives me this warning: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/comtact/public_html/search.php on line 100 It seems the loop isn't working if …

Member Avatar for StrikeFreedom
0
197
Member Avatar for hbmarar

Hi Harish, To assign the value of the email field to the username field, you would have to use javascript. It would be something like: (i havent tested the js) <script> document.forms['formname'].onsubmit = "assignUsername"; function assignUsername() { document.forms['formname'].username.value = document.forms['formname'].email.value; } </script> (you will have to change formname to the …

Member Avatar for digital-ether
0
187
Member Avatar for apcxpc

[QUOTE=sarahk]cthackers, can you do my homework too please?[/QUOTE] Now apcxpc, you just gotta optimize your homework.. ;)

Member Avatar for apcxpc
0
221
Member Avatar for aarya

[QUOTE=aarya]my login script working fine in my localhost. but when i hosted the site my session is not working.i have written session_start(); in my script i dont undertand y? weather all the php sites supports session.[/QUOTE] createa php file with the following code: [PHP]phpinfo();[/PHP] View the page in a browser. …

Member Avatar for aarya
0
138
Member Avatar for ashwinperti

I didnt know you could end php with php?>, but it works. Usually you just use ?>. Whe you say explorer, do you mean the browser, Internet Explorer? If you want php code to be evaluated when you view the file though Internet Explorer or any browser, you have to …

Member Avatar for sarahk
0
138
Member Avatar for Patate

[QUOTE=Patate]I have a web site with MSword documents. When I click on the links, it opens the document from inside the web browser. I was wondering how to do so that when you click the link it opens microsoft word. (Like when you have a link to a .wpt file, …

Member Avatar for digital-ether
0
177
Member Avatar for aarya

[QUOTE=aarya]i m trying to compare 2 price for example when person enters min price as 3000$ and max price as $10000.and press search .it has to search all the price bewtween 3000$ to 10000$.i think the select option for price in cars.com best describe my problem i dont know how …

Member Avatar for digital-ether
0
187
Member Avatar for bobby9101

[QUOTE=bobby9101]I need to create a form that has four fields in it. I need "Name", "E-Mail", "Comments", and "Picture". i have created three of the four fields, and need help with the fourth. How do I make it so that the guest can upload a picture. I need the form …

Member Avatar for digital-ether
0
121
Member Avatar for webmacker

[QUOTE=webmacker]Can anyone help me set up a forum site from either a drupal script or any other script from the net. My backsite knowledge is limited so any help would be greatly appreciated. I have registered a domain name and my ISP has mySQL and PHP etc. so I don't …

Member Avatar for digital-ether
0
438
Member Avatar for SpS

[QUOTE=sunnypalsingh]I wanna know how to host wiki pages say on geocities or some place else..[/QUOTE] There are some smaller freehosting sites that allow you to use php, however, Geocities and most other free homepages dont allow you to have php pages, or other sever side processed pages saved by you. …

Member Avatar for chrisranjana
0
237
Member Avatar for aarya

Hi aarya, I posted a reply for you here [url]http://www.daniweb.com/techtalkforums/thread32816.html[/url] on your last post. However, it seems you want to get the data from your db. What you would need to do is to gather each listing from the db. And use a function like the following to create the …

Member Avatar for aarya
0
286
Member Avatar for aarya

Hi aarya, :cheesy: The question really is why you want to convert the php pages to static html files, and if it is necessary. 1) [B]URL rewriting:[/B] The link you posted, though with an html extension, may actually be parsed by php. If this is the case, that means they …

Member Avatar for digital-ether
0
652

The End.