Re: [PHP] .INC files

2005-05-31 Thread Sebastian
they're usually used as includes, hence the INC part. files that have certain functions/classes that another script requires and people use them to split up the code. I don't and have never created .inc files.. all my files end in .php -- but that's just me. Martin Zvarik wrote: Hi, I

[PHP] searching tables

2005-05-23 Thread Sebastian
I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. eg, i have two tables with different column names: news: title | newstext faqs: topic | faqstext currently i am just searching the news table with a query as such: SELECT *, MATCH

Re: [PHP] searching tables

2005-05-23 Thread Sebastian
I am quite aware of a mysql mailing list. I don't feel like joining another list, anyway, move along,.. I've already solved the problem without your help, but from others on this list. John Nichel wrote: Sebastian wrote: I'd like to know if it is possible to perform a search across

[PHP] dynamically updating site

2005-05-12 Thread Sebastian
I looking for a way to update certain parts of a site that is highly dynamic. I've tried creating static files via cronjobs then including them, but it is a pain to do. for instance, i have a news page that utilizes mysql, rather than query the DB on each page load i would like to have it update

[PHP] regex

2005-05-04 Thread Sebastian
very new to regex i have a string with bbcode such as [img=XXX] (XXX being numeric) how do i search the string for the value of the bbcode and compare it to another variable? so i can take XXX and compare it to $image dynamically. thanks for any help. -- PHP General Mailing List

Re: [PHP] regex

2005-05-04 Thread Sebastian
i partly solved the problem using this regex: $tutorial['pagetext'] = preg_replace_callback('#\[img\]\s*(\d+)\s*\[/img\]#siU', 'image_code_callback', $content['pagetext']); except instead of using [img]foo[/img] i would like to do just [img=foo] any help? Sebastian wrote

[PHP] form array

2005-05-01 Thread Sebastian
i've created file upload scripts in the past that allows multi-upload inputs using the bracket [] array in form. so now i have to create the same type of script but each file input field will also be followed by a text box for a file caption type thing. what would i used for the input text box?

[PHP] making php go faster

2005-04-30 Thread Sebastian
i've been doing some reading on optimizing php for fastest performance. are there any benifts to configure php with: --enable-inline-optimization also running eAccelerator. these are my current options: --with-apache=../apache_1.3.33 \ --with-mysql=/usr/local/mysql \ --with-xml \ --with-gd \

[PHP] mini CMS

2005-04-28 Thread Sebastian
im looking for a small tutorial/cms script without all the fluff. something to create pages (static preferably) doesn't even need an admin/user interface. i could write my own, but don't have the time at the moment. if anyone knows of such a small script let me know. cheers. -- PHP General

[PHP] view zip file contents

2005-04-21 Thread Sebastian
does anyone know of a way to view the contents of a zip file and its directory structure? i know there are zip file functions in php but they require extra libs i would rather not load right now. i know its possible, at least by looking at this download manager that does this:

Re: [PHP] view zip file contents

2005-04-21 Thread Sebastian
No releases have been made yet. Philip Hallstrom wrote: does anyone know of a way to view the contents of a zip file and its directory structure? i know there are zip file functions in php but they require extra libs i would rather not load right now.

[PHP] foreach sorting

2005-04-19 Thread Sebastian
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' = 'Games', '/news' = 'News'); foreach ($tabarray AS $loc = $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= 'td class=tabsela

Re: [PHP] stripping of the last character

2005-04-18 Thread Sebastian
$recipients = '[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],'; echo str_replace(',', ', ', substr($recipients, 0, -1)); - Original Message - From: Ross [EMAIL PROTECTED] I have a large group of email addesses serperated by commas. I need to trim off the very last comma

[PHP] explode a string

2005-04-18 Thread Sebastian
$string = '4:gaming,5:hardware,3:software,8:security'; what is the best way to explode then loop this string after its taken apart. output should be something like: $id = 4 $cat = gaming etc.. im just looking for the best/fastest way to do this. the string can grow to 200 or so bytes, maybe

[PHP] threaded comments

2005-04-08 Thread Sebastian
i am developing a comment/discussion board and i want to display the results in a threaded style. so far i have it all working except this one issue: each row has an ID and a parentid, say i have 5 rows: id : 10 most oranges come from florida id : 16 Re: most oranges come from florida

Re: [PHP] threaded comments

2005-04-08 Thread Sebastian
, Sebastian said: i am developing a comment/discussion board and i want to display the results in a threaded style. so far i have it all working except this one issue: each row has an ID and a parentid, say i have 5 rows: id : 10 most oranges come from florida id : 16 Re: most

[PHP] hotlinking images

2005-03-31 Thread Sebastian
i have an issue with site linking directly to my images. the problem is these images are generated on the fly with php/gd -- they're generated each time its viewed because i have done some watermarking manipulation and didnt want to watermaker them in a static way. they're including the images

[PHP] fwrite and sort

2005-03-21 Thread Sebastian
i have a form with checkboxes which after POST it writes to a file. i would like to allow the user to sort the selected checkbox filename in the order they want it written to file. so i was thinking creating an input text box where they can enter a number, then have it written to file in that

[PHP] see anything wrong (xhtml validator)

2005-03-20 Thread Sebastian
it seems the xhtml validator is throwing an error with: -- Line 530, column 12: value of attribute id invalid: 1 cannot start a name div id= 1 79 style=display: none; -- Here is the code:

[PHP] mail()

2005-03-12 Thread Sebastian
Hi, it appears mail() stopped working on my server. i recall it worked previously. since i haven't used mail() in a while i dont recall when it stopped working. running php 4.3.10 php.ini is default path for send mail which is the correct path for the server.. anything else i should be looking

[PHP] comparison operator

2005-03-09 Thread Sebastian
i ran into this problem and i dont remember how i worked around it. if($_REQUEST['value'] == 1) { // do something } else if($_REQUEST['value'] == 0) { // do something } even if i don't do ?value=0 its always prints something.. i want to make an on/off value based on the value of the url.. 1

[PHP] http referer

2005-02-26 Thread Sebastian
ok, so i made a file manager and i need to prevent people from linking directly to files that do not come from another part of the site. i know i can use http_referer, but i wonder how fool proof it is, i dont want to spit out errors to a legit user that actually came from a valid page before

[PHP] uploading remote server

2005-02-22 Thread Sebastian
i have some php forms which uploads files/images and i would like to know if its possible to upload them to a remote server instead, if so, how? cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql query

2005-02-17 Thread Sebastian
Hello, im working on an article system and looking to avoid running three queries. example, i have this query: SELECT id,title FROM articles WHERE id=$_GET[id] now say $_GET[id] = 5 I would like to get the previous id 4 and the next id 6 (if there is one) so i can do something like: Previous

Re: [PHP] delete part of array

2005-01-13 Thread Sebastian
thanks Leif, not too many think like you :) some people are on this list just because they think they are some genius in php, then when someone with less experience asks for help they bitch and basically tell you to find your own solution or read the manual, that is the first place any REAL php

[PHP] delete part of array

2005-01-12 Thread Sebastian
how do i delete keys from an array if it has no values? eg, this: [name] = Array ( [0] = grape [1] = apple [2] = [3] = orange [4] = [5] = cherry ) to: [name] = Array ( [0] = grape [1] = apple [2] = orange [3] = cherry ) --

[PHP] weird upload problem

2005-01-11 Thread Sebastian
Hi, im working on this mulitiple upload script to auto resize images. everything works, except two problems. 1) for some odd reason if i attach all fields with an image it only submits 5. seems its skipping one. 2) if i attach an image to field 1, 3, 5 and skip the other fields only 1 file gets

Re: [PHP] weird upload problem

2005-01-11 Thread Sebastian
well i found the problem to #1. i forgot an = on the for() loop.. so it uploads all 6 instead of 5. still looking for a solution on #2 - Original Message - From: Sebastian [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, January 11, 2005 8:59 PM Subject: [PHP] weird upload

Re: [PHP] weird upload problem

2005-01-11 Thread Sebastian
Jason Wong wrote: How did you ascertain this? What does print_r($_FILES) show? Unless you're using a broken browser it *should* work. i tried both IE6 and Firebox 1.0, both do the same. does appear its being passed.. doesn't it? array: Array ( [image] = Array ( [name]

[PHP] sorting mysql results

2005-01-10 Thread Sebastian
I have a list of rows in the database and i would like to sort them in two categories. example, echo $row['name'] . '-' . $row['type']; // output: row 1 - files row 2 - files row 3 - music row 4 - files I would like this output: files -- row 1 - files row 2 - files row 4 - files

Re: [PHP] php ignores php_value from httpd.conf?

2005-01-05 Thread Sebastian
hmm i never even knew you can put that in there.. i always used .htaccess or in the php.ini i've never seen anyone do it in the httpd.conf. also you shouldn't quote the value.. you might also need to increase post_max_size - Original Message - From: Steve Kieu [EMAIL PROTECTED] To:

[PHP] apache 1 vs 2 w/php

2005-01-04 Thread Sebastian
I am undecided whether to upgrade to apache 2 (currently running 1.3.33) I've heard some bad stuff (some good maybe) about using apache 2 with php.. does anyone have an opinions? I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm

[PHP] critique this code please

2005-01-02 Thread Sebastian
i have this small function for a template system (if you want to call it that ;) my idea was having something simple to separate html code from php and i think using something like smarty is too big for me and i really dont have time to learn to use it. so i have this code here:

Re: [PHP] handling large files w/readfile

2005-01-01 Thread Sebastian
yea. all the files aren't 100MB though.. some are 2mb (even less) while some files are over 300MB as well. so, does this need to be adjusted depending on the filesize? thanks. - Original Message - From: Rory Browne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Sebastian [EMAIL PROTECTED

Re: [PHP] handling large files w/readfile

2005-01-01 Thread Sebastian
well, i really can't confirm what your seeing. but that is why i orginally started this topic. i will do some tests.. are you setting headers before output? i just ran into another problem.. when downloading a .tar file it just returns an empty .tar file.. seems to work fine with .exe, .zip,

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Sebastian
not sure if its a typo but the array shows userfile and your variable array shows user it looks like the file isn't being passed at all, double check if you have any typos.. type is blank which should at least show the mime type.. - Original Message - From: Al [EMAIL PROTECTED] To:

[PHP] handling large files w/readfile

2004-12-26 Thread Sebastian
i'm working on a app which output files with readfile() and some headers.. i read a comment in the manual that says if your outputting a file php will use the same amount of memory as the size of the file. so, if the file is 100MB php will use 100MB of memory.. is this true? if it is, how can i

[PHP] getting home directory path

2004-12-25 Thread Sebastian
how do i get the path to my home directory.. eg, /usr/home/ $_SERVER['DOCUMENT_ROOT'] returns /usr/home/public_html i remember doing this once with basename() though i can't remember how i did it. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] filesize math

2004-12-24 Thread Sebastian
i made this function and want to know if i am doing the math correctly.. seems to be caculating ok.. $filesize is in bytes.. if the filesize is under 1MB i want to show KBs, if its under 1GB i want to show MB, if its over 1000MB i want to show GB, makes sense? ;) function byte_format($filesize) {

[PHP] hackers?

2004-12-22 Thread Sebastian
not sure if this is a stupid question, but im looking for a person or a place that will check or try to break a site. not in a bad way of course.. just trying to see things from a security point. you can be the best coder out there and still have a flaw that you might not see, but another might.

Re: [PHP] Date problem?

2004-12-22 Thread Sebastian
try +one month - Original Message - From: PHP To: php Sent: Wednesday, December 22, 2004 6:38 PM Subject: [PHP] Date problem? echo date('F',strtotime(next month)); This is printing February right now. Does this sound right or is this a but in strtotime()? is next month

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Sebastian
if the script isn't that big you can probably use extract() in most cases.. is the script in its own directory? if so you can turn register globals on just for that one directory.. create an .htaccess file and add: php_value register_globals on then place the .htaccess in the directory where the

[PHP] checking file type on upload

2004-12-20 Thread Sebastian
i have an upload form which i would only like to allow compressed zip files and rar files to be uploaded. currently i use if ($_FILES['userfile']['type'] != 'application/x-zip-compressed') which only seems to work in IE, doesn't work in mozila (haven't tried others) what the best way to detect

Re: [PHP] first letter

2004-12-20 Thread Sebastian
$name = John; echo $name{0}; you can also look into substr() - Original Message - From: Ahmed Abdel-Aliem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 20, 2004 12:59 PM Subject: [PHP] first letter hi if i have for example this variable $name = John; how can i

[PHP] sanitizing/security

2004-12-18 Thread Sebastian
just a question, what is the best way to sanitize your scripts when you're using $_GET or $_REQUEST in a query? eg, i usually just do: if(is_numeric($_REQUEST['id'])) { mysql_query(SELECT id FROM table WHERE id=.intval($_REQUEST['id']).); } what about when the GET is text? just use

Re: [PHP] Re: counting chars..

2004-12-16 Thread Sebastian
strlen is not accurate unless its a raw string, meaning just alpha chars, or numbers.. otherwise you should run trim, strip_tags and the likes first. - Original Message - From: M. Sokolewicz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 16, 2004 6:09 AM Subject: [PHP]

Re: [PHP] in_array w/statement

2004-12-16 Thread Sebastian
3:39 PM Subject: Re: [PHP] in_array w/statement On Friday 17 December 2004 02:33, Sebastian wrote: I cannot solve this problem,. sorry if this looks confusing,. It is ... i have a form and don't want to set the variable if the in_array is true.. the code works, up until i add the last

[PHP] in_array w/statement

2004-12-16 Thread Sebastian
Hi, I cannot solve this problem,. sorry if this looks confusing,. i have a form and don't want to set the variable if the in_array is true.. the code works, up until i add the last !$buddy in the statement, for some reason it seems to always be true, ... something i'm doing wrong? btw, i cannot

[PHP] bandwidth usage

2004-12-15 Thread Sebastian
i used to use a small script that displayed the amount of bandwidth being used, it parses netstats numbers. @ http://www.kernel.org/pub/software/web/bwbar/ it only works for linux and was wondering if anyone knows of a php app that parses netstats on freebsd to display live bandwidth usage?

[PHP] fopen/fpassthur

2004-12-14 Thread Sebastian
Hi all, I have created a download manger to handle files, when a user clicks a link the file is sent though fopen() and fpassthru() like this: header(Content-type: application/octet-stream); header(Content-disposition: attachment; filename= . $file['filename']); header(Content-transfer-encoding:

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Sebastian
for me and find any flaws ;) thanks. - Original Message - From: Richard Davey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:27 PM Subject: Re: [PHP] fopen/fpassthur Hello Sebastian, Tuesday, December 14, 2004, 4:19:31 PM, you wrote: S header(Content

Re: [PHP] empty() problem

2004-12-12 Thread Sebastian
trim it then use an operator..eg if(trim($Game_rating) == '') { // error .. } - Original Message - From: Ahmed Abdel-Aliem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 12, 2004 8:58 AM Subject: [PHP] empty() problem Hi Group Members i have a problem with function

Re: [PHP] dynamic include() in while loop

2004-12-12 Thread Sebastian
disregard this topic.. i slept on it and found out how to do it. - Original Message - From: Sebastian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 11, 2004 11:06 PM Subject: [PHP] dynamic include() in while loop this is a brain buster, at least for me. i have

Re: [PHP] alternating table entry colors

2004-12-11 Thread Sebastian
my simple way.. while() { $i += 1; $alt = ($i % 2) ? 'alt1' : 'alt2'; } then just use $alt in your td class.. - Original Message - From: Graham Cossey [EMAIL PROTECTED] To: Brad Ciszewski [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, December 11, 2004 8:33 AM

[PHP] Joining same table twice

2004-12-11 Thread Sebastian
i apologize if its against the rules to post mysql questions here, though im using php to query the db so... i have a table with three integers. [table post] postuserid | replyuserid | parentid -- i do a left join on table user to get the username that postuserid

Re: [PHP] php variables in a backtick command

2004-12-11 Thread Sebastian
well $user['password'] has no double quotes around it. - Original Message - From: Jonathan Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 11, 2004 8:09 PM Subject: [PHP] php variables in a backtick command I am trying to run a shell command with backticks.

[PHP] dynamic include() in while loop

2004-12-11 Thread Sebastian
this is a brain buster, at least for me. i have a while loop (results from mysql) which display news articles. i want to include() a file if there hasn't been a news article posted today meaning after midnight 12am to 12pm midnight... but if there are articles the articles would be echo'd before

Re: [PHP] assignment

2004-12-11 Thread Sebastian
variables variable? http://us2.php.net/manual/en/language.variables.variable.php - Original Message - From: Song Ken Vern [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:02 PM Subject: [PHP] assignment Hi, Tried searching for what this $$ operator means.

Re: [PHP] array_merge_recursive

2004-12-10 Thread Sebastian
actually, what i mean is i need to get the animal name as well.. ie: echo $animal . ' : ' . $total would output: animal name : total animal name : total etc. thanks. - Original Message - From: Sebastian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 10, 2004 12:24 PM

Re: [PHP] array_merge_recursive

2004-12-10 Thread Sebastian
thanks for the help. i do have a question.. say instead of 2 keys in the array there are 3 or 4.. how would that be done? i do not know much about arrays so i am trying to learn. thanks. - Original Message - From: Craig Slusher [EMAIL PROTECTED] To: Sebastian [EMAIL PROTECTED] Cc

[PHP] array_merge_recursive

2004-12-10 Thread Sebastian
Hi. I am using this array_merge_recursive to merge two arrays, the array looks like this: Array ( [0] = Array ( [animal] = Dogs [total] = 5 ) [1] = Array ( [animal] = Cats [total] = 3 ) [2] = Array

[PHP] Re: Holding an array in a session

2004-11-19 Thread Sebastian Mendel
'] = $current_array_key; // f.e. 0 on the first page echo $_SESSION['ses_csv_files'][$_SESSION['key']]; -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net

[PHP] Re: Confused with constructors

2004-11-19 Thread Sebastian Mendel
of the base class would have been called, printing 'I am the constructor of A.br /'. Is this an error in the manual? Or a bug in php 4.3.9? Or just me being stupid? as i understand it exactly as you, it must be a bug/error -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de

[PHP] Re: Understanding Static Methods

2004-11-19 Thread Sebastian Mendel
engine 1.3 compatiblity on ? -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sorting multidim array and keeping associations

2004-11-18 Thread Sebastian Mendel
. and whats the problem? did you tried uksort() ? what did you tried? post the code, and someone will take a look and give a hint! sorry, but if you want a complete solution, go hire a php-programmer! -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net

[PHP] Re: Sequrity without HTTPS?

2004-11-18 Thread Sebastian Mendel
with javascript before sending and decode with a decode-key when recieving! just what you need is key who can encode but not decode! und the appropriate decode key on the server, to decode it. just try to look for some javascript in the web! -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de

Re: [PHP] How to assure that php.ini is being obeyed?

2004-11-18 Thread Sebastian Mendel
to upload a large file is This document contains no data The specified log file is empty. did you check $php_errormsg ? track_errors boolean If enabled, the last error message will always be present in the variable $php_errormsg. -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de

[PHP] Re: require() in other directories?

2004-11-18 Thread Sebastian Mendel
! f.e. with classes.php in /webroot/ /webroot/index.php: require 'lang/en.php'; /webroot/lang/en.php: //WRONG: require '../classes.php'; //RIGHT: require 'classes.php'; // or require '/webroot/classes.php'; -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de

[PHP] Re: Sequrity without HTTPS?

2004-11-18 Thread Sebastian Mendel
Peter Lauri wrote: If you use the Autority HTTP that pops up a login window by default, is that safe against listeners? IMHO, the login-data is sent as plain text also, and this with every subsequent request! and not only with the first! -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de

[PHP] Re: PHP-editor connected to FTP?

2004-11-18 Thread Sebastian Mendel
Peter Lauri wrote: Best groupmember, What editor do you use when working with websites (php) connected directly to the FTP? I like Eclipse 3.0 with the PHP plugin, but it do not have the future to connect to the FTP. did you tried the FTP-WebDAV plugin? -- Sebastian Mendel www.sebastianmendel.de

[PHP] Re: Sorting multidim array and keeping associations

2004-11-18 Thread Sebastian Mendel
( $element_2 ) ) { return 1; } elseif ( max( $element_1 ) max( $element_2 ) ) { return -1; } elseif ( max( $element_1 ) max( $element_2 ) ) { return 1; } return 0; } -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Sebastian Mendel
can easily do this by writing an function myself. But are there any built in functions for this? I have looked at usort, uksort and more, but they do not seem to solve my problem. uksort() or array_multisort() should do fine -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de

[PHP] Re: File Handing Windows / Linux

2004-11-17 Thread Sebastian Mendel
/photos/.$_GET['page']./); -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Array unset

2004-11-17 Thread Sebastian Mendel
[moduleStatus] = 1 ) ) So, the question, how resort the numeric values to 1,2,3,4? which numeric values ? -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General

[PHP] Re: How to assure that php.ini is being obeyed?

2004-11-17 Thread Sebastian Mendel
. Did anybody have this experience before? quota? free space? try setting display_errors and startup_errors on try track_errors with on -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet

[PHP] Re: Dynamic Combo Box

2004-11-15 Thread Sebastian Mendel
the project at last by today... This is a javascript related problem! Why not just take a look add any driver-section of a web-page from a hardware-manufacturer? -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net

Re: [PHP] calling function from function?

2004-11-12 Thread Sebastian Mendel
instead of if SELECT INSERT ELSE UPDATE logs() { db( $defined[9], $defined[1], $defined[2], $defined[3] ); $sql = 'REPLACE INTO logs VALUES ( ... )'; mysql_query( $sql ) or die( '...' ); } -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com

[PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Sebastian Mendel
are all mysql_passwords stored in the db, thats why you have to run mysql_fix_privilege_tables read carefully through all 4.1. changelogs! -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet

[PHP] Re: parsing /'s in urls

2004-11-12 Thread Sebastian Mendel
because the browser just thought it was accessing a direct link to a file. But now download.php/30/file.torrent results in a 404. Is this something I can change back? this is an apache related thing http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo -- Sebastian Mendel

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Sebastian Mendel
Mario Bittencourt wrote: I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I

Re: [PHP] Question on functions

2004-11-11 Thread Sebastian Mendel
= password ); /* Database connection */ function db() { global $defined; if( connection_status() != 0 ) { $db = @mysql_pconnect( $defined[9], $defined[1], $defined[2] ) or die(); is this a typo??? @mysql_pconnect( $defined[9] shouldnt it be @mysql_pconnect( $defined[0] -- Sebastian Mendel

Re: [PHP] should basic data validation go outside a function or inside?

2004-11-11 Thread Sebastian Mendel
a certain input and complains, or returns false, if it doesn't get it. yes, and of course shouldnt every function check it parametres before proceeding? -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects

[PHP] Re: LINUX: Problem with php installation

2004-11-11 Thread Sebastian Mendel
Segmentation fault. try without modules if it works try one module check again and so on... -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net

[PHP] Re: header variable ?

2004-11-11 Thread Sebastian Mendel
Jerry Swanson wrote: What variable header use? If I send something in header, what GLOBAL variable header use? do you mean $_SERVER ? $_SERVER holds some header-information sent by the client to the webserver -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de

Re: [PHP] Question on functions

2004-11-11 Thread Sebastian Mendel
and? is it a typo in the message or in your source and solves this typo your problem? -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net

[PHP] Re: find duplicated values in array and count them

2004-11-11 Thread Sebastian Mendel
']][$array['teacher']][$array['class']]++; // or by whatever is relevant for you } -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net

[PHP] Re: Help: Database Search

2004-11-10 Thread Sebastian Mendel
']) ) { $where[] = 'Date_Sub(Curdate(), interval ' . (int) $_POST['Days'] . ' day) = PostStart'; } $sql = ' SELECT ... FROM vendorjobs WHERE ' . implode( ' AND ', $where ); -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects

Re: [PHP] Question on functions

2004-11-10 Thread Sebastian Mendel
']; // is the same as: global $my_var echo $my_var; // 'global' just creates a local reference to the global variable // global $my_var; is the same as: $my_var = $GLOBALS['my_var']; echo $my_var; } -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de

[PHP] Re: Array to $_GET variable

2004-11-10 Thread Sebastian Mendel
? - what does var_dump( $_GET['getvar'] ); - do you tried urlencode(); -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Charset Problem

2004-07-29 Thread Gerske, Sebastian
Dear list, im running mysql 4.1 and php 4.3.8 and have the following problem with charset. If i select a row from a table like SELECT * FROM ip WHERE ip LIKE '127.0.0.1' LIMIT 0 , 30 i get the error: #1267 - Illegal mix of collations (ascii_general_ci,IMPLICIT) and

[PHP] how to conver a string to float

2004-02-07 Thread Sebastian
Is there a possibility to convert a string like 10*500 (parsed from a XML-File) to a float? When i try to store this String in a float variable it only coverts the 10 but nothing after the *-sign, but i need the result of this expresison... Is there a function to calculate such string expressions?

[PHP] Empty Reference to an Object

2004-01-13 Thread Sebastian Ossio
Hi, I´m trying to give an empty reference as a parameter, in a function. Or rather make a parameter that is a reference optional. I have a function that should react differently if it is given an object or not. It works, but it gives me a warning that the second argument is not being given

[PHP] Empty reference parameter

2004-01-13 Thread Sebastian Ossio
Hi, I´m trying to give an empty reference as a parameter of a function. Or rather, make a parameter that is a reference optional. I have a function that should react differently if it is given an object or not. It works, but it gives me a warning that the second argument is not being given

[PHP] Re: [PEAR-DEV] Please Help me..MySQL

2003-07-24 Thread Sebastian Bergmann
Mohsen Pahlevanzadeh wrote: Hi dears. Please post such questions to mailto:[EMAIL PROTECTED] Your posting has no reference to PEAR whatsover. Greetings, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http

[PHP] dbx module - limit

2003-07-19 Thread Sebastian Erlhofer
. but I didn't find anything for that in dbx_query either. Greetings, -sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Topic Maps with PHP, PEAR, etc...

2003-06-27 Thread IMAC, Sebastian Mangelkramer
Hi all together, does anyone know, how to parse Topic Maps with PHP ? We have to parse the Topic Maps and visualisize them afterwords. Anyone know a Tip ? I dont search for an solution, just for a litte Tip. Thanks, yours sincerly -- Sebastian Mangelkramer IMAC - Information Management

[PHP] topic_maps with php

2003-06-24 Thread IMAC, Sebastian Mangelkramer
with php, without the use of any other languages like java, etc. ? thanks ! yours sincerly sebastian, imac.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Sebastian
Hi. See if this helps you get started. I assume each user has an ID. If so all you have to do is make a query above $userid that fetches the user ID of the user that is auth to download.. Also, edit the $path to the location of the files, you can download a file by file.php?file=a_file.zip --

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Sebastian
it should not do that. Are you on *nix? try not editing the script so much, try it like i gave it to you except remove the array to test a file to download. Just to verify that the script works for you. cheers, - Sebastian - Original Message - From: Mishari [EMAIL PROTECTED

[PHP] rows by day

2003-06-15 Thread Sebastian
Articles: all rows that are posted on Tuesday ... Etc, etc.. How would I group them like that. I want to echo the actual day with all the rows of that day falling under it. can i do this with one query? Or would i have to create multiple queries? any examples? Thanx for any help. cheers, - Sebastian

<    1   2   3   4   5   6   >