473,810 Members | 3,137 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.
3
2,091
thread by: Des | last post Aug 20 '05 by: Lisa Pearlson
I am trying to write a date and time stamp to a file Date("d-m-y") is ok but time(void) gives me 1124528448 Can I format time into a H:M:S format Desmond.
4
2,728
thread by: Lisa Pearlson | last post Aug 20 '05 by: Lisa Pearlson
how can I echo the decimal number 0 instead of the ascii "0" ? passthru can do it in response to a shell function. Is there another way? does echo pack("C", 0) do it? Lisa
25
4,006
thread by: Dave Turner | last post Aug 20 '05 by: Chung Leong
I know that its impossible to completely prevent somebody from ripping a site (or cracking software) if that person has the skills and the time/patience, but there are tricks that can be employed in software which slow crackers down, from things like self-decrypting code to anti-debug tricks, and most people have a breaking point - if you can...
1
4,042
thread by: gene.ellis | last post Aug 19 '05 by: Leo Andrews
Put simply, I have a text box, and people commonly cut + paste information into this text box from Microsoft word. The problem is that word has all types of funky characters (smart quotes, em-dashes), that the system (php-based) doesn't understand. Does anyone know of a way to filter out these Microsoft-specific characters? Does PHP have a...
2
1,135
thread by: lkrubner | last post Aug 19 '05 by: Malcolm Dew-Jones
I need for my script to be able to find out what the domain name is for the site that it is running on. I looked through the $_SERVER vars, but didn't see anything.
0
974
thread by: Junx | last post Aug 19 '05 by: Junx
Setting mysql.trace_mode to On breaks the use of SQL_CALC_FOUND_ROWS in queries. Details: Apache/2.0.53 (Win32) PHP/5.0.4 MySQL/4.1.11 Only using the old mysql_* functions instead of MySQLi due to backwards compatibility at the moment.
3
1,590
thread by: lkrubner | last post Aug 19 '05 by: Kimmo Laine
I'm getting this error: <b>Warning</b>: file(http%3A%2F%2Fwww.publicpen.com%2Fupdate.php%3FcbHeadline%3DTestimonials%26amp%3BcbDateCreated%3D%26amp%3BcbUserName%3D%26amp%3BpageAddress%3Dhttp%3A%2F%2Fwww.publicdomainsoftware.org%2Fgo%2Findex.php%3FpageId%3D33119): failed to open stream: No such file or directory in...
11
3,255
thread by: bissatch | last post Aug 19 '05 by: Tim Van Wassenhove
Hi, I am trying to upload an image, create a new file based on that image and then store the base64 encoded image data in a database. I dont really know where my code is going wrong so I will just display it below: The following code contains the script to process the uploaded file, the form to upload the file and then a few links to...
8
1,503
thread by: IWP506 | last post Aug 19 '05 by: IWP506
Hey, I've got some code here that puzzles me. I'm putting together a url based on user input. Should be pretty straightforward, but there's a problem. First, here's my code. --- $myurl="write.php?T1=" . $_GET . "&T2=" . $_GET . "&T3=" . $_GET . "&T4=" . $_GET . "&T56=" . $_GET . "&T7=" . $_GET . "&T89=" . $_GET . "&T10=" . $_GET ....
0
1,277
thread by: Csaba Gabor | last post Aug 19 '05 by: Csaba Gabor
I've got a PHP server side script (PHP 5.1 / Apache 2.0.53 / Win XP Pro, SP 2 / administrator and sole user of machine) which I'd like to have do either one of the following two things: $ie=new COM("InternetExplorer.Application"); $ie->Navigate("about:blank"); // next line should show a new copy of IE, but in $ie->visible = true; ...
1
1,398
thread by: webguynow | last post Aug 19 '05 by: kurtk
Just curious, if there's any out there, that stand out? Rank above the others, with stability, uptime, Support, etc. Ideally, a responsive tech-support staff that can assure, I'll have the latest PEAR modules available, if needed. Any PEAR compatibility experiences ? MySQL versions ? Are any Web Hosts or hosting companies, going to PHP5...
6
1,051
thread by: Ray Muforosky | last post Aug 19 '05 by: Ray Muforosky
Hello everyone How can I get this script to output the when value when called as follows: ================================== http://cpstmws2/p/cmdlog_rep.php?when=0&year1= ================================== <html> <head> </head>
4
1,757
thread by: SOR | last post Aug 19 '05 by: SOR
At the risk of many coffee splashed monitors . Can I upload a ttf font called font.ttf in the website folder and use that exact font to display certain text on the webspace . I've had good on php.net and this is closest I got . ----- void swf_definefont ( int fontid, string fontname )
1
1,083
thread by: webguynow | last post Aug 19 '05 by: Ken Robinson
On one of the Dev newsgroups mailing.??? I had seen some comments, regarding the inability (currently) of PHP to write to a string, as opposed to direct output from Function like print_r() var_dump() I'm a bit of a newbie, PHP serialization, but recognize Java has Object.toString method. Anything similar, here in PHP ?? I'm looking...
5
2,518
thread by: lkrubner | last post Aug 19 '05 by: Chung Leong
I know I'm missing something obvious, but I looked hard at this page and did not see the format of the return specified: http://us3.php.net/manual/en/function.ord.php >From the limited example I assume it is the decimal (not hex or binary) value of the character being returned? So long as the returned value is between 0 and 127, I can...
2
3,844
thread by: Robertico | last post Aug 19 '05 by: Robertico
I have an ASCII file with each data record on a separateline. Each field is delimited with a TAB (ASCII 9) character. Now i want to read the first 10 lines and show them on my site. This is what i already have reading the first line: $fname = "http://www.somedomain.com/file.txt"; $fd = fopen($fname, "r"); if ($fd) {
1
3,108
thread by: Papa.Legba.666 | last post Aug 19 '05 by: Erwin Moller
I use a PHP based blog system and am considering writing some offline tools. Does anyone know of a C++ class or function which can un/serialze() data compatibly with PHP ? Thanks in advance...
3
1,165
thread by: Dave Thomas | last post Aug 19 '05 by: Hilarion
I have: $this_array = array($test_year, $test_color, $test_food) I want to access another variable based on $test_year, only it will be called $test_month (test could be something else). $test_year is a form and I want to access $test_month. If I use $this_array then I am getting the actual value of the form. I want to get the name of...
5
4,733
thread by: Jim | last post Aug 19 '05 by: Shawn Wilson
I've heard that resizing images through PHP (either GD2 or ImageMagick) is a processor intensive exercise. I'm setting up a site where users will be uploading up to 10 images along with the details of their product. For each image uploaded (max 500Kb), I'll be resizing it to create a small, medium and large version after which I'll discard the...
16
1,513
thread by: Bush is a Fascist | last post Aug 19 '05 by: Jeff Schwab
Hi all, What do most languages call a name-value pairing? Or perhaps my question should be, why not just call it a name-value pairing? Too many syllables? Did Knuth invent a handy term for such a thing? Thanks.
6
12,692
thread by: Chris Portka | last post Aug 19 '05 by: Marcin Dobrucki
This is a very simple question but after a long time I still can't find an answer looking on my own. How do you test for no user input in a form? Example: <form action="index.php" method="get"> Type your first name: <input type="text" name="FirstName"> <input type="submit" value="Submit"> </form>
2
1,143
thread by: vbMark | last post Aug 19 '05 by: vbMark
Hello, Can anyone recommend a good place to get good versions of these two type of scripts that I am looking for? 1) A "Refer this page" or "Send this link to a friend" script. 2) A good stat counter for page hits, history, etc. Thanks!
4
4,837
thread by: Ian N | last post Aug 19 '05 by: Ian N
Hi i'm having a problem with file permissions of upload, they appear to be being set to only readable by the administrator, so anyone browsing the site gets a 403 forbidden error when they try and view the image. I've tried adding the following line: - chmod($uploadfile, 444); and also a few variations on it but to no avail.
6
1,950
thread by: Shawn Wilson | last post Aug 19 '05 by: Horst TellioÄŸlu
I have been an HTML guy for 8 years or so, but only last year started working with PHP. I dabbled in Perl and then moved to PHP after completing a couple projects in Perl. I'm thankful I did that, as I'm sure you all know. I've got a pretty common working knowlege of PHP and using it with mySQL. I can do most anything I need to do, but I...
1
3,117
thread by: Ryan Lange | last post Aug 19 '05 by: Ryan Lange
To start off, I'm running Apache 2.0.54, PostgreSQL 8.0.3 and PHP 5.0.3 on Windows XP and yes, libpq.dll is my system32 directory. I'm trying to do some queries using pg_query_params(), but I keep getting a fatal error, which is in the subject. I'm not sure what's going on, though. The functions pg_connect() and plain, old pg_query() work...

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.