Jump to content

redbullmarky

Staff Alumni
  • Posts

    2,863
  • Joined

  • Last visited

    Never

Everything posted by redbullmarky

  1. [!--quoteo(post=361172:date=Apr 3 2006, 11:17 AM:name=steviewdr)--][div class=\'quotetop\']QUOTE(steviewdr @ Apr 3 2006, 11:17 AM) [snapback]361172[/snapback][/div][div class=\'quotemain\'][!--quotec--] If your using windows - then you can easily specific a SMTP server in php.ini or in a htaccess In a .htaccess put php_value SMTP yourisp_server.com This *may* send you emails via this SMTP server and thus may not get marked as spam. What Im now looking at is this tutorial: [a href=\"http://www.phpfreaks.com/tutorials/130/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/130/0.php[/a] Good Luck with it, -steve [/quote] i got a little help from reading this when i was working on a newsletter (with same problem): [a href=\"http://forums.whirlpool.net.au/forum-replies-archive.cfm/484996.html\" target=\"_blank\"]http://forums.whirlpool.net.au/forum-repli...cfm/484996.html[/a] the problem can be the way you set your headers up that go into the mail() function. might be worth having a look at that too. CHeers
  2. [!--quoteo(post=361163:date=Apr 3 2006, 10:33 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 3 2006, 10:33 AM) [snapback]361163[/snapback][/div][div class=\'quotemain\'][!--quotec--] I dont think there is a way of calculating a users DST with PHP as PHP cant communicate with the client computer you will have to provide a pull down menu that has all the DST's. You can see a full DST pulldown menu if you go to My Controls and select Board Settings. There should be a pull down menu which will show all DSTs! [/quote] there's something here about DST using javascript to work it out, but how useful it is (i havent read it fully or tested it) i don't know: [a href=\"http://www.csgnetwork.com/timezoneproginfo.html\" target=\"_blank\"]http://www.csgnetwork.com/timezoneproginfo.html[/a] otherwise, you could use an IP2country type script to detect where a user lives and use it to pull from a lookup table of timezones, but for all the effort you'd need to put in to get this to work, it'd be easier to allow the user to pick from a dropdown as wildteen suggested. [b]EDIT:[/b] this looks interesting: [a href=\"http://www.expertsrt.com/tutorials/Matt/PHPTimeZone.html\" target=\"_blank\"]http://www.expertsrt.com/tutorials/Matt/PHPTimeZone.html[/a]
  3. [!--quoteo(post=361046:date=Apr 3 2006, 01:11 AM:name=Masna)--][div class=\'quotetop\']QUOTE(Masna @ Apr 3 2006, 01:11 AM) [snapback]361046[/snapback][/div][div class=\'quotemain\'][!--quotec--] Yeah, here: [a href=\"https://www.projectsquared.com/temp2/images/Screenshot_1.png\" target=\"_blank\"]https://www.projectsquared.com/temp2/images/Screenshot_1.png[/a] [/quote] the little triangles on the very left of the screen, next to Inbox, Drafts and Trash - click them and voila! You (should) see all of your accounts within them, all seperate.
  4. [!--quoteo(post=360973:date=Apr 2 2006, 10:18 PM:name=TheSputnik)--][div class=\'quotetop\']QUOTE(TheSputnik @ Apr 2 2006, 10:18 PM) [snapback]360973[/snapback][/div][div class=\'quotemain\'][!--quotec--] I want two scripts to be able to send and receive commands and transfer data according to the commands sent by either of the two scripts on seperate servers. Thanks, TheSputnik [/quote] what have you got so far? you might get some good ideas on this by looking at stuff like fsockopen/fopen/$_GET, etc. $_GET would be the EASIEST way to pass info to another script, but fsockopen, etc, would be useful if you wanted to make a full, useful interface between the two scripts.
  5. [!--quoteo(post=360985:date=Apr 2 2006, 10:47 PM:name=flash gordon)--][div class=\'quotetop\']QUOTE(flash gordon @ Apr 2 2006, 10:47 PM) [snapback]360985[/snapback][/div][div class=\'quotemain\'][!--quotec--] last bump. [/quote] i think the quality output from 'imagejpeg' defaults to 75, although it shouldn't really mess things up that much. try [code] imagejpeg($canvas, "", 100); [/code]
  6. [!--quoteo(post=360955:date=Apr 2 2006, 08:31 PM:name=Steffen)--][div class=\'quotetop\']QUOTE(Steffen @ Apr 2 2006, 08:31 PM) [snapback]360955[/snapback][/div][div class=\'quotemain\'][!--quotec--] I have a input form with year, month and day input fields. I convert it to a timestamp (with the new safestrotime function) to store it in the database (as VARCHAR). Then I select it and parse it with the date function...so it should return the date again... thx a lot [/quote] do you HAVE to store it in the database as a timestamp (and why varchar anyway?) - why not just store it as a DATE type?
  7. [!--quoteo(post=360884:date=Apr 2 2006, 03:47 PM:name=newPHPer)--][div class=\'quotetop\']QUOTE(newPHPer @ Apr 2 2006, 03:47 PM) [snapback]360884[/snapback][/div][div class=\'quotemain\'][!--quotec--] Desdinova is right. Put ob_start() at the very first line of the page and ob_end_flush() at the end. That should solve your problem. [/quote] whilst ob_start, etc will work, i kinda sometimes feel that it should be used as a last resort if you HAVE to resend the headers. otherwise, it's just a form of masking a problem or something that shouldn't be there. [a href=\"http://www.phpfreaks.com/forums/index.php?showforum=12\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showforum=12[/a]
  8. i've been looking at ways of doing a similar thing, and there were two occasions where an image match would cause issues and some solutions i had for both: 1, image has been cropped compared to the existing image/image is the larger, uncropped version of the existing image - i thought, even though it's a lengthly process, taking a few 'sample' lines from the smaller of the two images using 'imagecolorat' (GD library). then going through each line of the larger image (also with imagecolorat) looking for a match. 2, image has been resized. scale the smaller picture either normal or resampled (using GD library again) so it's the same size as the larger picture. run similar check as in point 1 above. ok so it's not going to be perfect, but if it cuts down on even 10 or 20% of duplicates, it's a start, and a smaller problem to what you have now. i've tested out number 1 on a few images and found it to be reasonably successful at what it does. to be honest, you're not going to get anything that's gonna search 15,000 images doing any of these methods working very fast. all i can suggest is you let the user upload whatever picture they choose, but use a function like this to 'prune' your files yourself to tidy things up a bit.
  9. [!--quoteo(post=360851:date=Apr 2 2006, 01:47 PM:name=Steffen)--][div class=\'quotetop\']QUOTE(Steffen @ Apr 2 2006, 01:47 PM) [snapback]360851[/snapback][/div][div class=\'quotemain\'][!--quotec--] Yes, i tried one of those functions before but i had a problem with date(). so, now i have the same problem. One I try to convert the timestamp to a date it results in 19 january 2038 (= maximum value -> cfr php.net) How can i solve the date function then? Thx a lot! [/quote] well its safe to say that the function you've seen is pretty much the only way to convert one way. but because it's a custom function, my guess is that you'll have to write a custom function to convert it back, taking into account that negative values from the function off php.net is the amount of seconds BEFORE 1/1/1970. may take a little trial and error but shouldn't be too tricky, but date() only accepts a normal (positive) timestamp, not a custom-generated negative one.
  10. hi there are several pinned topics entitled things such as 'Read here before posting' and 'Do you have header/session problems'. You really should read those first. Cheers Mark
  11. [!--quoteo(post=360847:date=Apr 2 2006, 12:40 PM:name=Shane Rossouw)--][div class=\'quotetop\']QUOTE(Shane Rossouw @ Apr 2 2006, 12:40 PM) [snapback]360847[/snapback][/div][div class=\'quotemain\'][!--quotec--] hi guys, i have a client with no html exp. who needs to update their own site content. what would be the best way for them to do this? in the past i always did it. do i need special CMS or any easier way? thanks for any advise. Shane [/quote] hi shane no real need for anything complex. CMS is going to be your best way and for something simple, are really not hard to put together. depends how much of their own site they need to update - little bits of news, images, or literally everything? either way, a Content Management System, as the name would suggest, is pretty much the best (and only sensible) option IMO. Cheers
  12. [!--quoteo(post=360839:date=Apr 2 2006, 10:44 AM:name=Steffen)--][div class=\'quotetop\']QUOTE(Steffen @ Apr 2 2006, 10:44 AM) [snapback]360839[/snapback][/div][div class=\'quotemain\'][!--quotec--] i searched there already...i didnt find it:( thx! [/quote] there's a function that a user has written, on that page i gave you, that is a replacement for strtotime that deals with pre-1970 dates: [code] function safestrtotime ($s) {    $basetime = 0;    if (preg_match ("/(\d\d\d\d)/", $s, $m) && ($m[1] < 1970)) {       if( $m[1] < 1902 ) {          return -1;       }       $s = preg_replace ("/19\d\d/", $m[1]+68, $s);       $basetime = 0x80000000 + 1570448;   }   $t = strtotime( $s );   return $t == -1 ? -1 : $basetime + $t; } [/code] do a search on the page for '1970' and you'll find several solutions. the above is just one of them
  13. [!--quoteo(post=360833:date=Apr 2 2006, 10:01 AM:name=Steffen)--][div class=\'quotetop\']QUOTE(Steffen @ Apr 2 2006, 10:01 AM) [snapback]360833[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi all I've been searching for one hour now on the internet for an easy solution for strotime in combination with dates prior to 1970 (on Windows platform). So, on my localhost strotime("1950-06-02") returns -1 instead of a timestamp. I know there is a solution...I just can't find it:( Grtz and thx [/quote] the best workaround's i have found for dealing with this is in the manual: [a href=\"http://uk.php.net/strtotime\" target=\"_blank\"]http://uk.php.net/strtotime[/a] . its mostly the users comments you want to read as several of them discuss ways around pre-1970 dates. hope it helps! Cheers
  14. [!--quoteo(post=360745:date=Apr 2 2006, 12:22 AM:name=bgrizzlybear)--][div class=\'quotetop\']QUOTE(bgrizzlybear @ Apr 2 2006, 12:22 AM) [snapback]360745[/snapback][/div][div class=\'quotemain\'][!--quotec--] I'm kind of a beginner and just started my own independent business. Please let me know if there's anything I can do to improve my website, especially the design, or if I should just leave it alone. Be as honest as you have to be, I'm not afraid to take criticism. Thanks. [a href=\"http://www.branchingoutdesigns.com\" target=\"_blank\"]www.branchingoutdesigns.com[/a] [/quote] looking at the template throughout the site, it looks like you've spend loads of time designing the layout yet about 3 minutes adding all the content. i actually like the template, even as far as the colour scheme. but: 1, you've used a standard font 2, whilst the template stays consistent, there is no consistency in the content. 3, i think that if it's possible to knock up a form instead of using 'mailto' links, then present the user with a contact form instead. 4, the portfolio page looks like just loads of images put on a page, rather than a smart showcase for your work. background info on the portfolio items would be good.
  15. [!--quoteo(post=360779:date=Apr 2 2006, 03:13 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ Apr 2 2006, 03:13 AM) [snapback]360779[/snapback][/div][div class=\'quotemain\'][!--quotec--] In CSS3, there is the border-radius: command will let you do it. Outside of that, no, images only. [/quote] I think there's one that works on Mozilla browsers. Not sure, but as it's only mozilla it'd waste a little time. i'm not actually sure how to do it myself yet, but yes it is possible to do it outside of CSS3, and with no images. take a look at this. [a href=\"http://cssplay.co.uk/boxes/curves.html\" target=\"_blank\"]http://cssplay.co.uk/boxes/curves.html[/a] most of the stuff on that site is pure CSS with absolutely no images (these one's are just showing off: [a href=\"http://cssplay.co.uk/menu/cssart.html\" target=\"_blank\"]http://cssplay.co.uk/menu/cssart.html[/a])
  16. [!--quoteo(post=360822:date=Apr 2 2006, 06:23 AM:name=ReVeR)--][div class=\'quotetop\']QUOTE(ReVeR @ Apr 2 2006, 06:23 AM) [snapback]360822[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello. I was wondering if it was possible to get php code from a remote website? Thx [/quote] only if you have access to the remote website's server or the remote server has a script to serve you php files in their plain text format (ie, before being parsed by the server). Otherwise, nope.
  17. [!--quoteo(post=360729:date=Apr 1 2006, 11:36 PM:name=cowperson12345)--][div class=\'quotetop\']QUOTE(cowperson12345 @ Apr 1 2006, 11:36 PM) [snapback]360729[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hey, not a new name site, but it basically is. We deleted everything before and restarted. However, We choose to create a simple and effective layout. Personally, and from what I have learned, It looks good. But I get mixed comments on the color. [a href=\"http://hyoproductions.com\" target=\"_blank\"]http://hyoproductions.com[/a] Please tell me what you think of it! [/quote] hmm this one is weird. the colours are far far far far far too bright and 'contrast', but i love them. all i'd say you need is: 1, add a bit of padding to the blue areas in your nav column (left hand side): Menu/Forum Posts/Sponsors 2, do your links a little better - again, especially with your nav in left hand column. otherwise, for a high contrast site, it looks quite good (btw i didn't really go past the homepage but if i do, i'm sure i'll find something and will report back...) Cheers Mark
  18. [!--quoteo(post=360690:date=Apr 1 2006, 09:36 PM:name=Ultimate-Xtreme.Tk)--][div class=\'quotetop\']QUOTE(Ultimate-Xtreme.Tk @ Apr 1 2006, 09:36 PM) [snapback]360690[/snapback][/div][div class=\'quotemain\'][!--quotec--] Ok im not sure where this should go but.... Anyway i have an IPB just like this, v2.1.3 And i want to Intergrate it to my home page (HTML Page - Bassic Layout- No Scripts) just how IPB opens in the center of the page here (on PHPFreaks) leaving the main banner, main navigation etc. How do yo do it please? im sure its PHP. Thanx [/quote] 1) in an iframe (the rubbish way to do it) 2) hacking the template (the way phpfreaks is more likely to have done it) 3) it's more HTML/3rd Party scripts than PHP. have you checked the IPB forums?
  19. [!--quoteo(post=360653:date=Apr 1 2006, 07:18 PM:name=Outlaw=OCG=)--][div class=\'quotetop\']QUOTE(Outlaw=OCG= @ Apr 1 2006, 07:18 PM) [snapback]360653[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello all Im new here didn't know where to go IM in a clan called Omega COrps Gaming and in our forums you may have this also the post points now i was wondering on how to save the points after you deleted the post where do I find these and what should I do I know it can be don't but I just don't no how to do this ???????????? [/quote] throw a couple of commas and full stops into your question and add a bit more detail as to your problem..??? you've lost me...
  20. [!--quoteo(post=360651:date=Apr 1 2006, 07:03 PM:name=Masna)--][div class=\'quotetop\']QUOTE(Masna @ Apr 1 2006, 07:03 PM) [snapback]360651[/snapback][/div][div class=\'quotemain\'][!--quotec--] That's funny, my Mail looks nothing like that. [/quote] got a screenie you can post? very weird as the main layout of mail hasn't changed since the version I have. I even double checked this one with someone else i know that's just got a new Mac.
  21. hi not 100% sure on the reasons behind your error without checking, but the reason why you get it on one server and not the other is normally down to how strict the error_reporting is in your php.ini file. i know that doesn't help your problem, but at least you know why one has trouble and the other doesn't...
  22. [!--quoteo(post=359795:date=Mar 29 2006, 09:19 PM:name=jmag)--][div class=\'quotetop\']QUOTE(jmag @ Mar 29 2006, 09:19 PM) [snapback]359795[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello, I've got a small script that when a folder is entered it looks for thumbnails, if there aren't any they are created. so for each folder it's only being done once. However, sometimes a folder can contain up to a hundred highres photos, and my development can't quite handle that amount of data since the PHP engine seems to be sending a new pic for resizing and writing to the disc faster than the computer can do each image. Now my Q is this: is there any way to tell the phpscript to send an image, wait till it's done, then do next? just to make sure the server can handle everything without crashing/rebooting even if there are lots of images. I got a strong guess that this also would increase the perfomance of the script since it won't try to do everything and then choke. the script can be viewed here if necessary: [a href=\"http://www.rafb.net/paste/results/62AqLi91.html\" target=\"_blank\"]http://www.rafb.net/paste/results/62AqLi91.html[/a] Thanx in advance for any help! [/quote] as far as i know, you don't need to wait. problems with the images being written would indicate a problem with your script further than than (eg file formats and using the right imagejpeg/imagegif/imagepng, etc). might be worth checking this. also note that if, as you're creating the thumbnails you're putting them straight out on the screen, that a script can only send the headers and output one image at a time.
  23. [!--quoteo(post=360522:date=Apr 1 2006, 02:28 AM:name=Masna)--][div class=\'quotetop\']QUOTE(Masna @ Apr 1 2006, 02:28 AM) [snapback]360522[/snapback][/div][div class=\'quotemain\'][!--quotec--] I setup both accounts, but there are no subdirectories in the Inbox. E-mails for both addresses are thrown together in one Inbox folder; I want to be able to tell which is for which. [/quote] An odd problem. I'm not even sure that Mail gives you a choice in the matter to turn it on or off, otherwise I'd give you an idea of what to check. Unified inbox is one of the most liked features on Mail which is why THunderbird is heavily looked over on the Mac. However, I'm not sure whether each account has any options such as 'use seperate inbox' or not. Aside from your main window, have you got a slideout 'Accounts' tray? the one that has your list of Inbox/Outbox/Sent, etc? You're looking for little grey arrows next to your Inbox. here's a screenshot from [a href=\"http://www.appleinsider.com/article.php?id=532\" target=\"_blank\"]appleinsider.com[/a] showing what it looks like: [b]edit:[/b] removed the pic as it was huge ... follow the link i gave instead to the section that says: New Mailbox Bar
  24. might be worth checking the posting rules/etc as their is a forum for third party scripts (ie, stuff you never wrote yourself). but hey, it's friday and i'm in a good mood so here you are: [code] If ($AdmitDate == $dischDate); [/code] the capital 'I' is not a problem, but best that it's all lower case (won't cause errors as far as i know, but i reckon it just looks rubbish). also - see the semi-colon at the end of that line? yup. you don't need it. [code] if ($AdmitDate == $dischDate) [/code] hope that helps :)
  25. [!--quoteo(post=360491:date=Mar 31 2006, 11:18 PM:name=cracker)--][div class=\'quotetop\']QUOTE(cracker @ Mar 31 2006, 11:18 PM) [snapback]360491[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi all Ich habe folgendes problem, wenn ich mich ins php admin meu einloggen will kommt immer access denied [a href=\"http://www.gmg-clan.com/downloads/nuke1.JPG\" target=\"_blank\"]http://www.gmg-clan.com/downloads/nuke1.JPG[/a] Das Problem began damit das ich folgende datein überschrieben hab [a href=\"http://www.gmg-clan.com/downloads/nuke.JPG\" target=\"_blank\"]http://www.gmg-clan.com/downloads/nuke.JPG[/a] Ich bin mir nicht asicher ob ich die datein mit der gleichen Nuke Versíon überschrieben hab. www.gmg-clan.com ihr könnt euch ja mal die seite anschaun unter member könnt ihr villeicht sehen was falsch ist schaut euch um bitte Mit Freundlichen Grüßen GmG Team [/quote] Without being rude or taking away your rights to use your own language, you may have noticed that, regardless of country of origin that most posts are in English. Any chance of a translation? cheers Mark
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.